Past-paper question · 2018 May-June · Paper 43 · Q2(b)(ii)

Question 2(b)(ii) 2018 · May-June · Paper 43 · 3 marks

Original past-paper question for 2(B)(II)
Original past-paper question for 2(B)(II)
Reveal official mark-scheme answer Official mark-scheme answer for 2(B)(II)

Official answer for Question 2

Part (b)

(ii)

Question 1

mark per bullet to max 3

Question 3

✓
•
✓
Use of a flag to indicate if any swaps have taken place
✓
•
✓
If the inner loop has made all comparisons with no changes
✓
•
✓
«flag/value set accordingly
✓
•
✓
A comparison checks the flag/value at the end of each inner loop
✓
•
✓
«if it is sorted it breaks out/stops
✓
9608/43
✓
Cambridge International AS/A Level – Mark Scheme
✓
May/June 2018
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s18_ms_43.pdf →

Show text version of question

Question 2

Part (b)

(ii)

Question 2

The array ItemList[1:20] stores data. A bubble sort sorts these data.

The algorithm in part

Part (a)

is inefficient.

(ii)

Explain how you would improve the efficiency of this algorithm.

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

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

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

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

.......................................................................................................................................[3]

Question 5

Topic relevance

Why this question appears here

71% assigned-topic match · Algorithm design 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 9608_s18_qp_43.pdf

Keep practising this topic