Data Representation - AQA Computer Science Cheat Sheet: by Via
Data Representation - AQA Computer Science Cheat Sheet: by Via
Data Representation - AQA Computer Science Cheat Sheet: by Via
What is ASCII? Data compression is used to reduce file size, which means that
A character set that uses 7 bits, so can represent up to 128 they take up less storage space. Lossy compression is where some
characters; this means that only Latin letters can be used (i.e. data is removed - this means that an image would lose some detail.
characters/letters from other languages can't be represented). Lossless compression preserves all of the information.
However, it takes up less space that Unicode.
Run length encoding (RLE) uses data frequency pairs to reduce
What is Unicode?
the amount of data stored. It does so by stating the character and
Unicode is also a character set, but it can represent many, many then the length of the run. Example:
values, including non-Latin-based languages. 1001 1111 0101 can be shown as 1 1 2 0 5 1 1 0 1 1 1 0 1 1
Representing Images Huffman coding is more efficient than RLE. It is also lossless. It
Pixel A single point in a graphical issues. Short for 'picture finds the frequency of each data item to create a Huffman tree, which
element'. assigns the most frequent items the shortest code. When you move
down a branch to the left, a 0 is assigned. When you move to the
Bitmap A grid of pixels, with each pixel represented by a binary
right, a 1 is assigned.
number.
total bits needed = number of bits needed per character x number of
Colour Number of colours that can (not necessarily are) be
characters
depth represented in an image, and the corresponding number of
bits needed to represent each pixel (e.g. 2 bits for 4
Representing Sound
colours). The greater the colour depth, the bigger the file
Sample A measure of amplitude at a given point. Used to
size.
convert an analogue wave into a digital format.
Reso‐ How much detail there is in an image. The more pixels per
Sampling The number of samples taken in a second. Measured
lution inch, the higher the resolution. The higher the resolution,
rate in Hertz.
depth the bigger the file size.
Sampling The number of bits per sample.
Meta‐ Gives the software the information needed to display the
resolution
data image properly (size, resolution depth, colour depth).
Bit rate The number of bits used per second of the audio.
Bitmap file size = width x height x colour depth (in bits)
Usually measured in kilobits per second (kbps).