Prim's algorithm resembles Dijkstra's algorithm.
Select an option to see the answer and solution.
What is the running time of an unweighted shortest path algorithm whose augmenting path is the path with the least number of edges?
A. O(|E||V|)
B. O(|E|)
C. O(|E| log |V|)
D. O(|E|2 |V|)
Select an option to see the answer and solution.
Worst case is the worst case time complexity of Prim's algorithm if adjacency matrix is used?
A. O(log V)
B. O(V2 )
C. O(E2 )
D. O(V log E)
Select an option to see the answer and solution.
Which algorithm is used in graph traversal and path finding?
Select an option to see the answer and solution.
Breadth First Search is equivalent to which of the traversal in the Binary Trees?
A. Pre-order Traversal
B. Post-order Traversal
C. Level-order Traversal
D. In-order Traversal
Select an option to see the answer and solution.
Regarding implementation of Depth First Search using stacks, what is the maximum distance between two nodes present in the stack? (considering each edge length 1)
A. Can be anything
B. 0
C. At most 1
D. Insufficient Information
Select an option to see the answer and solution.
Floyd Warshall algorithm was proposed by . . . . . . . .
A. Robert Floyd and Stephen Warshall
B. Stephen Floyd and Robert Warshall
C. Bernad Floyd and Robert Warshall
D. Robert Floyd and Bernad Warshall
Select an option to see the answer and solution.
The Depth First Search traversal of a graph will result into?
A. Linked List
B. Tree
C. Graph with back edges
D. Array
Select an option to see the answer and solution.
What is the time complexity of Kruskal's algorithm?
A. O(log V)
B. O(E log V)
C. O(E2 )
D. O(V log E)
Select an option to see the answer and solution.
Which of the following is false in the case of a spanning tree of a graph G?
A. It is tree that spans G
B. It is a subgraph of the G
C. It includes every vertex of the G
D. It can be either cyclic or acyclic
Select an option to see the answer and solution.
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"?
A. While loop gets executed for v times
B. While loop gets executed for v-1 times
C. While loop gets executed only once
D. While loop does not get executed
Select an option to see the answer and solution.
Every graph has only one minimum spanning tree.
Select an option to see the answer and solution.
In Depth First Search, how many times a node is visited?
A. Once
B. Twice
C. Equivalent to number of indegree of the node
D. Thrice
Select an option to see the answer and solution.
What happens when the value of k is 0 in the Floyd Warshall Algorithm?
A. 1 intermediate vertex
B. 0 intermediate vertex
C. N intermediate vertices
D. N-1 intermediate vertices
Select an option to see the answer and solution.
Which of the following branch and bound strategy leads to depth first search?
A. LIFO branch and bound
B. FIFO branch and bound
C. Lowest cost branch and bound
D. Highest cost branch and bound
Select an option to see the answer and solution.
What is running time of Dijkstra's algorithm using Binary min- heap method?
A. O(V)
B. O(VlogV)
C. O(E)
D. O(ElogV)
Select an option to see the answer and solution.
Which of the following data structure is used to implement BFS?
A. linked list
B. tree
C. stack
D. queue
Select an option to see the answer and solution.
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.
Select an option to see the answer and solution.
Kruskal's algorithm is best suited for the sparse graphs than the prim's algorithm.
Select an option to see the answer and solution.
In the given graph, identify the path that has minimum cost to travel from node a to node f.
A. a-b-c-f
B. a-d-e-f
C. a-d-b-c-f
D. a-d-b-c-e-f
Select an option to see the answer and solution.