B1P2 Flashcards
What is compression
reduce file sizes so they become more manageable to store, manipulate and transmit
What is lossless compression
Also called noiseless or entropy coding exact reconstruction of original source Well known examples: • Lempel Ziv Welch coding • Huffman coding Zip files GIF, PNG and TIFF, final stage of JPEG
What is lossy compression
Only approximate version of original source
Irreversible loss of information
MP3 and variants including AAC, HE-ACC, JPEG, JPEG2000, and MPEG coding family
What is a fixed-length code
When a fixed number of symbols are encoded in to a fixed number of outputs
Source coding represents each message by a code word
What is a code tree
A graphical representation of a procedure for the generation and decoding of instantaneous codes.
What is meant by entropy
a measure of bits per symbol that can theoretically be achieved by source coding particular source
How do you work out the efficiency
The efficiency E of a particular code can be quantifed by
E = H/l
How is a Huffman code constructed
Symbols are ordered according to their probability with most probable symbol are the top and least at the bottom
Combine 2 lowest of each column
At each point where path splits, assign 0 to upper branch and 1 to lower
How does a Huffman code compress files
New file will be in general be smaller than the original file, possibly a lot smaller, which compresses file
Sends a code table to decompress
What is Run-length encoding (RLE)
A method of data compression based on sending numbers that indicate the lengths of runs of symbols of the same type.
It is not necessary to scan whole file before coding begins
Like Huffman coding, RLE has an overhead, but in the case of RLE the overhead is the single number associated with each run, whereas Huffman coding the overhead is the table for the whole file
What is Lempel-Ziv-Welch coding
LZW coding works by detected patterns in data, assigning short codes to them, then using those codes when the same pattern appears again
LZW coding creates a coding table in which codewords represent sequences. The coding table has 4096 entries (212)
What is meant by Pseudocode
– an informal description of an algorithm