YOUR SUBJECT LESSONS
Computer science
Make number systems and logic tangible.
- 01Define the input and the expected output.
- 02Trace one small example by hand.
- 03Test a boundary case as well as the usual case.
FROM PRINCIPLE TO PRACTICE
Lessons in a useful order
From foundations to high school: a mental model, worked example and four exercises with solutions per chapter.
Middle school
Computer science
Binary: position determines weight
Positional notation multiplies each digit by a power of the base.
Lesson and 4 exercisesHigh school foundations
Computer science
Algorithms: inputs, steps, output
An algorithm specifies operations for a family of problems.
Lesson and 4 exercisesHigh school · intermediate
Computer science
Logic: test every possibility
A boolean proposition is true or false.
Lesson and 4 exercisesHigh school · intermediate
Computer science
Loops and search: trace the algorithm
Loops repeat operations with state and continuation conditions.
Lesson and 4 exercisesFinal-year concepts
Computer science
Data and networks: useful abstractions
Data structures organise values and operations: stacks are last-in first-out; queues are first-in first-out.
Lesson and 4 exercisesFinal-year concepts
Computer science
Databases: tables, keys and queries
Relational tables contain rows and typed attributes.
Lesson and 4 exercises