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