1 of 23

Lesson 5:

Large quantities

Year 8 – Data Representations – Representations: from clay to silicon

2 of 23

Discussion

Starter activity

We use nanometres to measure the size of molecules.

We use centimetres to measure the size of objects.

We use kilometres to measure the distances between cities.

Why do we use different units?

Discuss this with the person next to you.

3 of 23

In this lesson, we will...

Objectives

Find out what bytes are, and what the prefixes kilo-, mega-, giga- and tera- mean.

We will also practise converting between them.

4 of 23

Bytes

Activity 1

In computing, it is very common to group binary digits into chunks of eight.

Example

Here are 8 binary digits:

00101101

A group of eight binary digits is called a byte.

This is 1 byte.

Caution

Bit: 1 binary digit

Byte: 8 binary digits

These are not the same.

Do not confuse them.

5 of 23

Bytes

Activity 1

Example

Here are 24 binary digits:

00101101

01000110

11110001

A group of eight binary digits is called a byte.

These are 3 bytes.

Caution

Bit: 1 binary digit

Byte: 8 binary digits

These are not the same.

Do not confuse them.

6 of 23

Conversions: bits to bytes

Activity 1

00110001001000000110001001111001011101000110010100100000011010010111001100100000001110000010000001100010011010010111010001110011

A group of eight binary digits is called a byte.

This is a sequence of 128 bits.

What is its size in bytes?

How many groups of 8 can you form with 128 bits?

128 ÷ 8 = 16 bytes = 16 B

7 of 23

Conversions: bits to bytes

Activity 1

To convert bits to bytes:

divide the number of bits by 8

because this is how many groups of 8 bits, i.e. bytes, ‘fit’ in the sequence

bits

bytes

÷8

8 of 23

Conversions: bytes to bits

Activity 1

00110001001000000110001001111001011101000110010100100000011010010111001100100000001110000010000001100010011010010111010001110011

A group of eight binary digits is called a byte.

A piece of text is 16 bytes long.

What is its size in bits?

There are 16 groups of 8 bits each.

16 ⨉ 8 = 128 bits = 128 b

9 of 23

Conversions: bytes to bits

Activity 1

To convert bytes to bits:

multiply the number of bytes by 8

because there are 8 bits in every byte

bits

bytes

⨉8

10 of 23

Bits and bytes

Activity 2

Count the bytes in a couple of simple problems.

Write the answers on your worksheet.

bits

bytes

÷8

⨉8

11 of 23

Bits and bytes: answers

Activity 2

Count the bytes in a couple of simple problems.

Check your answers against the ones provided and correct any mistakes.

Ask a classmate if you are in doubt. If a classmate cannot help you, ask your teacher.

12 of 23

Reminder

Activity 3

Examples

text ✓

numbers ✓

images

sounds

animations and videos

programs

All pieces of information are represented as sequences of binary digits.

110101111010011110100111010011110011101011110100111101001110100111100111010111101001111010011101001111001110101111010011110100111010011110011101011110100111101001110100

13 of 23

Representation size

Activity 3

All pieces of information are represented as sequences of binary digits.

Sequences of binary digits tend to get really long.

How do we talk about these huge numbers of binary digits?

type of information

number of bits

a chapter in a book

a few thousand

a photograph

a song

a few million

a film

the human genome

a few billion

all the files on a computer

all the files on Wikimedia

a few trillion

14 of 23

Activity 3

When we talk about a large quantity, the details are not important.

We use multiples

such as thousands, millions, etc.

My favourite song is 24,354,768 bits!

My favourite song is 24 million bits!

15 of 23

Prefixes

Activity 3

Scientists use prefixes to denote multiples of a unit.

Examples

3 thousand grams is

3 kilograms or 3 kg

8 million pixels is

8 megapixels or 8 MP

4.5 billion years is

4.5 gigayears

prefix

short

meaning

kilo-

K

thousands

mega-

M

millions

giga-

G

billions

tera-

T

trillions

16 of 23

Translate and convert: use prefixes and bytes

Activity 3

It is common practice to:

Use prefixes instead of multiples,

i.e. replace millions with mega-

Use short forms, i.e. replace mega- with M and bits with a lowercase b

Convert bits to bytes

(and use an uppercase B for bytes)

My favourite song is 24 megabits, or 24 Mb.

My favourite song is 24 million bits!

My favourite song is 24 megabits.

My favourite song is

3 megabytes, or 3 MB.

17 of 23

Translate and convert: use prefixes and bytes

Activity 3

So this is how the size of a sequence which is 24 million binary digits long would be described:

3 MB

18 of 23

Translate and convert: understand prefixes and bytes

Activity 3

Let’s try it the other way too.

To really understand sizes,

translate and convert:

Expand short forms, i.e. use

giga- and bytes instead of G and B

Translate prefixes to multiples,

i.e. billions instead of giga-

Convert bytes to bits (if you need to)

My operating system is

2 GB or 2 gigabytes

My operating system is

2 billion bytes.

My operating system is

16 billion bits.

My operating system is

2 GB.

19 of 23

Translate and convert: use prefixes and bytes

Activity 3

So this is what a size of 2 GB really means: it’s a sequence of

16 billion binary digits

Translating and converting will help you interpret what may seem like gibberish

20 of 23

Compare and convert

Activity 4

Practise finding your way around units and prefixes.

Write the answers on your worksheet.

Use the conversion cheat sheet, if you need to.

21 of 23

Compare and convert: answers

Activity 4

Practise finding your way around units and prefixes.

Check your answers against the ones provided and correct any mistakes.

Ask a classmate if you are in doubt. If a classmate cannot help you, ask your teacher.

22 of 23

Homework

Study the different ways in which information is stored and transmitted in digital devices

Perform simple conversions with prefixes

Explorer tasks

Plus: any activities that you did not complete during this lesson

23 of 23

Next lesson

Summary

In this lesson, we...

Learned how to handle bytes and prefixes and use them to talk about representation sizes.

Next lesson, we will...

Take a quiz that will allow us to assess what we’ve learned.

Play a game.