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