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