Worked solution from the Artificial Intelligence (AI) Paper 3 Advanced Theory booklet, Part 1 of 1.
Say what both algorithms are for.
Write: they find the shortest path between two points (nodes) on a graph. [1]
Write: A* uses a heuristic function to estimate which routes are best, so it tries to find a better path faster. [1]
Write: Dijkstra's algorithm has no heuristic, so it just explores all possible routes from the start. [1]
Other points that also score: the heuristic gives priority to nodes that look less costly; A* can cope with negative weights but Dijkstra's cannot.
Unsupervised learning uses algorithms to analyse and cluster the data. [1]
The data is unlabelled, so it has no known answers given with it. [1]
It finds hidden patterns, groupings or clusters (similarities and differences) without human intervention. [1]
▶ Topic lesson
A lesson on this topic · by The CS Classroom. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.