Past-paper question · 2012 May-June · Paper 31 · Q3(c)(i)

Question 3(c)(i) 2012 · May-June · Paper 31 · 4 marks

Original past-paper question for 3(C)(I)
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)

Part (c)

(i)

The values must be in order

✓
Calculate the middle value and compare with the requested value
✓
If Requested value is less/greater discard the top/bottom list
✓
Repeat with a new list // compare with a new middle value
✓
Continue until value is found or list is empty
✓
[MAX 4]

Mark scheme 9691_s12_ms_31.pdf →

Show text version of question

Question 3

Part (c)

(i)

A
binary search may be an alternative algorithm to a serial search. For

Examiner's Use

(i)

Describe how this algorithm works. (Do not attempt to write the pseudocode.)

[4]
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 9691_s12_qp_31.pdf

Keep practising this topic