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?

  1. A.

    It can find shortest path within the same graph data structure

  2. B.

    Every time a new node is visited, we choose the node with the smallest known distance/cost (weight) to visit first

  3. C.

    Shortest path always passes through the least number of vertices

  4. 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 free

Explore the full course: Isro

Loading lesson…