This week’s topics
Sequences and how fast programs grow
- Counting the steps a program takes
- Slow and fast growth
What you will be able to do
- 2.2 Explain their relevance to algorithmic complexity (informally).
Activity
Count the steps of two simple algorithms for bigger and bigger inputs.
Study materials
Further resources
- Think Python, Appendix B: Analysis of Algorithms · PDF · Downey, Think Python 2e (Green Tea Press), Appendix B: counting steps and how running time grows, pp. 201–209 · for registered students
- Introduction to Computer Science, 3.3: Formal Properties of Algorithms · PDF · OpenStax Introduction to Computer Science (2024), 3.3: slow and fast growth of algorithms (a step up), pp. 104–109 · for registered students
Materials marked “for registered students” open in the student portal, which is set up as soon as you receive final acceptance.