pptx, 241.92 KB
pptx, 241.92 KB
docx, 91.3 KB
docx, 91.3 KB
pdf, 119.43 KB
pdf, 119.43 KB
docx, 91.62 KB
docx, 91.62 KB
pdf, 128.91 KB
pdf, 128.91 KB
docx, 90.13 KB
docx, 90.13 KB
jpg, 155.06 KB
jpg, 155.06 KB

Binary trees in arrays can look like a wall of pointers, so this lesson starts with the picture and only then moves to LeftPointer[], Data[] and RightPointer[]. Students see exactly how each node’s pointers match the diagram.

AddNode is split over two slides, finding the place and then attaching the node, so the role of Previous and TurnedLeft really sinks in. It’s part one of two; part two covers searching and traversals.

What’s included

  • 16-slide editable teacher PowerPoint, with speaker notes on every slide
  • Python starter code with guided TODOs and the full tested solution, in a Word file ready to copy into your editor (including a TreeHeight extension)
  • Student worksheet (38 marks) in Word and PDF: key terms, a trace table, fill-the-gap code, spot-the-errors and exam-style questions
  • Full answer key in Word and PDF

How the lesson runs

  • A ‘twenty questions’ starter on halving
  • What a binary search tree is, with a tree diagram
  • Key vocabulary: root, parent, child, leaf and subtree
  • The tree as three arrays, then AddNode in two steps
  • A spot-the-bug slide on attaching to the wrong node
  • A trace-table mini task with answers
  • Why binary search trees are useful, and their weak spot
  • A coding task, exam-style question with mark scheme, and exit ticket

Written for Cambridge International AS & A Level Computer Science (9618), Paper 4 Practical, and pitched at A Level (Year 13). Everything is editable, so you can adapt it for your own classes.

Please leave a review if you find it useful. It really helps!

Reviews

Something went wrong, please try again later.

This resource hasn't been reviewed yet

To ensure quality for our reviews, only customers who have purchased this resource can review it

Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.