Back to marketplace

2.3.5 Path FInding Algorithms

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

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

Card preview (7)

#1
Front (Question)

What is Dijkstra’s algorithm?

Back (Answer)

A shortest path algorithm used to find the shortest distance between two nodes on a weighted graph

#2
Front (Question)

Outline the stages of Dijkstra’s algorithm.

Back (Answer)

Priority queue created from starting node Distances added (0 to starting node, ∞ to others) Remove front node and add to visited list Update distances of each node connected to visited node Sort priority queue Repeats until all visited

#3
Front (Question)

What is the A* algorithm?

Back (Answer)

A general path-finding algorithm that uses heuristics to approximate the shortest path between two nodes on a weighted graph

#4
Front (Question)

Outline the stages of the A* algorithm.

Back (Answer)

Priority queue created from starting node Distances from starting node, heuristic distances to end node and sum Remove front node and add to visited list Update all data for nodes connected to visited nodes Sort priority queue Repeats until all visited

#5
Front (Question)

How does the A* algorithm differ from Dijkstra’s algorithm?

Back (Answer)

A* algorithm has two cost functions: Actual cost Approximate cost

#6
Front (Question)

Why are heuristics used in the A* algorithm?

Back (Answer)

To calculate an approximate cost from the starting node to the final node Aims to make finding path more efficient

#7
Front (Question)

State a disadvantage of using the A* algorithm.

Back (Answer)

The speed of the algorithm is constrained by the accuracy of the heuristic methods