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