What is the main disadvantage of Dijkstra's algorithm compared to the A* algorithm?

Practice Questions

1 question
Q1
What is the main disadvantage of Dijkstra's algorithm compared to the A* algorithm?
  1. Dijkstra's algorithm is slower.
  2. Dijkstra's algorithm cannot handle graphs with cycles.
  3. Dijkstra's algorithm does not use heuristics.
  4. Dijkstra's algorithm is less accurate.

Questions & Step-by-step Solutions

1 item
Q
Q: What is the main disadvantage of Dijkstra's algorithm compared to the A* algorithm?
Solution: The main disadvantage of Dijkstra's algorithm compared to the A* algorithm is that Dijkstra's does not use heuristics, which can lead to longer search times in certain scenarios.
Steps: 5

Related Questions

Soulshift Feedback ×

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

Not likely Very likely