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