CS101 Bits and Binary: How Computers Represent Information
Learn how bits, binary digits, bit patterns, bytes, and powers of two allow computers to represent and process information in CS101.
Bits and Binary: How Computers Represent Information
Computers work with many kinds of information: numbers, text, images, sound, instructions, and much more. Although these forms of information look very different to us, inside a computer they can ultimately be represented using patterns built from only two symbols: 0 and 1.
Understanding these binary patterns is one of the foundations of computer science.
In this article, we will study what a bit is, how bits form patterns, how storage units are related, and how binary patterns can represent numeric values.
1. What Is a Bit?
A bit is a binary digit.
A bit can have one of only two possible values:
01
These two values can be used to represent two different states.
For example:
| Bit | Possible Meaning |
|---|---|
0 | Off |
1 | On |
The exact meaning of a bit depends on how a computer system uses it. A bit may participate in representing a number, a character, an instruction, part of an image, or another type of information.
The important idea is:
A single bit provides two possible patterns:
0and1.
2. Why Do Computers Use Bits?
Computer hardware contains electronic components that can distinguish between states.
Instead of requiring a separate physical representation for every number, letter, image, or instruction, computers encode information using combinations of binary states.
This gives us the basic language of digital computing:
0 and 1
