Week 20. Introduction to algorithms
- ◇ Define an algorithm as a finite, exact, ordered list of steps.
- ◇ Draw a simple flowchart with a start, steps, a decision and an end.
- ◇ Compare two algorithms for the same job by counting their steps.
- 1What is an algorithm?You could teach a friend to make a sandwich in ten words. Could you teach a robot in ten words?25 min
- 2Drawing algorithms as flowchartsA greenhouse heater has no idea what a plant is. How can a simple drawing keep seedlings alive all night?25 min
- 3Some algorithms are better than othersTwo robots count 30 boxes. One counts in ones, the other in twos. Both get 30. Which would you hire?25 min