Past-paper question · 2018 May-June · Paper 42 · Q3(c)(i)

Question 3(c)(i) 2018 · May-June · Paper 42 · 2 marks

Original past-paper question for 3(C)(I)
Original past-paper question for 3(C)(I)
Reveal official mark-scheme answer Official mark-scheme answer for 3(C)(I)

Official answer for Question 3

Part (c)

(i)

Question 1

mark per bullet to max 2

Question 2

✓
•
✓
It doesn’t check every value
✓
•
✓
The midpoint is the middle element, not the middle numerical value
✓
•
✓
When the higher/lower elements are discarded they will not be the higher/lower elements
✓
•
✓
It might discard the value you are looking for

Mark scheme 9608_s18_ms_42.pdf →

Show text version of question

Question 3

Part (c)

(i)

Question 3

The arrays PollData[1:10] and CardData[1:10] store data.

PollData 12 85 52 57 25 11 33 59 56 91

CardData 11 12 25 33 52 56 57 59 91 85

An insertion sort sorts these data.

(i)

A binary search algorithm is used to find a specific value in an array.

Explain why an array needs to be sorted before a binary search algorithm can be used.

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

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

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

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

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

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

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

.......................................................................................................................................[2]

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_42.pdf

Keep practising this topic