Vidyalelo
Data Structure · all questions

Graph Algorithms (DFS, BFS, Dijkstras, etc)
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

167

Questions

9/9

Page

Pick an option on a question to see the right answer and solution.

Both FIFO branch and bound strategy and backtracking leads to depth first search.

Select an option to see the answer and solution.

Consider the given graph.
Graph Algorithms (DFS, BFS, Dijkstras, etc) mcq question image
What is the weight of the minimum spanning tree using the Kruskal's algorithm?

Select an option to see the answer and solution.

In the given graph, how many intermediate vertices are required to travel from node a to node e at a minimum cost?
Graph Algorithms (DFS, BFS, Dijkstras, etc) mcq question image

Select an option to see the answer and solution.

The running time of Bellmann Ford algorithm is lower than that of Dijkstra's Algorithm.

Select an option to see the answer and solution.

Regarding implementation of Breadth First Search using queues, what is the maximum distance between two nodes present in the queue? (considering each edge length 1)

Select an option to see the answer and solution.

Consider a undirected graph G with vertices { A, B, C, D, E}. In graph G, every edge has distinct weight. Edge CD is edge with minimum weight and edge AB is edge with maximum weight. Then, which of the following is false?

Select an option to see the answer and solution.

Using logical operator's instead arithmetic operators saves time and space.

Select an option to see the answer and solution.