Cambridge A2 Level Computer Science 9618 · 18.1 Artificial Intelligence (AI)

Q13 · 9618/33/M/J/25 Q10

Worked solution from the Artificial Intelligence (AI) Paper 3 Advanced Theory booklet, Part 1 of 1.

Q139618/33/M/J/25original Q10Structured · 6 marks
Question 10 from 9618/33/M/J/25

Worked solution

(a)

Say what both algorithms are for.

Write: they find the shortest path between two points (nodes) on a graph. [1]

(b)

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.

(c)

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]

KEY IDEAA* and Dijkstra's both find shortest paths, but A* uses a heuristic to guide the search; unsupervised learning finds patterns in unlabelled data by itself.
TOTAL 6 marks

Official mark scheme

Mark scheme for 9618/33/M/J/25 question 10
VIDEO
▶ 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.