Chapter 1 - Data Representation
Chapter 1 - Data Representation
Hard Drive
Mr. Noureddine Tadjerout 14
9/24/2023
Mr. Noureddine Tadjerout 15
This system is more accurate. Internal memories (such as RAM) should be measured using the IEC
system. A 64 GiB RAM could, therefore, store 64 × 230 bytes of data (68 719 476 736
bytes).
9/24/2023
Mr. Noureddine Tadjerout 16
9/24/2023
Data Storage Capacities
Terabyte:
A Terabyte is a measure of computer storage capacity and is 2 to the 40th power of 1024
gigabytes.
Petabyte:
A Petabyte (PB) is a measure of memory or storage capacity and is 2 to the 50th power bytes or,
in decimal, approximately a thousand terabytes (1024 terabytes).
Exabyte:
An Exabyte (EB) is a large unit of computer data storage, two to the sixtieth power bytes. The
prefix exa means one billion, or on quintillion, which is a decimal term. Two to the sixtieth power
is actually 1,152,921,504,606,846,976 bytes in decimal, or somewhat over a quintillion (or ten to
the eighteenth power) bytes. It is common to say that an Exabyte is approximately one
quintillion bytes. In decimal terms, an Exabyte is a billion gigabytes.
Zettabyte:
A Zettabyte (ZB) is equal to one sextillion bytes. It is commonly abbreviated ZB. At this time, no
computer has one Zettabyte of storage. It has 1024 Exabytes.
Yottabyte:
A Yottabyte is equal to one septillion bytes. It is commonly abbreviated YB. At this time, no
computer has one Zettabyte of storage. It has 1024 Zettabytes.
How Computers Work – Binary!
Computers are made up of complicated hardware that
stores and processes data.
on or off
1 or 0
1.1.1.1- Number System (Denary, also known as "decimal“)
0 , 1, 2, 3, 4, 5, 6, 7, 8, 9
Denary 128 64 32 16 8 4 2 1
Binary 0 0 0 0 0 0 0 1
(1 * 1) = 1
1.1. Number System:
A)-Converting from denary to binary
Denary 128 64 32 16 8 4 2 1
Binary 0 0 0 0 0 0 1 1
(1 * 2) = 2 + (1 * 1) = 1
1.1. Number System:
A)-Converting from denary to binary
Denary 128 64 32 16 8 4 2 1
Binary 0 0 0 0 0 1 1 0
(1 * 4) = 4 + (1 * 2) = 2
1.1. Number System:
A)-Converting from denary to binary
The position of numbers in binary is also important.
Calculating denary number 37:
Denary 128 64 32 16 8 4 2 1
Binary 0 0 1 0 0 1 0 1
(1 * 32) = 32 +(1 * 4) = 4 + (1 * 1) = 1
1.1. Number System:
A)-Converting from denary to binary
Can you work out how to write the denary number 115
in binary?
Denary 128 64 32 16 8 4 2 1
Binary 0 1 1 1 0 0 1 1
+ +
64 32 16 +2 +1
1.1. Number System:
A)-Converting from denary to binary
Can you work out how to write the denary number 255
in binary?
Denary 128 64 32 16 8 4 2 1
Binary 1 1 1 1 1 1 1 1
+ + + + 8 + 4 +2 +1
128 64 32 16
1.1. Number System:
A)-Converting from denary to binary
Work out the following numbers in binary:
Number Binary
165
117
61
224
39
139
170
186
255
223
84
Extension: Activity 1.1
https://www.youtube.com/watch?v=VLflTjd3lWA
Tip – Always use 8 bits for binary!
So far we have only looked at numbers using eight
columns. This is an 8-bit number, or a byte.
9/24/2023
Mr. Noureddine Tadjerout 44
9/24/2023
Mr. Noureddine Tadjerout 45
This system is more accurate. Internal memories (such as RAM) should be measured using the IEC
system. A 64 GiB RAM could, therefore, store 64 × 230 bytes of data (68 719 476 736
bytes).
9/24/2023
1.1 Data Representation Mr. Noureddine Tadjerout 46
9/24/2023
Data Representation Mr. Noureddine Tadjerout 47
9/24/2023
Data Representation Mr. Noureddine Tadjerout 48
9/24/2023
Data Representation Mr. Noureddine Tadjerout 49
9/24/2023
Data Representation Mr. Noureddine Tadjerout 50
Question 2:
9/24/2023
Mr. Noureddine Tadjerout 51
1.1 Data Representation
Number systems: Binary addition and subtraction
Answer:
9/24/2023
Mr. Noureddine Tadjerout 52
1.1 Data Representation
Number systems: Logical binary shifts
Computers can carry out a logical shift on a sequence of binary numbers. The logical shift
means moving the binary number to the left or to the right. Each shift left is equivalent to
multiplying the binary number by 2 and each shift right is equivalent to dividing the binary
number by 2.
9/24/2023
Mr. Noureddine Tadjerout 53
1.1 Data Representation
Number systems: Logical binary shift: Left shift
9/24/2023
Mr. Noureddine Tadjerout 54
1.1 Data Representation
Number systems: Logical binary shift: Right shift
9/24/2023
Mr. Noureddine Tadjerout 55
1.1 Data Representation
Number systems: Logical binary shift: Left shift
9/24/2023
Mr. Noureddine Tadjerout 56
1.1 Data Representation
Number systems: Logical binary shift: Left shift
9/24/2023
Mr. Noureddine Tadjerout 57
1.1 Data Representation
Number systems: Logical binary shift: Left shift
9/24/2023
COMPUTER SCIENCE
CHAPTER 1:
1.1 DATA REPRESENTATION
1.1.2 Hexadecimal
White is #FFFFFF.
Figure 1.1.2.1
Memory dumps
A program developer can look at each of the hexadecimal codes (as
shown in Figure 1.1.2.1 ) and determine where the error lies. The value
on the far left shows the memory location so that it is possible to find
out exactly where in memory the fault occurs.
This is clearly much more manageable using hexadecimal rather than
using binary. It’s a very powerful fault-tracing tool, but requires
considerable knowledge of computer architecture in order to interpret
the results.
Memory dumps
Click this video that’s explains What is a memory dump?
https://www.youtube.com/watch?v=bTOEIvZnAVQ
Memory dumps
Click this video How to Remove System Error Memory Dump Files on
Windows 10?
https://www.youtube.com/watch?v=JuWpa0ebyZc
Using hexadecimal: Errors
Hex is often used in error messages on your computer.
The hex number refers to the memory location of the
error. This helps programmers to find and then fix
problems.
1.2 - Hexadecimal:
https://www.youtube.com/watch?v=pg-HEGBpCQk
1.1. Data Representation
A)-Converting from Hexadecimal to Decimal or (Denary)
Binary 1 1 1 1 1 0 1 0 1 0 0
7 D 4
Now look at Hexadecimal is a base 16 number table system above: you need to start from
the left to the right by dividing
https://www.youtube.com/watch?v=tSLKOKGQq0Y
1.1. Data Representation
D)-Converting from Binary to Hexadecimal
denary = = in hex
5 12
(groups of 16) units
(replaced by C)
1.1. Data Representation
D)-Converting from Binary to Hexadecimal
Activity D
1.1. Data Representation
E)-Converting from Hexadecimal to Binary
https://www.youtube.com/watch?v=D_YC6DSPpQE
1.1. Data Representation
E)-Converting from Hexadecimal to Binary
Activity E
1.2 - Hexadecimal:
A)-Hexadecimal Addition
Binary 0 0 0 1 0 0 0 1 0 1 1
Binary 0 0 0 1 0 1 0 1 0 1 0
Binary 0 0 1 0 0 1 1 0 1 0 1
1 3 5
1.2 - Hexadecimal:
A)-Hexadecimal Addition
Example 2:
1.2 - Hexadecimal:
A)-Hexadecimal Addition
Activity 1: Hexadecimal Calculation addition:
Hex value:
A+E=?
D+A=?
E7 + AB = ?
9F + CB = ?
A5 + EF = ?
99 + EE = ?
8B + AA =?
B2 + C7 = ?
A9 + E7 = ?
AC + EF = ?
2C + D4 = ?
1.2 - Hexadecimal:
B)-Hexadecimal Subtraction
Example 1: Hex value: 8B - 7A = 0 1 1
Hex value: 8B = 1000 1011 and Decimal value: 139
Denary 1024 512 256 128 64 32 16 8 4 2 1
Binary 0 0 0 1 0 0 0 1 0 1 1
Binary 0 0 0 0 1 1 1 1 0 1 0
Binary 0 0 0 0 0 0 1 0 0 0 1
0 1 1
1.2 - Hexadecimal:
B)-Hexadecimal Substraction
Activity 2: Hexadecimal Calculation Subtraction :
Hex value:
F-B=?
D-A=?
E6 – 3B = ?
C2 – A9= ?
5E – 1C = ?
D1 – 3F = ?
1A – 05 =?
AA – 11 = ?
BF – BB = ?
C9 – 2F = ?
24 – 12 = ?
1.2 - Hexadecimal:
B)-Hexadecimal Substraction
To double check your answer click in the link below:
https://www.calculator.net/hex-calculator.html
1.2 - Hexadecimal:
C)-Hexadecimal Multiplication
Example 2: Hex value: AA * A = 6A4
Hex value: AA = 1010 1010 and Decimal value: 170
Denary 1024 512 256 128 64 32 16 8 4 2 1
Binary 0 0 0 1 0 1 0 1 0 1 0
Binary 0 0 0 0 0 0 0 1 0 1 0
Binary 1 1 0 1 0 1 0 0 1 0 0
6 A 4
1.2 - Hexadecimal:
B)-Hexadecimal Multiplication
To double check your answer click in the link below:
https://www.calculator.net/hex-calculator.html
1.2 - Hexadecimal:
C)-Hexadecimal Multiplication
Activity 3: Hexadecimal Calculation Multiplication :
Hex value:
2×A=?
F×F=?
11 × C = ?
7D × 0A = ?
D8 × 6 = ?
32 × 12 = ?
B0 × 0C =?
EE × 9 = ?
DA × C = ?
FA × B = ?
99 × 9 = ?
Homework
Complete the Sample question
USES OF HEXADECIMAL
The hex number is far easier for humans to remember, copy
and work with. This section reviews four uses of the
hexadecimal system:
» error codes:
» MAC addresses
» IPv6 addresses
Note IPv6 uses a colon (:) rather than a decimal point (.) as used in IPv4.
HyperText Mark-up Language (HTML)
HTML example:
HyperText Mark-up Language (HTML)
1- Activity 1
Questions:
Describe two applications of the hexadecimal system?
Describe what is meant by HTML structure and
presentation for a web page?
Mr. Noureddine Tadjerout 122
9/24/2023
Mr. Noureddine Tadjerout 123
9/24/2023
Mr. Noureddine Tadjerout 124
9/24/2023
Mr. Noureddine Tadjerout 125
9/24/2023
Mr. Noureddine Tadjerout 126
9/24/2023
Mr. Noureddine Tadjerout 127
9/24/2023
Mr. Noureddine Tadjerout 128
9/24/2023
Mr. Noureddine Tadjerout 129
9/24/2023
1.1 Data Representation Mr. Noureddine Tadjerout 130
It is not possible to add minus or plus symbol in front of a binary number because a binary
number can have only two symbol either 0 or 1 for each position or bit. That’s why we use this
extra bit called sign bit or sign flag. The value of sign bit is 1 for negative binary numbers
and 0 for positive numbers.
When an integer binary number is positive, the sign is represented by 0 and the magnitude by
a positive binary number. When the number is negative, the sign is represented by 1 but the
rest of the number may be represented in one of three possible ways: Sign-Magnitude
method, 1’s Complement method, and 2’s complement method. These are explained as
following below.
9/24/2023
1.1 Data Representation Mr. Noureddine Tadjerout 131
In this method, number is divided into two parts: Sign bit and Magnitude. If the number is
positive then sign bit will be 0 and if number is negative then sign bit will be 1. Magnitude is
represented with the binary form of the number to be represented.
Example 1: Let we are using 5 bits register. The representation of -5 to +5 will be as follows:
9/24/2023
1.1 Data Representation Mr. Noureddine Tadjerout 132
Example 1: Let we are using 4 binary bits register. The representation of -7 to +7 will be as
follows:
9/24/2023
1.1 Data Representation 133
For example 1: 01000110 (denary value 70) becomes 10111001 (denary value −70).
For example 2: Let we are using 5 bits register. The representation of -5 and +5 will be as
follows
1.1 Data Representation 134
+104 128 64 32 16 8 4 2 1
Binary 0 1 1 0 1 0 0 0
1 comp 1 0 0 1 0 1 1 1
Opposite
Add 1 0 0 0 0 0 0 0 1
- 104 1 0 0 1 0 0 0 0
TWO'S COMPLEMENT 137
9/24/2023
TWO'S COMPLEMENT 138
WRITING NEGATIVE BINARY NUMBERS IN TWO’S COMPLEMENT FORMAT AND CONVERTING TO DENARY
9/24/2023
TWO'S COMPLEMENT 139
WRITING NEGATIVE BINARY NUMBERS IN TWO’S COMPLEMENT FORMAT AND CONVERTING TO DENARY
9/24/2023
TWO'S COMPLEMENT 140
WRITING NEGATIVE BINARY NUMBERS IN TWO’S COMPLEMENT FORMAT AND CONVERTING TO DENARY
9/24/2023
TWO'S COMPLEMENT 141
WRITING NEGATIVE BINARY NUMBERS IN TWO’S COMPLEMENT FORMAT AND CONVERTING TO DENARY
9/24/2023
TWO'S COMPLEMENT 142
WRITING NEGATIVE BINARY NUMBERS IN TWO’S COMPLEMENT FORMAT AND CONVERTING TO DENARY
9/24/2023
1.1 Data Representation Mr. Noureddine Tadjerout 143
9/24/2023
1.1 DATA REPRESENTATION Mr. Noureddine Tadjerout 144
9/24/2023
Mr. Noureddine Tadjerout 145
(- 49) = ?
(- 109) = ?
(- 107) = ?
(- 77) = ?
(- 17) = ?
( - 122) = ?
( - 38 ) = ?
( - 200 ) = ?
( -26 ) = ?
(-2) = ?
( -11) = ?
( - 52) = ?
9/24/2023
COMPUTER SCIENCE
CHAPTER 1:
https://www.youtube.com/watch?v=H4l42nbYmrU
ASCII CODE Table :
ASCII CODE Table :
INTERNAL CODING OF NUMBERS 151
WATCH THE VIDEO FOR THE REPRESENTING TEXT IN BINARY (ASCII &
UNICODE)
HTTPS://WWW.YOUTUBE.COM/WATCH?V=TDMEXCDX-UC
ASCII
THE ASCII CHARACTER SET IS A 7-BIT SET OF CODES THAT ALLOWS 128 DIFFERENT
CHARACTERS. THAT IS ENOUGH FOR EVERY UPPER-CASE LETTER, LOWER-CASE
LETTER, DIGIT AND PUNCTUATION MARK ON MOST KEYBOARDS. ASCII IS ONLY
USED FOR THE ENGLISH LANGUAGE.
THIS TABLE SHOWS SOME EXAMPLES OF LETTERS REPRESENTED USING THE ASCII
CHARACTER SET:
EXTENDED ASCII
EXTENDED ASCII CODE IS AN 8-BIT CHARACTER SET THAT REPRESENTS 256
DIFFERENT CHARACTERS, MAKING IT POSSIBLE TO USE CHARACTERS SUCH AS É OR
©. EXTENDED ASCII IS USEFUL FOR EUROPEAN LANGUAGES
CONSIDER THE UPPERCASE AND LOWERCASE CODES IN BINARY OF CHARACTERS. FOR EXAMPLE
ASCII code has a number of disadvantages. The main disadvantage is that it does not represent
characters in non-Western languages, for example Chinese characters. For this reason, different
methods of coding have been developed over the years. One coding system is called Unicode
Unicode can represent all languages of the world, thus supporting many operating systems,
search engines and internet browsers used globally.
UNICODE
UNICODE USES BETWEEN 8 AND 32 BITS PER CHARACTER, SO IT CAN REPRESENT
CHARACTERS FROM LANGUAGES FROM ALL AROUND THE WORLD. IT IS COMMONLY
USED ACROSS THE INTERNET. AS IT IS LARGER THAN ASCII, IT MIGHT TAKE UP MORE
STORAGE SPACE WHEN SAVING DOCUMENTS.
GLOBAL COMPANIES, LIKE FACEBOOK AND GOOGLE, WOULD NOT USE THE ASCII
CHARACTER SET BECAUSE THEIR USERS COMMUNICATE IN MANY DIFFERENT
LANGUAGES.
Text files can also undergo file compression. These use complex algorithms that work on redundancy or
repeated sections of words (e.g. OU in yOUr, cOUntry or mOUntain). The following section shows, in very
simple terms, how this could work: The phrase ‘THIS SECTION SHOWS YOU HOW THIS WOULD WORK’
consists of 35 memory units (ignoring spaces). Repeated words, such as ‘THIS’ could be put into a data
dictionary and be replaced by ‘1’. Repeated word sections, such as ‘HOW’ and ‘OU’ could be replaced by
the numbers ‘2’ and ‘3’. Our phrase then becomes ‘1 SECTION S2S Y3 2 1 W3LD WORK’. Again, ignoring
spaces, this compressed form now uses only 23 memory units. This is about a 33% saving in file size.
Obviously if whole pages are to be stored, then repeated words and word sections become even more
numerous. Compression algorithms take many things into account when creating these compressed files – but
this is outside the scope of this textbook. This is clearly an example of lossless compression since the original
phrase can be reformed if necessary using the data dictionary and compressed file.
Noureddine Tadjerout
1.2 Text, sound and images:
If we count the number of characters in the text typed in, we get the number 48. This exactly matches the file size
shown in the screenshot.
Earlier on in the chapter we looked at file sizes for photos and for sound. This is obviously a little more complex, but
we saw that one pixel, for example, occupies 3 bytes of memory. Suppose we imported the photograph shown
below:
Sound :
Sound requires a medium in which to travel through (it cannot travel in a vacuum). This is because it
is transmitted by causing oscillations of particles within the medium. The human ear picks up these
oscillations (changes in air pressure) and interprets them as sound. Each sound wave has a
frequency and wavelength; the amplitude specifies the loudness of the sound.
9/24/2023
SOUND Mr. Noureddine Tadjerout 160
9/24/2023
1.2 TEXT, SOUND AND IMAGES: Mr. Noureddine Tadjerout 161
SOUND :
• SOUND ARISES FROM PRESSURE CHANGES
9/24/2023
© Cambridge University Press 2019
1.2 Text, sound and images: 162
Sound :
Sound is an analogue value; this needs to be digitized in order to store sound in a computer. This is
done using an analogue to digital converter (ADC). If the sound is to be used as a music file, it is
often filtered first to remove higher frequencies and lower frequencies which are outside the
range of human hearing. To convert the analogue data to digital, the sound waves are sampled at
a given time rate. The amplitude of the sound cannot be measured precisely, so approximate
values are stored.
9/24/2023
1.2 Text, sound and images: 163
Sound :
What is bandwidth of frequency?
Bandwidth is a range of frequencies within a continuous set of frequencies. It is measured in
Hertz (Hz). The purpose of a communication system is to transfer information from the
transmitter which is located in one place to a receiver which is usually far away from the
transmitter.
9/24/2023
1.2 Text, sound and images: Mr. Noureddine Tadjerout 164
Sound :
Figure above shows a sound wave. The x-axis shows the time intervals when the sound was sampled (0 to 20),
and the y-axis shows the amplitude of the sampled sound (the amplitudes above 10 and below 0 are filtered
out in this example).
At time interval 1, the approximate amplitude is 9; at time interval 2, the approximate amplitude is 4, and so
on for all 20 time intervals. Because the amplitude range in Figure above is 0 to 10, then 4 binary bits can be
used to represent each amplitude value (for example, 9 would be represented by the binary value 1001).
Increasing the number of possible values used to represent sound amplitude also increases the accuracy of the
sampled sound (for example, using a range of 0 to 127 gives a much more accurate representation of the
sound sample than using a range of, for example, 0 to 10). This is known as the sampling resolution (also
known as the bit depth).
9/24/2023
1.2 Text, sound and images: Mr. Noureddine Tadjerout 165
Sound :
9/24/2023
1.2 Text, sound and images: Mr. Noureddine Tadjerout 166
Sound :
The benefits and drawbacks of using a larger sampling resolution when recording sound
9/24/2023
1.2 Text, sound and images: Mr. Noureddine Tadjerout 167
Sound :
Sampling rate is the number of sound samples taken per second. The higher the sampling rate
and/or sampling resolution, the greater the file size. For example, a 16-bit sampling resolution is
used when recording CDs to give better sound quality.
https://www.bbc.co.uk/bitesize/guides/z7vc7ty/revision/2
9/24/2023
1.2 Text, sound and images: Mr. Noureddine Tadjerout 168
Images:
BIT-MAP IMAGES ARE MADE UP OF PIXELS (PICTURE ELEMENTS); THE IMAGE IS STORED IN A
TWO DIMENSIONAL MATRIX OF PIXELS.
9/24/2023
BITMAPS Mr. Noureddine Tadjerout 169
9/24/2023
BITMAPS Mr. Noureddine Tadjerout 170
9/24/2023
Mr. Noureddine Tadjerout 171
9/24/2023
BITMAPS Mr. Noureddine Tadjerout 172
EXAMPLE 1: A FULL SCREEN WITH A RESOLUTION OF 1920 × 1080 PIXELS AND A BIT DEPTH OF 24
REQUIRES 1920 × 1080 × 24 BITS = 49 766 400 BITS FOR THE FULL SCREEN IMAGE
DIVIDING BY 8 GIVES US 6 220 800 BYTES (EQUIVALENT TO 6.222 MB USING THE SI UNITS OR 5.933 MIB
USING IEE UNITS). AN IMAGE WHICH DOES NOT OCCUPY THE FULL SCREEN WILL OBVIOUSLY RESULT IN A
SMALLER FILE SIZE.
NOTE: WHEN SAVING A BIT-MAP IMAGE, IT IS IMPORTANT TO INCLUDE A FILE HEADER; THIS WILL
CONTAIN ITEMS SUCH AS FILE TYPE (.BMP OR .JPEG), FILE SIZE, IMAGE RESOLUTION, BIT DEPTH (USUALLY
1, 8, 16, 24 OR 32), ANY TYPE OF DATA COMPRESSION EMPLOYED AND SO ON.
9/24/2023
BITMAPS Mr. Noureddine Tadjerout 173
EXAMPLE 3:
9/24/2023
BITMAPS Mr. Noureddine Tadjerout 174
9/24/2023
1.2 Text, sound and images: Mr. Noureddine Tadjerout 175
Images:
VECTOR GRAPHICS ARE COMPUTER IMAGES CREATED USING A SEQUENCE OF COMMANDS OR
MATHEMATICAL STATEMENTS THAT PLACE LINES AND SHAPES IN A TWO-DIMENSIONAL OR THREE-
DIMENSIONAL SPACE. IN VECTOR GRAPHICS, A GRAPHIC ARTIST'S WORK, OR FILE, IS CREATED AND SAVED
AS A SEQUENCE OF VECTOR STATEMENTS.
A VECTOR GRAPHIC FILE DESCRIBES A SERIES OF POINTS TO BE CONNECTED.
THESE FILES ARE SOMETIMES CALLED GEOMETRIC FILES. IMAGES CREATED WITH TOOLS SUCH AS ADOBE
ILLUSTRATOR AND COREL'S COREL DRAW ARE USUALLY VECTOR IMAGE FILES.
SIMPLIFIED, VECTOR GRAPHICS ARE LIKE CONNECT-THE-DOTS DRAWINGS.
9/24/2023
1.2 Text, sound and images: Mr. Noureddine Tadjerout 176
Images:
9/24/2023
1.1 DATA REPRESENTATION
FILE FORMATS
IEC (INTERNATIONAL ELECTROTECHNICAL COMMISSION)
9/24/2023
Mr. Noureddine Tadjerout 181
The Calculations In Section 1.3.2 Show That Sound And Image Files Can Be Very Large. It Is Therefore
Necessary To Reduce (Or Compress) The Size Of A File For The Following Reasons:
» To Save Storage Space On Devices Such As The Hard Disk Drive/Solid State Drive.
» To Reduce The Time Taken To Stream A Music Or Video File.
» To Reduce The Time Taken To Upload, Download Or Transfer A File Across A Network.
» The Download/Upload Process Uses Up Network Bandwidth – This Is The maximum Rate Of Transfer Of
Data Across A Network, Measured In Bits Per Second. This Occurs Whenever A File Is Downloaded, For
Example, From A Server. Compressed Files Contain Fewer Bits Of Data Than Uncompressed Files And
Therefore Use Less Bandwidth, Which Results In A Faster Data Transfer Rate.
» Reduced File Size Also Reduces Costs. For Example, When Using Cloud Storage, the Cost Is Based On The
Size Of The Files Stored. Also An Internet Service Provider (ISP) May Charge A User Based On The Amount
Of Data Downloaded.
9/24/2023
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
MPEG-4 (MP4) files are slightly different to MP3 files. This format allows
the storage of multimedia files rather than just sound. Music, videos, photos
and animation can all be stored in the MP4 format. Videos, for example,
could be streamed over the internet using the MP4 format without losing
any real discernable quality.
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
The resolution of the photographs is reduced from A to E. Photographs A and B are very
sharp whilst photograph D is very fuzzy and E is almost unrecognizable. This is the result
of changing the number of PIXELS per centimeter used to store the image (that is,
reducing the PICTURE RESOLUTION).
When a photographic file undergoes file compression, the size of the file is reduced.
When file size is reduced then quality of the image will reduce . One of the file formats
used to reduce photographic file sizes is known as JPEG.
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 Data storage and compression
Noureddine Tadjerout
1.3 DATA STORAGE AND COMPRESSION 209
Example: the sequence of data is stored as a single value and count. for example, for a minute
of a scene filmed at a beach there would be similar colours on screen for the duration of the
shot, such as the blues of the sky and the sea, and the yellows of the sand.
Noureddine Tadjerout
1.3 Data storage and compression
Run-length encoding (RLE)
Noureddine Tadjerout
1.3 Data storage and compression
Run-length encoding (RLE)
Noureddine Tadjerout
1.3 Data storage and compression
Run-length encoding (RLE)
Noureddine Tadjerout
Question 1
Answer 1
Question 2
Question 2
Exam: Answer 2
Answer 2
Question 3
Answer 3
Question 4
Question 4
Question 4
Answer 4
Question 5
Question 5
Question 5
Answer 5
Answer 5
Answer 5
Question 6
Question 6
Answer 6
Question 7
Question 7
Question 7
Answer 7
Answer 7
Question 8
Question 8
Question 8
Question 8
Answer 8
Answer 8
Question 9
Question 9
Question 9
Answer 9
Answer 9
Question 10
Question 10
Question 10
Answer 10
Answer 10
Question 11
Question 11
Question 11
Answer 11
Answer 11
Question and Answer 12:
Question and Answer 13:
Question and Answer 14:
Question and Answer 15: