Which of the following statements is true regarding Dijkstra's algorithm?

Which of the following statements is true regarding Dijkstra's algorithm?

  1. A.

    Dijkstra’s algorithm fails when the graph has cycles.

  2. B.

    Dijkstra’s algorithm fails when the graph has negative weight edges.

  3. C.

    Dijkstra’s algorithm uses dynamic programming.

  4. D.

    Dijkstra’s algorithm finds the longest path in a graph.

Attempted by 323 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…