Examveda

In which scenario is Dijkstra's algorithm not suitable for finding the shortest path?

A. When the graph is unweighted.

B. When there are negative weight edges.

C. When the graph is sparse.

D. When the graph is unweighted.

Answer: Option B


This Question Belongs to Data Structure >> Graphs

Join The Discussion

Related Questions on Graphs

What is a cycle in a graph?

A. A path that starts and ends at the same vertex with no other repetitions.

B. A path that includes all vertices exactly once.

C. A path with no edges.

D. A complete traversal of all vertices.