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

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

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

Official answer for Question 6

Part (c)

(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

-Description of diagrammatic representation[3]

✓
GCE A/AS LEVEL – NOVEMBER 2005 9691 3

Mark scheme 9691_w05_ms_3.pdf →

Show text version of question

Question 6

Part (c)

(iii)

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

(iii)

Describe an algorithm that can be applied to the binary tree of car parts, so that the tree

is read in alphabetic order.

[3]
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_w05_qp_3.pdf

Keep practising this topic