B1P2 Flashcards

1
Q

What is compression

A

reduce file sizes so they become more manageable to store, manipulate and transmit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is lossless compression

A
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is lossy compression

A

Only approximate version of original source
Irreversible loss of information
MP3 and variants including AAC, HE-ACC, JPEG, JPEG2000, and MPEG coding family

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a fixed-length code

A

When a fixed number of symbols are encoded in to a fixed number of outputs

Source coding represents each message by a code word

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a code tree

A

A graphical representation of a procedure for the generation and decoding of instantaneous codes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is meant by entropy

A

a measure of bits per symbol that can theoretically be achieved by source coding particular source

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you work out the efficiency

A

The efficiency E of a particular code can be quantifed by

E = H/l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How is a Huffman code constructed

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How does a Huffman code compress files

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Run-length encoding (RLE)

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Lempel-Ziv-Welch coding

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is meant by Pseudocode

A

– an informal description of an algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly