How Computers Calculate - the ALU: Crash Course Computer Science #5?

A computer’s ALU is like a super-smart calculator that lives inside the brain of the computer and does all the hard math work for it.

Imagine you have a toy box full of different kinds of blocks: some are for adding, some for subtracting, some for multiplying. The ALU is like that toy box, it has lots of little tools (we call them circuits) that help it do things like add two numbers or multiply them together.

How the ALU Works

When a computer needs to solve a math problem, it sends the numbers and the type of operation (like adding or multiplying) to the ALU. The ALU then uses its special tools to figure out the answer and sends it back, just like how you would use your blocks to do math.

For example, if you have 3 apples and get 2 more, the ALU adds them together to make 5. It’s simple but super important because all computers need to do math every second of the day!

The ALU doesn’t get tired, no matter how many problems it has to solve, it just keeps working away, ready for the next one!

Take the quiz →

Examples

  1. The ALU is like the brain of a computer when it's doing math, such as adding two numbers together.
  2. Imagine you're in a classroom and need to calculate how many cookies everyone has, that’s what the ALU does for computers.
  3. When your calculator adds 2 + 3, it uses something similar to an ALU inside.

Ask a question

See also

Discussion

Recent activity