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