Lite / Independent Engineering Research / Week 19
Week 19: Computational complexity
This week you will
- Analyse time and space complexity, including best, worst and average cases.
- Solve divide-and-conquer recurrences by unrolling them.
- Explain tractable versus intractable problems and why heuristics and approximations are used.
Lessons
- How fast does the work grow? · about 40 min
Your code sorts 1,000 readings in a millisecond. Will a million readings take two seconds, or seventeen minutes? - Divide, conquer and count with recurrences · about 40 min
Merge sort splits a list in half, sorts each half, then merges. How do you count the work of something defined in terms of itself? - When exact answers are out of reach · about 45 min
A delivery van must visit 20 shops. Trying every route would take a fast computer about two years. How do real route planners answer in a second?