2.3.1 - Algorithms (Shortest Path) Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Perform Dijkstra’s on the following graph to find the shortest path between A and H

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Perform A* on the following graph to find the shortest path between A and Z

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the key facts about the Dijksktra’s algorithm?

A
  • Uses a weight/distance
  • Will always visit every node
  • Finds the most efficient route
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the key facts about the A* algorithm?

A
  • Uses an estimated distance from final node called a heuristic, this helps produce a solution in a faster time.
  • Chooses which path to take next based on lowest total distance travelled
  • Doesn’t need to find all possible solutions (saves time)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly