When using Dijkstra’s algorithm to find the shortest path in a graph, which of…
When using Dijkstra’s algorithm to find the shortest path in a graph, which of the following statements is not true?
- A.
It can find shortest path within the same graph data structure
- B.
Every time a new node is visited, we choose the node with the smallest known distance/cost (weight) to visit first
- C.
Shortest path always passes through the least number of vertices
- D.
The graph needs to have a non-negative weight on every edge
Attempted by 234 students.
Sign up free to check your answer
Sign up freeLoading lesson…

