Term Test Flashcards
what is compression
Option A: To convert one file into another
Option B: To reduce the size of data to save space
Option C: To minimize the time taken for a file to be downloaded
Option D: To compress something by pressing very hard
To reduce the size of data to save space
A Huffman encoder takes a set of characters with fixed length and produces a set of characters of Option A: fixed length Option B: constant length Option C: variable length Option D: random length
fixed length
The difference between the entropy and average length of the Huffman code is called as Option A: Rate Option B: Redundancy Option C: Power Option D: Entropy
Redundancy
Which is a lossy compression method Option A: RLE Option B: Huffman coding Option C: JPEG Option D: LZW
JPEG
In the \_\_\_\_\_\_\_\_\_ approach, the dictionary is simply a portion of the previously encoded sequence. Option A:LZ78 Option B:LZW Option C:LZ77 Option D: Huffman coding
LZ77
No information is lost in\_\_\_\_\_ compression Option A: Lossless Option B: Lossy Option C: zero Option D: random
Lossless
The compression ratio is the ratio of.
Option A: the original file size to the size of the compressed file
Option B: the number of pixels in a frame of the original size to those in a frame of the compressed file
Option C: compressed file size to the original file size
Option D: pixels to the compression
the original file size to the size of the compressed file
The basic idea behind Huffman coding is to
Option A: compress data by using fewer bits to encode more frequently occurring characters
Option B: compress data by using fewer bits to encode fewer frequently occurring characters
Option C: expand data by using fewer bits to encode more frequently occurring characters
Option D: compress data by using more bits to encode more frequently occurring characters
compress data by using fewer bits to encode more frequently occurring characters
The window consists of two parts, a____________ that contains a portion of the recently encoded sequence.
Option A: Search buffer.
Option B: Look-ahead buffer. (contains the next portion of the sequence to be encoded.)
Option C: Offset
Option D: Matchpoint
Search buffer.
In Huffman tree, NYT stands for Option A: No yet transmitted Option B: Not yet transmission Option C: Not yet transmitted Option D: Not yet Transferred
Not yet Transferred
Find average information per message (H) for a Shannon -Fano code generating 5 different messages with probabilities 0.45, 0.3, 0.15, 0.05, 0.05 Option A: 2.057 bits/messages Option B: 2.15 bits/messages Option C: 1.881 bits/message Option D: 2.000 bits/message
1.881 bits/message
Using Run length Encoding compress the sequence B A A B A B B B A A B B B B A A
Option A: B A 2 B 3 B 1 A 4 B 5 A
Option B: 0 0 0 1 0 1 1 1 0 0 1 0 0 1 0 1
Option C: 1B 2A 1B 1A 3B 2A 4B 2A
Option D: B 1 A 2 B 1 A 1 B 3 A 2 B 4 A 2
1B 2A 1B 1A 3B 2A 4B 2A
Encode the string using LZ 77 algorithm a b a b c b a b a b a a
Option A: 0 10 110 1110 11110 11111
Option B: (0,0,a), (0,0,b), (2,2,c), (4,3,a), (2,2,a)
Option C: 5 2 3 3 2 1 6 8 10
Option D: <0, c(a)> <0, c(b)> <1, c(b)> <0, c(c)> <2, c(a)> <5, c(b)> <1, c(a)>
(0,0,a), (0,0,b), (2,2,c), (4,3,a), (2,2,a)
A zero memory source emits six messages (N, I, R, K , A, T) with probabilities (0.19, 0.15, 0.02, 0.16, 0.4,0.08) respectively. Given that A is coded as '0' Determine Shannon Fano code and tabulate it Option A: 0 10 110 1110 11110 11111 Option B: 0 100 101 110 1110 1111 Option C: 10 00 010 11 011 Option D: 1B 2A 1B 1A 3B 2A 4B 2A
0 100 101 110 1110 1111
In arithmetic coding if P(A) = 0.4, P(B) = 0.3, P(C) = 0.2 AND P(*) = 0.1, Decimal Tag = 0.5976 . find the original message. Option A: B B C C Option B: A B C * Option C: A * B C Option D: B A * C
B B C C