Lite / Intelligent Robotic Systems / Week 6
Week 6: Computational efficiency
This week you will
- Count the steps an algorithm takes as its input grows and express it in big-O notation.
- Measure growth experimentally and explain what big-O does not tell you (module check).
Lessons
- Count the steps before you time them · about 35 min
Checking every pair of 1,000 waypoints for collisions: is that 1,000 checks, 500,000, or a million? - Big-O: the shape of growth · about 40 min
Algorithm A takes 3n² + 50n + 1000 steps; algorithm B takes 400n. Which would you choose for a map with a million cells? - Module check: measure growth, then explain it · about 45 min
Your model says the planner is O(n). The stopwatch says doubling the map quadruples the time. Who's right?