Chapter 1 - Information Representation

1.1 Data Representation

Number Systems →

Hex Codes →

A = 10
B = 11
C = 12
D = 13
E = 14
F = 15

Binary Prefixes →

Denary prefixes →

Binary Addition & Subtraction →

Addition →

Sometimes, an error called overflow can occur - the answer cannot be represented with the current number of bits, as the number of bits in the answer exceeds a predefined range

Subtraction →

Convert the second number (the subtracting one) into two’s complement, and add the two numbers. (see later in the chapter for two’s complement)

Internal Coding of Numbers →

Byte: 8 bits treated as a single units. values are 0 to 28-1
Unsigned integer: simply a binary number; always positive
Signed integer: can be positive or negative. The left-most bit is called the most significant bit (MSB) and this is used to determine if a number is positive or negative ( 1 = negative, 0 = positive)

Sign and Magnitude →

One’s Complement →

Two’s Complement →

Binary Coded Decimal →

Uses four bits/one nibble to represent each denary digit

Pros →

Cons →

Uses →

Coding of Text →

Text coding needs a character set - the composite number of different symbols computer hardware and software use and recognise. Uses codes, bit patterns, or natural numbers to represent a symbol, and each symbol has a unique number.

ASCII →

Unicode →

1.2 Multimedia

Coding of Images →

Vectors →

Bitmaps →

File header →

Resolutions →

Image resolution: measure in dots per inch. Detail in an image; total number of pixels in an image, a product of width and height
Screen resolution: monitor specification. number of pixels a screen can display, also a product of width and height

Coding of Sound →

Sound is analogue (continuous range, through measuring a physical property) and must be converted to digital (binary 0s and 1s) using an ADC (analogue to digital converter)

File size = sampling rate × resolution × time

1.3 Compression

Compression →

Compression is needed as data files are very large and would take a long time or a lot of bandwidth to send, and as emails may limit the size of attachments

Lossy →

Lossless →