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

8/9

Page

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

Identify the correct Bellmann Ford Algorithm.

Options are not available for this question.

Select an option to see the answer and solution.

Which of the following is an example of Best First Search algorithm?

Select an option to see the answer and solution.

Prim's algorithm is also known as . . . . . . . .

Select an option to see the answer and solution.

Consider the graph shown below.
Graph Algorithms (DFS, BFS, Dijkstras, etc) mcq question image
Which of the following edges form the MST of the given graph using Prim'a algorithm, starting from vertex 4.

Select an option to see the answer and solution.

Consider the following statements.
S1. Kruskal's algorithm might produce a non-minimal spanning tree.
S2. Kruskal's algorithm can efficiently implemented using the disjoint-set data structure.

Select an option to see the answer and solution.

Bellmann Ford Algorithm is an example for . . . . . . . .

Select an option to see the answer and solution.

What is the other name of the greedy best first search?

Select an option to see the answer and solution.

Time Complexity of Breadth First Search is? (V - number of vertices, E - number of edges)

Select an option to see the answer and solution.

Which of the following traversal in a binary tree is similar to depth first traversal?

Select an option to see the answer and solution.

Kruskal's algorithm is a . . . . . . . .

Select an option to see the answer and solution.

Which of the following is a possible result of depth first traversal of the given graph(consider 1 to be source element)?
Graph Algorithms (DFS, BFS, Dijkstras, etc) mcq question image

Select an option to see the answer and solution.

What is the running time of the Floyd Warshall Algorithm?

Select an option to see the answer and solution.

Bellmann Ford Algorithm can be applied for . . . . . . . .

Select an option to see the answer and solution.

The Breadth First Search traversal of a graph will result into?

Select an option to see the answer and solution.

Which of the following data structure is used to implement DFS?

Select an option to see the answer and solution.

A person wants to visit some places. He starts from a vertex and then wants to visit every vertex till it finishes from one vertex, backtracks and then explore other vertex from same vertex. What algorithm he should use?

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 Prim's algorithm,starting from vertex a?

Select an option to see the answer and solution.

Consider a complete graph G with 4 vertices. The graph G has . . . . . . . . spanning trees.

Select an option to see the answer and solution.

Branch and bound is a . . . . . . . .

Select an option to see the answer and solution.

Floyd Warshall's Algorithm can be applied on . . . . . . . .

Select an option to see the answer and solution.