SHSubjectHub

Tree traversal and Reverse Polish notation

AQA 75174.3 L2A-levelLesson packSubscription
Also online

This worksheet marks itself

Set it as homework or classwork and every answer is marked as pupils go, with feedback on what they got wrong. The scores go straight into your mark book, so you can see who needs help before the next lesson.

  • 11 questions
  • 29 marks
  • about 35 minutes
  • marked instantly

Question types: multiple choice, short answer, matching, true or false.

One question from this worksheet

  1. 1. The question
  2. 2. A pupil answers
  3. 3. Marked instantly

About this resource

11 C# programming challenges in three sets, each with exact test data, plus a trace-the-walk Do Now, a short key idea, two exam questions with mark schemes and a worksheet. Covers AQA 7517 4.3.2.1 Simple tree-traversal algorithms · 4.3.3.1 Reverse Polish: infix transformations.

20 slides.

Lesson outline

  1. Do Now: trace the walk
  2. Do Now: answers
  3. Key idea: Three ways to visit every node
  4. Check: the post-order traversal
  5. Key idea: Trace it by hand: the dot method
  6. Key idea: What each traversal is for
  7. Key idea: Reverse Polish notation (RPN)
  8. Check: infix to RPN
  9. Key idea: Evaluating RPN with a stack
  10. Set 1: three ways round a tree
  11. Set 2: what the traversals are for
  12. Exam question E1: traversals
Unit bundle4.3 Algorithms · full C# lessons
Part of: 4.3 Algorithms · full C# lessons: the whole unitEvery resource in the unit in one zip.

More from 4.3 Algorithms · full C# lessons