Back to marketplace

2.3.1 Shortest path algorithms info

No description yet. This curated deck is ready for daily study.

Total cards: 10•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (10)

#1
Front (Question)

What is Dijkstra’s shortest path algorithm?

Back (Answer)

An algorithm to find the shortest path between a start and end nodes on a weighted graph

#2
Front (Question)

what is the ‘least cost path’?

Back (Answer)

it is the best way to get from node to node

#3
Front (Question)

what is the purpose of Dijkstra’s algorithm?

Back (Answer)

find the shortest path from the start node to all other nodes on the graph

#4
Front (Question)

what is the output from Dijkstra’s algorithm?

Back (Answer)

a list which holds: - the node label - the cost of the shortest path to that node - the label of the previous node in the path

#5
Front (Question)

what is the A* algorithm?

Back (Answer)

An algorithm to find the shortest path between a start and end node on a weighted graph. it uses heuristics in order to speed up the process of finding a solution

#6
Front (Question)

what are the columns for the table for an A* algorithm?

Back (Answer)

• node • distance travelled • heuristic • distance travelled + heuristic • previous node

#7
Front (Question)

what is the difference between an A* algorithm and a Dijkstra’s shortest path algorithm?

Back (Answer)

• Dijkstra’s - finds the shortest path between the start node and all other nodes • A* - uses heuristics, only finds the shortest path between the start and end node

#8
Front (Question)

what is a heuristic/heuristic function?

Back (Answer)

• a function which provides an estimate of the minimum distance/weight between a given node and the target node

#9
Front (Question)

what are the advantages and disadvantages of Dijkstra’s algorithm?

Back (Answer)

• will always find the shortest path between the start and end node • the algorithm can be inefficient as it evaluates routes that are unecessary

#10
Front (Question)

what are the advantages and disadvantages of the A* algorithm?

Back (Answer)

• more efficient so can make better choices about the next path to take • requires a good heuristic function