This week’s topics
Choosing data structures, with a Python refresher
- Choosing data structures: impact on running time and space
- Python and Jupyter refresher
What you will be able to do
- 1.3 Analyse the impact of the choice of data structure on algorithmic performance.
Activity
Start with this week’s 4 videos, then: Seminar, guided reading and a short written task: analyse the impact of the choice of data structure on algorithmic performance.
Study materials
Videos
- Python Programming Tutorial #1 - Variables and Data Types · YouTube · Tech With Tim · 11 min · for registered students
- Python Tutorial for Beginners 6: Conditionals and Booleans - If, Else, and Elif Statements · YouTube · Corey Schafer · 16 min · for registered students
- Python Tutorial for Beginners 7: Loops and Iterations - For/While Loops · YouTube · Corey Schafer · 10 min · for registered students
- Functions in Python are easy 📞 · YouTube · Bro Code · 11 min · for registered students
Further resources
- Think Python, ch. 13: Case study – data structure selection · PDF · Downey, Think Python 2e (Green Tea Press), ch. 13: a second worked mini project from problem to tested program, pp. 125–136 · for registered students
- Introduction to Python Programming, 1.3–1.5: Variables, strings, numbers · PDF · OpenStax Introduction to Python Programming (2024), 1.3–1.5: variables, string basics, integers and floats, pp. 14–22 · for registered students
- Introduction to Python Programming, ch. 6: Functions · PDF · OpenStax Introduction to Python Programming (2024), ch. 6: defining functions, parameters, return values and keyword arguments, pp. 137–163 · for registered students
- Understanding students' failure to use functions as a tool for abstraction (CS1 Python) · Open-access article · Haglund et al. (2021), Informatics in Education. Why CS1 Python students avoid defining their own functions, with examples. · for registered students
Materials marked “for registered students” open in the student portal, which is set up as soon as you receive final acceptance.