A) David A. Huffman B) Robert Johnson C) Alice Jones D) John Smith
A) ASCII encoding B) Variable-length encoding C) Fixed-length encoding D) Binary encoding
A) Frequent symbols B) Symbols at odd indices C) Symbols starting with A D) Rare symbols
A) A code with equal-length codewords B) A code where no codeword is a prefix of another C) A code that uses only 0s and 1s D) A code that starts with the same symbol
A) Optimal binary tree B) Complete tree C) Balanced tree D) Perfect tree
A) Compression ratio B) Memory consumption C) Encoding speed D) Number of symbols
A) O(n2) B) O(n) C) O(n log n) D) O(log n)
A) Assigning binary codes to symbols B) Calculating symbol frequencies C) Compressing the data D) Building a linked list
A) Symbol with the longest name B) Symbol with a prime number C) Most frequent symbol D) Least frequent symbol
A) Linked list B) Queue C) Binary heap D) Stack
A) Prefix codes B) Infix codes C) Suffix codes D) Postfix codes
A) 1955 B) 1952 C) 1960 D) 1949
A) Array B) Queue C) Priority queue D) Stack
A) Image encoding for web pages. B) Audio file compression. C) Text compression in word processors. D) Fax machines.
A) Harvard University B) Stanford University C) MIT D) Princeton University
A) They are removed from the tree B) They become root nodes C) They are combined into a new internal node D) They remain as leaf nodes
A) Both queues simultaneously B) Neither queue C) The first queue D) The second queue
A) H(A) = ∑(w_i > 0) h(a_i) / w_i B) H(A) = ∑(w_i > 0) w_i / log2(w_i) C) H(A) = ∑(w_i > 0) log2(w_i) D) H(A) = -∑(w_i > 0) w_i * log2(w_i)
A) Remove both items and start over B) Randomly select an item from either queue C) Choose the item in the first queue D) Choose the item in the second queue
A) h(a_i) = log2(1 / w_i) B) h(a_i) = 2w_i C) h(a_i) = w_i * log2(w_i) D) h(a_i) = -log2(w_i)
A) Only compression-related problems. B) Problems that do not involve weights. C) Problems related to sorting data. D) Minimizing the maximum weighted path length, among others.
A) Arithmetic coding B) Shannon-Fano coding C) Run-length encoding D) Lempel-Ziv-Welch (LZW)
A) An internal node B) A leaf node C) Following the right child D) Following the left child
A) Richard M. Karp. B) Alan Turing. C) Adriano Garsia. D) T. C. Hu.
A) A frequency table must be stored with the compressed text. B) An encryption key must accompany the compressed data. C) The original text must be stored alongside the compressed version. D) No additional information needs to be stored.
A) By keeping initial weights in the first queue and combined weights in the second queue B) By randomly selecting nodes from either queue C) By sorting both queues by weight after each insertion D) By only enqueuing nodes with unique weights
A) The package-merge algorithm. B) Binary Huffman algorithm. C) Adaptive Huffman algorithm. D) Template Huffman algorithm.
A) It is equal to the symbol's information content B) Zero, since lim_(w→0+) w * log2(w) = 0 C) It contributes negatively to the entropy D) It equals the inverse of its weight
A) One B) Four C) Three D) Two
A) The binary representation. B) The alphabetic order. C) The frequency of occurrence. D) The transmission cost. |