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