Past-paper question · 2005 October-November · Paper 3 · Q6(c)(i)

Question 6(c)(i) 2005 · October-November · Paper 3 · 3 marks

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

Official answer for Question 6

Part (c)

(i)

Part (c)

(i)

✓
Radio
✓
Brakes
✓
Visor
✓
Alternator
✓
Tyres
✓
Windscreen
[3]
✓
(1 for root, 1 for each subtree)

(ii)

-Read root

  • Compare with clutch
  • Clutch<Radio therefore traverse left subtree
  • Read root (Brakes)
  • Compare with Clutch
  • Clutch>brakes, therefore traverse right subtree
  • Root empty
  • Insert Clutch
[5]
✓
(1 per -, max 5. Completed tree worth 3)

(iii)

-Traverse left subtree

  • Read/output the root
  • Traverse right subtree
✓
Route shown clearly on diagram is acceptable
  • Route
  • Indication of when nodes are read
[3]
  • Description of diagrammatic representation
✓
© University of Cambridge International Examinations 2005
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
GCE A/AS LEVEL – NOVEMBER 2005
✓
9691

Question 3

Mark scheme 9691_w05_ms_3.pdf →

Show text version of question

Question 6

Part (c)

(i)

The details of a car part are stored in a binary tree according to this algorithm

READ VALUE NEW_PART START AT ROOT NODE WHILE NODE NOT EMPTY, DO IF NEW_PART < VALUE AT NODE THEN FOLLOW LEFT SUBTREE ELSE FOLLOW RIGHT SUBTREE ENDIF ENDWHILE INSERT NEW_PART AT NODE END

(i)

Show the binary tree after the following values have been input

Radio Visor Brakes Tyres Alternator Windscreen

[3]
Topic relevance

Why this question appears here

82% 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_w05_qp_3.pdf

Keep practising this topic