CH02 - Data Transmission
CH02 - Data Transmission
Introduction
Data Representation
Chapter 1
Number systems
• In our daily lives we mostly use a denary number system. This is called a
base-10 number system and uses the digits 0–9. The units in a denary
number system are ones, tens, hundreds and thousands. Each time the
unit increases by the power of 10.
Hexadecimal
• Hexadecimal is also a number system. Humans can use hexadecimal, but
computers cannot process it. Like denary numbers, hexadecimal numbers
also need to be converted to binary to be processed by a computer.
• Binary addition
• You need to be able to add together two 8-bit binary numbers. When binary numbers
are added together there are four rules that you will need to use:
• Rule 1 is 0 + 0 = 0
• Rule 2 is 1 + 0 = 1
• Rule 3 is 1 + 1 = 10 (this is because 10 in binary is 2)
• Rule 4 is 1 + 1 + 1 = 11 (this is because 11 in binary is 3)
• You can apply these rules to add the binary numbers 10010100 and
00011110.
• If the computer is informed that the image that should be created using
this data is 9 pixels wide and 10 pixels high, it can set each pixel to black
or white and create the image (See Figure 1.2). The type of data that is
used to provide information, such as the dimensions and resolution of an
image, is called metadata.
• Each image has a resolution and a colour depth. For example, each colour
could be represented using 8-bit, 16-bit or 32-bit binary numbers (see
Figure 1.3). The greater the number of bits, the greater the range of
colours that can be represented.
• If you recorded the sound at each time sample, you would have the
following set of values:
• You will notice that the two sound waves look different. This is because the number of samples taken
is too far apart, so vital data in between time samples has been lost. This will result in a lack of
accuracy in the sound that is recorded. Therefore, more samples need to be taken each second to
improve the accuracy of the recorded sound. The number of samples taken in a second is called the
sample rate. Sample rates are measured in hertz. 1 hertz is equal to 1 sample per second. A common
sample rate is 44.1 khz (kilohertz), this would require 44 100 samples to be taken each second. That
is a lot of data! If the sample rate is increased, the amount of data required for the recording is
increased. This increases the size of the file that stores the sound. Further data is required to
represent sound, and this is the sample resolution. This is the number of bits that are used to
represent each sample. A common sample resolution is 16-bit. The higher the sample resolution, the
greater the variations in amplitude that can be stored for each sample. This means that aspects such
as the loudness of the sound can be recorded more accurately. This will also increase the amount of
data that needs to be stored for each sample.
Data compression
• You may already have experience of having large files and struggling to
have enough storage space to store them. One thing that can be done to
reduce the size of a file is compression. Compressing a file will reduce
the size of the file that can have several benefits, such as:
• Not as much storage space is needed to store the file.
• It will take less time to transmit the file from one device to another.
• It will be quicker to upload and download the file.
• Not as much bandwidth is needed to transmit the file over the internet
• There two type of compression that can be used, lossy and lossless.
• Lossy compression uses a compression algorithm that finds the unnecessary and
redundant data in the file. This data is permanently removed from the file. This type
of compression is mainly used on an image file or a sound file.
• Lossless compression uses a compression algorithm to reduce the size of the file,
without permanently removing any data. A common method that can be used to do
this is by finding repeating data in the file and grouping this data together.