Dijkstra and Shortest Path Algorithms - Complexity Analysis - Real World Applications

Download Q&A
Q. In which scenario is Dijkstra's algorithm NOT applicable?
  • A. When all edge weights are non-negative
  • B. When there are negative edge weights
  • C. When the graph is directed
  • D. When the graph is undirected
Q. What is the primary data structure used in Dijkstra's algorithm?
  • A. Stack
  • B. Queue
  • C. Priority Queue
  • D. Array
Q. What is the space complexity of Dijkstra's algorithm when using an adjacency list?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V^2)
Q. What is the time complexity of Dijkstra's algorithm using a priority queue?
  • A. O(V^2)
  • B. O(E + V log V)
  • C. O(V log V)
  • D. O(E log V)
Q. Which of the following is a real-world application of Dijkstra's algorithm?
  • A. Finding the shortest path in a maze
  • B. Calculating the minimum spanning tree
  • C. Routing in computer networks
  • D. Sorting a list of numbers
Showing 1 to 5 of 5 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely