Dijkstra Algorithm MCQ Test: Dijkstra Algorithm MCQs - Practice Questions
1. How does the choice of data structure for the priority queue affect the time complexity of Dijkstra's algorithm?
2. What is the primary limitation of using Dijkstra's algorithm in large-scale networks?
3. How does Dijkstra's algorithm handle graphs with multiple shortest paths between two vertices?
4. What scenario would make Dijkstra's algorithm less efficient?
5. In the context of Dijkstra's algorithm, what does 'SPT' stand for?
6. What is the key concept behind Dijkstra's algorithm for finding the shortest path?
7. How does Dijkstra's algorithm handle graphs with unconnected vertices?
8. Which algorithm is often compared to Dijkstra's algorithm for finding the shortest path?
9. What is the significance of the term 'single-source' in the context of Dijkstra's algorithm?
10. In the Dijkstra algorithm, what does the term 'distance' refer to?
11. In Dijkstra's algorithm, what happens if a shorter path to a vertex is found after it has been added to the priority queue?
12. What modification is needed in Dijkstra's algorithm to support parallel processing?
13. What is the significance of the term 'greedy' in describing Dijkstra's algorithm?
14. In Dijkstra's algorithm, what does the term 'relaxation' refer to?
15. What is the key challenge in implementing Dijkstra's algorithm in a distributed computing environment?
16. What is the primary advantage of using Dijkstra's algorithm over other pathfinding algorithms in certain scenarios?
17. What is the significance of the 'relaxation' step in Dijkstra's algorithm?
18. How does Dijkstra's algorithm handle graphs with disconnected components?
19. What is the primary advantage of using a Fibonacci Heap in Dijkstra's algorithm?
20. What is the purpose of the priority queue in Dijkstra's algorithm?
21. What is the significance of the 'd' and 'π' arrays in Dijkstra's algorithm?
22. What modification is needed in Dijkstra's algorithm to handle graphs with negative edge weights?
23. What is the time complexity of Dijkstra's algorithm when implemented with a binary heap?
24. In the context of Dijkstra's algorithm, what is the purpose of the 'marked' attribute for vertices?
25. What is the primary difference between Dijkstra's algorithm and A* algorithm?
26. How does Dijkstra's algorithm handle graphs with cycles?
27. What is the role of a 'heap' data structure in optimizing Dijkstra's algorithm?
28. What is the impact of using a priority queue with insufficient priority updates in Dijkstra's algorithm?
29. What condition must be satisfied for Dijkstra's algorithm to guarantee the correct shortest paths?
30. What is the time complexity of Dijkstra's algorithm with an adjacency matrix representation?
31. What is the purpose of the 'source' parameter in Dijkstra's algorithm?
32. How does Dijkstra's algorithm behave when all edge weights are equal?
33. How does Dijkstra's algorithm behave when there is a negative cycle in the graph?
34. In a weighted graph, what does the term 'weight' typically represent in the context of Dijkstra's algorithm?
35. What is the significance of the 'infinity' value in the initialization of distances in Dijkstra's algorithm?
36. How does the choice of initial vertex impact the results of Dijkstra's algorithm?
37. When is Dijkstra's algorithm preferred over Bellman-Ford algorithm?
38. What is the purpose of the 'visited' set in Dijkstra's algorithm?
39. In Dijkstra's algorithm, how are ties broken when multiple paths have the same minimum distance?
40. Which data structure is commonly used to implement Dijkstra's algorithm efficiently?
41. What is the main drawback of Dijkstra's algorithm?
42. Which algorithm is an alternative to Dijkstra's algorithm for graphs with negative edge weights?
43. In Dijkstra's algorithm, what data structure is commonly used to efficiently extract the minimum distance node?
44. What is the significance of the 'parent' attribute in the context of Dijkstra's algorithm?
45. What is the primary limitation of Dijkstra's algorithm when dealing with large graphs?
46. How does Dijkstra's algorithm handle unreachable vertices?
47. What is the primary purpose of Dijkstra's algorithm?
48. Which step in Dijkstra's algorithm is responsible for selecting the next vertex to process?
49. How does Dijkstra's algorithm handle negative edge weights in a graph?
50. What is the main drawback of using Dijkstra's algorithm in a dynamic graph that undergoes frequent edge weight updates?