Past-paper question · 2010 October-November · Paper 32 · Q6

Question 6 2010 · October-November · Paper 32 · 4 marks

Original past-paper question for 6
Reveal official mark-scheme answer Official mark-scheme answer for 6

Official answer for Question 6

✓
Repeat
  • Compare new value with root value / head
  • 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)
[4]

Mark scheme 9691_w10_ms_32.pdf →

Show text version of question

Question 6

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

Describe how to 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_w10_qp_32.pdf

Keep practising this topic