2.3.1 Path finding algorithms Flashcards
1
Q
Explain Dijkstra’s algorithm
A
- Path finding alg
- Shortest path between two nodes
- You know how to do this from FM
2
Q
Explain A star algorithm
A
- Improvement on Dijkstra’s
- Two cost functions
- Cost between two nodes and approximate cost from node x to the final node called a heuristic
3
Q
What are the advantages and disadvantages of A star
A
- If good heuristics are used the shortest path can be found much quicker
- Better heuristics take longer to calculate