How Computers Work
Under the screen: how a machine that only knows 'on' and 'off' can run games, videos, and everything else.
AI tutor is turned off for this class
Use the CS1H lectures, notes, and assignments below to keep learning.
Lesson overview
Under the screen: how a machine that only knows 'on' and 'off' can run games, videos, and everything else.
Teacher script · 45 min
- 0–5
Hook
Deep down a computer has millions of tiny switches, each either ON or OFF. We call one switch a BIT. Group switches together and patterns of on/off can stand for a number, a letter, a color, a sound. Each switch is simple. The computer flips billions of them a second.
- 5–15
Explore
Students do the activity in pairs: Number ten cups 0–9, put a number in each, and be the CPU: 'read cup 3, add cup 4, write it in cup 5.'
- 15–30
Explain
The key is LAYERS. Bits form numbers; numbers form instructions; instructions form programs; programs stack into the operating system and then the apps you touch. Each layer hides the messy one beneath it, so an app developer never thinks about switches. This idea, ABSTRACTION, building reliable layers on top of simpler ones, is one of the central ideas in computing.
- 30–40
Connect to the summit
Read aloud the "Where this course leads" section below. Ask students which ideas from today they recognize in it.
- 40–45
Check
Run the formative check below. Anyone who can explain a key term in their own words has it.
Student activity
Number ten cups 0–9, put a number in each, and be the CPU: 'read cup 3, add cup 4, write it in cup 5.'
Slides
Formative check
- 1.In your own words, what is "Bit"? (Looking for: A single on/off switch, the smallest piece of information a computer has.)
- 2.In your own words, what is "Memory"? (Looking for: A wall of numbered boxes the computer reads from and writes to.)
- 3.In your own words, what is "Processor (CPU)"? (Looking for: The fast worker that follows simple instructions one after another.)
Carry-away concepts
- Bit
- A single on/off switch, the smallest piece of information a computer has.
- Memory
- A wall of numbered boxes the computer reads from and writes to.
- Processor (CPU)
- The fast worker that follows simple instructions one after another.
- Abstraction
- Hiding a complicated layer behind a simple one you can use without knowing the details.
Where this course leads
From here the systems courses become approachable: how numbers and memory work at the machine level (CS107), how the operating system juggles everything (CS111), and how chips are designed for speed (architecture).
This is a beginner course written for Feynman, not a Stanford course.