ExamVeda
Login
Home
31
Given pseudo code of Dijkstra's Algorithm.
//Initialise single source(G,s)
S=0
Q=V[G]
While Q != 0
    Do u=extract-min(Q)
        S=S union {u}
	    For each vertex v in adj[u]
	        Do relax(u,v,w)
What happens when "While Q != 0" is changed to "while Q>1"?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
32
Every graph has only one minimum spanning tree.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
33
In Depth First Search, how many times a node is visited?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
34
What happens when the value of k is 0 in the Floyd Warshall Algorithm?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
35
Which of the following branch and bound strategy leads to depth first search?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
36
What is running time of Dijkstra's algorithm using Binary min- heap method?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
37
Which of the following data structure is used to implement BFS?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
38
Dijkstra's Algorithm run on a weighted, directed graph G={V,E} with non-negative weight function w and source s, terminates with d[u]=delta(s,u) for all vertices u in V.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
39
Kruskal's algorithm is best suited for the sparse graphs than the prim's algorithm.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
40
In the given graph, identify the path that has minimum cost to travel from node a to node f.
Graph Algorithms (DFS, BFS, Dijkstras, etc) mcq question image
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board