Dijkstra's Algorithm Pretest


Answer the multiple-choice questions below to test your knowledge!


Multiple-Choice Questions:

  1. What is the primary purpose of Dijkstra's Algorithm?





  2. What data structure is commonly used to implement Dijkstra's Algorithm efficiently?





  3. What is the time complexity of Dijkstra's Algorithm using a priority queue?





  4. Which type of graph is suitable for Dijkstra's Algorithm?





  5. What happens if a graph contains negative weight edges when using Dijkstra's Algorithm?