Who it is for: Learners who are comfortable with Python functions and lists and want to solve problems efficiently.
A program that works on ten records can slow down badly on ten thousand. Learners who know how data is stored and searched can build tools that stay fast as data grows. At the end, the learner can explain why one structure suits a problem better than another and measure the difference.
AI tools can write a sorting function or a tree from memory, so we spend less time on that. We spend more time on tracing, on reasoning about speed, and on choosing a structure, because these are what a programmer needs to judge whether an AI’s answer is right.
AI policy: Builders may use AI only as a tutor, with the teacher present, after they have shown the skill without it. Pioneers and adults may use AI after the checkpoint, and must test its code on edge cases and explain the speed in their own words. The checkpoint is done without AI.
Planned lessons
- Counting steps: a one-by-one search by hand and in Python
- Big O in plain words: how the steps grow as data grows
- Lists in memory: which operations are fast and which are slow
- Binary search on a sorted list
- Sorting: trace two sorts by hand, then use Python's sorted
- Stacks and queues
- Dictionaries (hash tables) for fast lookup
- Trees and tree traversal
- Graphs and breadth-first search: routes between villages
- Choosing the right structure for a problem
- Is this algorithm correct? Edge cases, tests, and judging an AI's answer
Teach it as
| One session | Count the steps of a one-by-one search and a binary search on paper, then time both in Python on a large list, in one 2 hour class. |
|---|---|
| One day | Morning: counting steps, Big O in plain words, and binary search. Afternoon: dictionaries for fast lookup, stacks and queues, and choosing a structure for a local problem. |
| One week | Day 1: counting steps and Big O in plain words. Day 2: lists in memory, binary search, and sorting. Day 3: stacks, queues, and dictionaries. Day 4: trees, graphs, and breadth-first search. Day 5 (Build and Show): checkpoint without AI (trace and compare on paper), then each learner explains which structure they chose for a problem and why. |
Know this first
- Python 3: functions, lists, and files
Standards this follows
- CS2023 Algorithmic Foundations (AL): foundational data structures and algorithms, algorithmic strategies, complexity
- CS2023 Software Development Fundamentals (SDF): fundamental data structures
- MIT OpenCourseWare 6.006 and CS50 as linked references only (CC BY-NC-SA 4.0, not copied)
Videos to download
No videos listed yet.