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