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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly