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