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. The question
- 2. A pupil answers
- 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
- Do Now: trace the walk
- Do Now: answers
- Key idea: Three ways to visit every node
- Check: the post-order traversal
- Key idea: Trace it by hand: the dot method
- Key idea: What each traversal is for
- Key idea: Reverse Polish notation (RPN)
- Check: infix to RPN
- Key idea: Evaluating RPN with a stack
- Set 1: three ways round a tree
- Set 2: what the traversals are for
- Exam question E1: traversals
Unit bundle4.3 Algorithms · full C# lessons
More from 4.3 Algorithms · full C# lessons
- Lesson pack · 4.3 L1Graph traversal: breadth-first and depth-firstSubscription
- Lesson pack · 4.3 L3Searching: linear, binary and binary tree searchSubscription
- Lesson pack · 4.3 L4Sorting: bubble sort and merge sortSubscription
- Lesson pack · 4.3 L5Optimisation: Dijkstra's shortest path algorithmSubscription


