Past-paper question · 2009 May-June · Paper 3 · Q2(c)

Question 2(c) 2009 · May-June · Paper 3 · 4 marks

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

Official answer for Question 2

Part (c)

Part (c)

Repeat

✓
Compare new value with root value
  • If > root value then follow right subtree
  • Else follow left subtree
  • Until no subtree
  • Insert new value as root of new subtree.
✓
(1 per -, max 4) (Allow symmetric algorithm)
[4]
✓
Mark Scheme: Teachers’ version
✓
Syllabus
✓
Paper
✓
GCE A LEVEL – May/June 2009
✓
9691
✓
03

Mark scheme 9691_s09_ms_3.pdf →

Show text version of question

Question 2

Part (c)

Part (c)

A set of data items is stored in a sorted binary tree.

Describe a procedure which will insert a new data item into the correct position in the sorted binary tree.

[4]
Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Constructs

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

Keep practising this topic