IGCSE Computer Studies Notes On Data Storage (Zafar Ali Khan)
IGCSE Computer Studies Notes On Data Storage (Zafar Ali Khan)
1 Data representation
Page 1 of 14
ANIMATION
Somewhere between the motionless world of still images and the real-time world of video images lies the flipbook world of computer animation. All of the animated sequences seen in educational programs, motion CAD
renderings, and computer games are computer-animated (and in many cases, computer-generated) animation
sequences.
Traditional cartoon animation is little more than a series of artwork cells, each containing a slight positional
variation of the animated subjects. When a large number of these cells are displayed in sequence and at a fast
rate, the animated figures appear to the human eye as if they are moving.
A computer-animated sequence works in exactly the same manner. A series of images are created of a subject;
each image contains a slightly different perspective on the animated subject.
When these images are displayed (played back) in the proper sequence and at the proper speed (frame rate),
the subject appears to move.
Page 2 of 14
Page 4 of 14
PARITY: For example, if we send some specific sequence of ones and zeros, and then count the number of
ones that we sent and send an extra 1 if that count is odd or an extra 0 if that count is even, then we have
introduced a small amount of redundancy into the transmission. The extra bit is called the parity bit, it is
even parity because it makes the total number of 1's in the transmission become an even number, and is a
simple example of what is called an "extended" code. The receiver can then count up the number of 1 bit they
received, perform the same calculation, and if the result does not match the extra bit we sent them, they will
Page 5 of 14
The receiver simply counts the number of 1s in a frame. If the count of 1s is even and even parity is used, the
frame is considered to be not-corrupted and is accepted. If the count of 1s is odd and odd parity is used, the
frame is not corrupted and accepted.
CHECK DIGIT:
Number added to a code (such as a bar code or account number) to derive a further number as a means of
verifying the accuracy or validity of the code as it is printed or transmitted. A code consisting of three digits,
for example, such as 135 may include 9 (sum of 1, 3, and 5) as the lastdigit and be communicated as 1359.
Check digits can identify 3 types of error:
(1) If 2 digits have been inverted e.g. 23459 instead of 23549
(2) An incorrect digit entered e.g. 23559 instead of 23549
(3) A digit missed out altogether e.g. 2359 instead of 23549
Now you will learn how check digits are calculated. The ISBN-10 (used on books) has been chosen as the
example; this uses a module 11 system which includes the letter X to represent the number 10.
Page 6 of 14
9
-1
8
3
7
1
6
-5
5
2
4
4
3
4
2
7
1
-X
digit position
number
(ii)
Each digit is then multiplied by its digit position and the totals added together
(0x10) + (1x9) + (3x8) + (1x7) + (5x6) + (2x5) + (4x4) + (4x3) + (7x2) + (Xx1)
= 0 + 9 + 24 + 7 + 30 + 10 + 16 + 12 + 14 + 10 (recall that X = 10)
= 132
(iii)
The total is then divided by 11; if there is no remainder then the check digit is correct:
132 11 = 12 remainder 0
Hence the check digit is correct
Page 7 of 14
Page 8 of 14
Page 9 of 14
Page 10 of 14
Page 11 of 14
Page 12 of 14
Page 13 of 14
LOSSLESS COMPRESSION
Lossless data compression is a class of data compression algorithms that allows the original data to be
perfectly reconstructed from the compressed data. By contrast, lossy data compression, permits reconstruction
only of an approximation of the original data, though this usually allows for improved compression rates (and
therefore smaller sized files).
Lossless data compression is used in many applications. For example, it is used in the ZIP file format and in
the GNU tool gzip. It is also often used as a component within lossy data compression technologies (e.g.
lossless mid/side joint stereo preprocessing by the LAME MP3 encoder and other lossy audio encoders).
Lossless compression is used in cases where it is important that the original and the decompressed data be
identical, or where deviations from the original data could be deleterious. Typical examples are executable
programs, text documents, and source code. Some image file formats, like PNG or GIF, use only lossless
compression, while others like TIFF and MNG may use either lossless or lossy methods. Lossless
audio formats are most often used for archiving or production purposes, while smaller lossy audio files are
typically used on portable players and in other cases where storage space is limited or exact replication of the
audio is unnecessary.
Page 14 of 14