Year 13TechnologyAchieved practice
AS91908 is assessed externally from a report you submit, not an exam. This sheet covers one area you can choose, complexity and tractability, so use it to check your understanding and to practise the analysis your report needs. The courier and its figures are invented. Support is Achieved practice, Core is Merit practice and Extension is Excellence practice. Achieved answers describe key ideas of the area and how they apply to a real problem. Merit answers explain how and why those ideas work, with worked examples. Excellence answers discuss trade-offs and evaluate how well techniques work in a real-world application. Report technique: use your own worked examples and calculations, cite the sources you used, and always link the theory back to a real application.
Read the text
Swift Parcels: planning delivery routes in Hamilton (invented case)
- [1]
Swift Parcels is an invented courier company in Hamilton. Every morning each van leaves the depot, visits every delivery stop once and returns to the depot. The company wants the shortest route for each van, because shorter routes save fuel, time and money. This is a version of the travelling salesperson problem.
- [2]
A brute force program tries every possible order of the stops and keeps the shortest. For n stops there are n! (n factorial) possible orders, for example 4! = 4 × 3 × 2 × 1 = 24. The company's computer can check about 1 billion (10^9) orders each second.
- [3]
A small example. A van leaves the Hub and must visit stops A, B, C and D. Road distances in kilometres: Hub to A 9, Hub to B 8, Hub to C 2, Hub to D 6, A to B 5, A to C 7, A to D 9, B to C 6, B to D 4, C to D 8.
- [4]
The nearest neighbour algorithm is a heuristic: from wherever the van is, it always goes to the closest stop it has not yet visited, then returns to the Hub at the end. It runs quickly, but it does not always find the shortest route.
- [5]
Swift Parcels also sorts every parcel by street before loading the vans. Sorting n parcels with a good algorithm such as merge sort takes about n log₂ n steps, so even 10,000 parcels sort almost instantly.
- [6]
Key terms. Tractable problem: one that can be solved in polynomial time (for example n or n² steps), so it stays practical as n grows. Intractable problem: one where every known exact algorithm takes exponential time or worse (for example 2^n or n! steps), so it becomes impossible in practice for large n. Heuristic: a method that quickly finds a good answer that is not guaranteed to be the best.
AAchieved practice: describe the key ideas
Use the resource. Show your working for any calculation.
- 1.
Which of these tasks can be done in polynomial time, so it stays practical as the input grows?
(1 mark)- Sorting 10,000 parcels by street name
- Finding the guaranteed shortest route through 60 stops by brute force
- Checking every possible order of 30 stops
- Trying every possible 60-character password
- 2.
How many possible orders are there for a van with 5 stops, and for a van with 10 stops?
(2 marks) - 3.
Use the nearest neighbour algorithm on the small example, starting at the Hub. Give the route and its total length.
(3 marks) - 4.
Describe the difference between a tractable and an intractable problem, using one example from Swift Parcels for each. Sentence starter: A tractable problem is one that...
(4 marks) - 5.
Describe what a heuristic is, and why Swift Parcels might use one for route planning.
(4 marks) - 6.
Describe how the number of steps changes as n grows from 10 to 20 for an algorithm that takes n² steps and one that takes 2^n steps.
(4 marks)