Past-paper question · 2021 May-June · Paper 31 · Q5(a)

Question 5(a) 2021 · May-June · Paper 31 · 5 marks

Original past-paper question for 5(A)
Reveal official mark-scheme answer Official mark-scheme answer for 5(A)

Official answer for Question 5

Part (a)

✓
Working (Max 3)

Question 5

✓
May be seen on diagram
  • Initialisation: setting Base to 0
  • … and the rest of the towns to ∞
  • Evidence to show values at nodes being updated
  • Evidence to show ‘visited node(s)’
✓
May be seen in working section of paper
  • Evidence to show calculation of at least one route
  • Evidence to show more than one route has been calculated for at least
✓
one town
✓
Correct Answer (Max 2)
✓
One mark for four correct values…
✓
… One mark for all values correct
✓
Town 1
✓
Town 2
✓
Town 3
✓
Town 4
✓
Town 5
✓
Town 6

Question 3

Question 5

Question 2

Question 9

Question 3

Question 8

✓
9618/31
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2021
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_s21_ms_31.pdf →

Show text version of question

Question 5

Part (a)

Calculate the shortest distance between the base and each of the other towns in the diagram using Dijkstra’s algorithm.

Show your working and write your answers in the table provided.

Base

Question 4

Question 5

Town 1 2 1 Town 2

Question 8

Town 3

7 3 Town 6

Question 1

Question 5

Question 6

Town 4 Town 5

Working .....................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

Answers

Town 1 Town 2 Town 3 Town 4 Town 5 Town 6

[5]

Question 8

Topic relevance

Why this question appears here

71% assigned-topic match · Computational thinking and problem-solving › Algorithms

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9618_s21_qp_31.pdf

Keep practising this topic