Coding · Grade 11
Data Structures and Their Tradeoffs
Learners compare dynamic arrays with linked lists, trace a toy hash table with buckets and collisions to see why dictionaries are fast and keys must be immutable, and build binary search trees, observing how insertion order changes their height and performance. They then choose structures for realistic workloads by comparing the costs of the operations that matter most.
- 4 lessons
- About 100 minutes
- Check what you learned: 8 questions
- Ways to answer: choose an answer, trace code, match pairs, type a number, sort into groups and true or false
What learners will discover
- Compare dynamic arrays and linked lists by the cost of access, insertion and removal.
- Explain and trace hash tables, including hashing to buckets, collisions, resizing and immutable keys.
- Trace binary search tree insertion, search and in-order traversal, and relate height to performance.
- Choose a data structure for a workload by comparing the costs of its most frequent operations.
Lessons
-
Arrays versus linked lists 5 steps2 practiceabout 22 min
-
Hash tables 5 steps3 practiceabout 22 min
-
Binary search trees 6 steps4 practiceabout 24 min
-
Choosing a structure for a workload 4 steps2 practiceabout 18 min
-
Check what you learned 8 questions at the end
Keep exploring
More 11th grade coding
- 11th Grade Coding Worksheets12 printable worksheets
Guide for grown-ups
- How to start homeschooling: a step-by-step guide for familiesA guide for parents · 7 min read