Using binary (Edexcel GCSE Computer Science): Revision Notes
Using binary
What is binary?
Binary is a number system that uses only two digits: 1 and 0. In computing, binary is essential because it's used to represent all data and programme instructions that computers process. Every piece of information your computer handles - from text messages to videos - is ultimately stored and processed as patterns of 1s and 0s.
Binary forms the foundation of all digital technology. Understanding binary is crucial for grasping how computers store, process, and transmit information in our digital world.
Why do computers use binary?
Computer processors are made up of billions of tiny electronic components called transistors. These transistors work like incredibly fast switches that can only be in one of two states:
- On (represented by 1)
- Off (represented by 0)
This is similar to a light switch in your home - it's either on or off, there's no in-between state. Because transistors can only handle these two states reliably, the binary system with its two digits (1 and 0) is perfect for computers.
Computers use binary because transistors - the fundamental building blocks of processors - can only exist in two reliable states: on or off. This physical limitation makes binary the natural choice for digital systems.
Understanding the binary system
Bits, nibbles and bytes
The building blocks of binary data have specific names:
- Bit: The smallest unit of data, representing a single binary digit (1 or 0)
- Nibble: A group of 4 bits
- Byte: A group of 8 bits
These groupings allow computers to represent much more complex information than just simple on/off states. By combining multiple bits together, we can create unique patterns that represent different types of data.
These groupings create a hierarchy of data storage. Just as we group letters into words and words into sentences, computers group bits into larger units to represent more complex information efficiently.
How information is represented in binary
Text representation
To represent text, computers need to handle much more than just two states. Consider what's needed for basic text:
- 26 lowercase letters (a-z)
- 26 uppercase letters (A-Z)
- Punctuation marks (full stops, question marks, etc.)
Each character gets its own unique binary pattern, allowing computers to store and display text.
Graphics representation
For graphics and images, computers use binary to represent visual information. When only two digits are available, images appear in black and white with no other colours or shades possible. However, by using more bits, computers can represent millions of different colours.
Combining bits to create more possibilities
The power of binary comes from combining multiple bits together. The more bits you use, the more unique combinations you can create:
- 2 bits can create different combinations (00, 01, 10, 11)
- 3 bits can create different combinations
- 4 bits can create different combinations
The formula
The number of unique binary patterns that can be created with n bits is calculated using:
Where n is the number of bits you're using.
Remember the formula: - This is one of the most important formulas in computing. The more bits you have, the exponentially more combinations become possible, which directly affects data storage capacity and processing capabilities.
Place values in binary
Just like in our normal decimal system where each digit has a place value (ones, tens, hundreds), binary also uses place values. However, instead of increasing by factors of 10, binary place values increase by powers of 2.
In binary, each digit position represents a power of 2, with the rightmost digit having the lowest value. As you move left, each position has double the value of the position to its right.
While decimal uses powers of 10 (10¹, 10², 10³...), binary uses powers of 2 (2¹, 2², 2³...). This fundamental difference affects how we read and interpret binary numbers.
Worked example: calculating colour possibilities
Worked Example: Calculating Colour Possibilities
Question: How many different colours can be represented using 8 bits?
Step 1: Identify the formula Number of combinations =
Step 2: Substitute the values n = 8 bits
Step 3: Calculate the result Number of colours = colours
Answer: With 8 bits, a computer can display 256 different colours.
This explains why early computer graphics often had limited colour palettes - they were restricted by the number of bits available to represent each colour.
Exam tips
- Remember the powers of 2: , , , , , , ,
- Watch for key terms: Make sure you know the difference between bits, nibbles, and bytes
- Formula questions: Always show your working when calculating combinations using
- Real-world connections: Think about how binary limitations affect things like image quality and file sizes
Exam Strategy Tip: Practice calculating powers of 2 up to (which equals 1024). These calculations appear frequently in computing exams and understanding them helps you work more quickly under time pressure.
Key Points to Remember:
- Binary uses only two digits (1 and 0) because computer transistors can only be on or off
- A bit is a single binary digit, a nibble is 4 bits, and a byte is 8 bits
- More bits = more possible combinations and more complex data representation
- The formula calculates how many unique patterns n bits can create
- All computer data - text, images, programmes - is ultimately stored as binary patterns