Computing Foundations for AI / Hardware Basics
Input, process, store, output.
Reviewed by Yuvaraj
A computer is a machine that stores and processes information as bits, following a list of instructions that it keeps in the very same memory as the data those instructions work on. That last detail is the deep idea, and it has a name: the stored-program model. There is no separate compartment for "the program" and another for "the numbers", both are just patterns of bits sitting in memory, and the machine reads and acts on them one step at a time. This single insight, made practical in the 1940s, is why one physical device can run a spreadsheet, a game, and a chat assistant without anyone rewiring it.
At the lowest level, a computer knows nothing about numbers, letters, or images. It only holds bits, tiny elements that are either 0 or 1. Text, sound, photographs, and the instructions of a program are all encodings: agreed-upon ways of representing something as a group of bits. Change the encoding and the same bits mean something different, and that flexibility is the whole point.
For a curious beginner
How it is actually used
00000000 through 11111111). Bytes are the practical unit of memory, files, and addresses.The underlying mechanism
Ask about this lesson, or about anything in AI. Answers cite the lessons they draw on.
Finished this lesson?
Mark it complete to earn XP, keep your streak, and schedule a review.
Every computer, from a phone to a data-center server, organizes work into five roles.
| Role | Job | Typical hardware |
|---|---|---|
| Input | Bring information in | Keyboard, mouse, microphone, sensor |
| Processing | Follow instructions; do arithmetic and logic | CPU |
| Working memory | Hold data and instructions while in use | RAM |
| Storage | Keep data after the power is off | SSD, hard disk |
| Output | Send results back out | Screen, speaker, network |
The distinction that matters most is between working memory (RAM) and storage (disk/SSD). RAM is fast but volatile, its contents vanish when power is lost. Storage is slower but persistent, it keeps your files between sessions.
The CPU does not "understand" your whole program at once. It grinds through one instruction at a time, in a loop that repeats billions of times per second.
Because the instruction was itself just bits fetched from memory, a program is not a special kind of thing: a program is data that tells the CPU what to do.
Watch the five roles hand the work to each other.
The binary addition itself:
00000010 (2)
+ 00000011 (3)
= 00000101 (5)
The punchline
Nothing in this trace treated the ADD instruction differently from the numbers 2 and 3. Instructions and data live side by side in the same RAM. That is the stored-program model in action.
Common mistakes