Path-finding, Computational Methods and Project Development – OCR A Level Computer Science lessons (H446)
Seventeen Year 13 lessons on Dijkstra's and A*, backtracking, heuristics, data mining and pipelining, with project sprints 2 to 4.
Students trace Dijkstra's shortest path and A*, and learn why A* stops at the goal and what its heuristic does. They apply backtracking, heuristics, data mining, performance modelling, pipelining and visualisation to scenarios, and alternate these lessons with development sprints on their projects.
Unit 13.4 is taught in Year 13, Autumn 2, and answers one big question: How do computers find the best route, and when is good enough?
What happens in each lesson:
Lesson 1, Dijkstra's shortest path algorithm: How does a robot find the shortest route across the warehouse? Main task: describe how Dijkstra's algorithm finds the shortest route for a Harrowgate Fulfilment picking robot from Goods-in to Packing on the warehouse floor graph: Goods-in G to Packing P, with edges G–A 4, G–B 2, A–B 1, A–C 5, B–C 8, B–D 10, C–D 3, C–P 7, D–P 2, A–E 9 and E–P 4 (metres), and state the route and its length.
Lesson 2, Tracing Dijkstra's algorithm: How do you show every step of Dijkstra's algorithm? Main task: trace Dijkstra's algorithm from G on Harrowgate Fulfilment's warehouse floor graph, showing the priority queue, each node's distance and previous node after every visit, then give the shortest path to P by working back from P.
Lesson 3, Development sprint 2: What does your second sprint add, and how will you record it?
Lesson 4, The A* algorithm: How can an estimate make the search smarter? Main task: explain how the A* algorithm would use the straight-line estimates to P: G 10, A 9, B 10, C 5, D 2, E 4, P 0 to find a Harrowgate Fulfilment robot's route from G to P, and why it expands fewer nodes than Dijkstra's algorithm.
Lesson 5, Tracing A* and comparing it with Dijkstra: When can you trust A* to give the shortest route? Main task: trace the A* algorithm from G to P on Harrowgate Fulfilment's warehouse floor graph with the given heuristic, recording g, h and f for each node in the open list after every expansion, then distinguish between A* and Dijkstra's algorithm in how they choose the next node and when they stop.
Lesson 6, Development sprint 2 (continued): What do your users think of what you have built so far?
Lesson 7, Backtracking: What should a search do when it reaches a dead end? Main task: describe how backtracking would find a route for a Harrowgate Fulfilment robot mapping the new mezzanine floor, where junction E leads to A and B, A leads to dead ends C and D, B leads to F and F leads to the goal G, taking branches in alphabetical order.
Lesson 8, Heuristics and performance modelling: When is a quick, good-enough answer better than the best one? Main task: explain why Harrowgate Fulfilment uses a nearest-neighbour heuristic to plan a picker's trip to four aisle locations instead of checking every order of visits, and how performance modelling could predict whether the packing benches will cope with three times the normal orders before peak season.
Lesson 9, Development sprint 2 review: What did sprint 2's tests show, and what did you change?
Lesson 10, Data mining: What can a warehouse learn from orders it already holds? Main task: explain how Harrowgate Fulfilment could use data mining on two years of order records to decide which products to store next to each other, and why this data counts as big data.
Lesson 11, Pipelining and visualisation as problem-solving methods: How do stages and pictures help solve big problems? Main task: calculate how long Harrowgate Fulfilment's returns desk takes to process 100 returns through four one-minute stages (check, clean, relabel, reshelve) with and without pipelining, then interpret a heat map of robot positions to explain one change the managers should make.
Lesson 12, Development sprint 3: How will your new features fit the modules you already have?
Lesson 13, Development sprint 3 (continued): Does your solution reject data it should not accept?
Lesson 14, Development sprint 3 review: What did sprint 3's tests show, and what did you change?
Lesson 15, Exam skills: Section B scenarios: How do you apply what you know to a Section B scenario? Main task: evaluate whether Harrowgate Fulfilment should replace its fixed robot routes with routes planned by the A* algorithm in its new, larger warehouse, using the facts in the Section B scenario (12 marks, levels-marked 9–12 / 5–8 / 1–4).
Lesson 16, Development sprint 4: How can you improve what already works?
Lesson 17, Progress Check: 23 multiple-choice questions (homework or the start of the lesson) + a 40-mark written paper in the lesson (45 minutes)
- Misconceptions it tackles include
- “A node's distance is replaced whenever a new route to it is found, even if the new route is longer”; “Items leave a priority queue in the order they arrived, like a normal queue”; “A* carries on like Dijkstra's algorithm until every node has been visited”. Each is planned into a hinge question before the main task or an exit question, so you find out who still holds it.
- OCR H446 specification coverage
- 2.3.1 (f), standard algorithms: here Dijkstra's shortest path algorithm and the A* algorithm, traced on weighted graphs and compared (the searching and sorting algorithms in this point were taught in 12.4); 2.2.2 (f), computational methods used to solve problems: backtracking, data mining, heuristics, performance modelling, pipelining and visualisation; 3.3, programming project, developing the solution: iterative development with evidence of each stage (modular, annotated code, validation, review at each stage) and testing to inform development, showing failed tests and the remedial action taken.
It builds on 13.3 Boolean Algebra and Logic Circuits; 12.8 Data Structures (weighted graphs, queues, stacks and graph traversal), 12.10 computational methods (abstraction, decomposition, divide and conquer), 13.2 Big O and Project Design (each student's design and sprint 1) and 12.1 pipelining in the processor. It leads on to 13.5 Legal, Moral, Cultural and Ethical Issues (data mining and monitoring of workers return as ethical questions), 13.6 Mock Exams and Project Development (sprints 5 and 6), 13.7 Project Testing and Evaluation, and 13.8 Synoptic Revision, where Section B scenarios are practised across the whole course.
- Adapting it for your school
- Lesson 16 (Development sprint 4) is the flex lesson: if time is short, students carry sprint 4 into 13.6, which runs sprints 5 and 6. Harrowgate Fulfilment is fictional. Swap it for any organisation that routes people or vehicles through a building or site; every Build keeps its structure, and the graphs can be redrawn on the school site. Highcrag Climbing Centre is a fictional project used only as a worked example, continued from 12.12 and 13.2 and on into 13.6 and 13.7. No student may choose it as their own project. Project lessons follow the JCQ Instructions for conducting non-examination assessments: general whole-class guidance and supervision only, no written feedback to a student on how to improve their own work, and every borrowed or AI-assisted line referenced (spec section 4e). Teaching and project lessons alternate. If your timetable puts two lessons together, pair each teaching lesson with the sprint lesson after it, keeping Dijkstra (L1–2) before A* (L4–5).
An independent resource written for OCR A Level Computer Science (H446). It is not endorsed by OCR or Cambridge University Press & Assessment. Programming project (NEA) lessons teach general skills on a made-up example project and give supervised time, within JCQ's rules on the help a centre may give.
What's included
- 17 lesson slide decks (PowerPoint)
- 17 lesson plans (Word)
- 17 worksheets, plus 16 support versions with scaffolds (Word)
- 1 exam-style paper with mark scheme (Word)
- Medium term plan with intent, key words, misconceptions and adaptive teaching notes (Word)
- Progress Check lesson to assess the unit
- Pipelining and visualisation as problem-solving methods - Quiz Quiz Trade Cards
- Department licence: every teacher in your department can use and adapt it
In this bundle
Worth £68 bought separately at £4 a lesson. The bundle saves you 33%.
More for A Level Computer Science
See allFourteen Year 13 lessons on SQL, referential integrity, transactions, ACID and record locking, then floating point binary end to end.
Free sample lessonSixteen Year 13 lessons on Big O notation, project design from decomposition to test plans, and the first development sprint.
Free sample lessonEleven Year 13 lessons on Boolean algebra, De Morgan's laws, Karnaugh maps, adders and D-type flip-flops.
Free sample lessonWritten for the specifications named. Not endorsed by or affiliated with any exam board.