Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 9 MCQs Huffman Coding and Data Compression

ECAP538 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Huffman coding Easy

    What is the main purpose of Huffman coding?

  2. Question 2 of 60 Huffman coding Easy

    Which type of algorithm is used to construct a Huffman tree?

  3. Question 3 of 60 Huffman coding Easy

    Which symbols are combined first while constructing a Huffman tree?

  4. Question 4 of 60 Huffman coding Easy

    In a Huffman tree, where are the original symbols normally stored?

  5. Question 5 of 60 Huffman coding Easy

    What determines the length of a symbol's Huffman code?

  6. Question 6 of 60 Huffman coding Easy

    Which symbols generally receive shorter Huffman codes?

  7. Question 7 of 60 Huffman coding Easy

    What does it mean that Huffman codes are prefix-free?

  8. Question 8 of 60 Huffman coding Easy

    Which data structure is commonly used to select the two least frequent nodes in Huffman coding?

  9. Question 9 of 60 Huffman coding Easy

    When two Huffman nodes with frequencies and are merged, what is the new node's frequency?

  10. Question 10 of 60 Huffman coding Easy

    What values are typically assigned to the two branches of a binary Huffman tree?

  11. Question 11 of 60 Huffman coding Easy

    How is a Huffman-encoded symbol normally decoded?

  12. Question 12 of 60 Huffman coding Easy

    What kind of code length does Huffman coding use for different symbols?

  13. Question 13 of 60 Data compression problems Easy

    What is the general goal of data compression?

  14. Question 14 of 60 Data compression problems Easy

    Which type of compression allows the original data to be reconstructed exactly?

  15. Question 15 of 60 Data compression problems Easy

    Which type of compression may permanently discard some information?

  16. Question 16 of 60 Data compression problems Easy

    Which type of compression is generally required for executable program files?

  17. Question 17 of 60 Data compression problems Easy

    An original file has size bytes and its compressed form has size bytes. How many bytes are saved?

  18. Question 18 of 60 Data compression problems Easy

    What is redundancy in the context of data compression?

  19. Question 19 of 60 Data compression problems Easy

    Which simple compression method replaces consecutive repeated values with a value and its count?

  20. Question 20 of 60 Data compression problems Easy

    What is decompression?

  21. Question 21 of 60 Huffman coding Medium

    A source has symbol frequencies , , , , , and . What is the average code length of an optimal binary Huffman code?

  22. Question 22 of 60 Huffman coding Medium

    For symbol frequencies , , , and , which sequence of combined weights is produced by Huffman's algorithm?

  23. Question 23 of 60 Huffman coding Medium

    Given the prefix codes , , , and , what does the bit string decode to?

  24. Question 24 of 60 Huffman coding Medium

    Which set of binary codewords satisfies the prefix-free property required for Huffman decoding?

  25. Question 25 of 60 Huffman coding Medium

    A canonical Huffman code assigns lengths to symbols in that order. If , what is the canonical code for ?

  26. Question 26 of 60 Huffman coding Medium

    A binary source has probabilities , , , and . A Huffman code gives corresponding lengths , , , and . What is its expected code length?

  27. Question 27 of 60 Huffman coding Medium

    Symbols occur times, respectively. How many bits are needed to encode all symbols using an optimal binary Huffman code?

  28. Question 28 of 60 Huffman coding Medium

    Eight symbols have equal nonzero frequencies. What codeword length will each symbol have in an optimal binary Huffman code?

  29. Question 29 of 60 Huffman coding Medium

    A symbol with probability has code length , while a symbol with probability has code length . By how much does their combined expected contribution decrease if their codewords are swapped?

  30. Question 30 of 60 Huffman coding Medium

    A file contains symbols drawn from six symbols with frequencies . Its Huffman payload uses bits, and storing the tree requires bits. Compared with a fixed-length code, how many bits are saved overall?

  31. Question 31 of 60 Data compression problems Medium

    Using compression ratio defined as original size divided by compressed size, what is the ratio when a KB file is compressed to KB?

  32. Question 32 of 60 Data compression problems Medium

    A MB file is reduced to MB. What percentage of the original storage space is saved?

  33. Question 33 of 60 Data compression problems Medium

    What is the Shannon entropy of a source with symbol probabilities , , , and ?

  34. Question 34 of 60 Data compression problems Medium

    The string AAAAABBBCCCCCCCC is stored using bits per character. Run-length encoding stores each run as an -bit character and an -bit count. How many bits are saved?

  35. Question 35 of 60 Data compression problems Medium

    A compressor reduces a -byte file payload to bytes but adds bytes of metadata. What is the overall percentage reduction?

  36. Question 36 of 60 Data compression problems Medium

    A source uses an alphabet of eight symbols. Fixed-length coding requires bits per symbol, while a variable-length code averages bits. How many bits are saved over symbols?

  37. Question 37 of 60 Data compression problems Medium

    A file contains both long repeated substrings and uneven token frequencies. Which compression pipeline most directly exploits both properties?

  38. Question 38 of 60 Data compression problems Medium

    An -megabit file is sent over a Mbps link. Compression has a ratio of and adds seconds of total processing time. How much time is saved compared with sending the original file?

  39. Question 39 of 60 Data compression problems Medium

    A source has entropy bits per symbol, while a lossless code uses an average of bits per symbol. What is the code's redundancy above the entropy?

  40. Question 40 of 60 Data compression problems Medium

    A run-length encoder represents each run using an -bit symbol and an -bit count. The uncompressed representation uses bits per symbol. What is the minimum run length that produces a strict size reduction?

  41. Question 41 of 60 Huffman coding Hard

    A source has symbol frequencies . What weighted external path length and average codeword length result from binary Huffman coding?

  42. Question 42 of 60 Huffman coding Hard

    Equal weights can allow several choices during Huffman construction. Which property is guaranteed across all valid tie-breaking choices?

  43. Question 43 of 60 Huffman coding Hard

    A full -ary Huffman code must be constructed for positive-frequency symbols. How many zero-frequency dummy symbols must be added before repeatedly merging four nodes?

  44. Question 44 of 60 Huffman coding Hard

    A canonical binary Huffman code uses symbol order and codeword lengths , respectively. If the first codeword is the lexicographically smallest possible one, what is the codeword for ?

  45. Question 45 of 60 Huffman coding Hard

    A length-limited binary prefix code is required for symbols, with every codeword having length at most . Which conclusion is correct regardless of the symbol probabilities?

  46. Question 46 of 60 Huffman coding Hard

    For a binary source with probabilities , what are the entropy and optimal Huffman average length?

  47. Question 47 of 60 Data compression problems Hard

    An -byte file is originally stored using bits. Huffman compression averages bits per byte, but its frequency-table header costs bits. What is the smallest integer for which the compressed representation is strictly smaller?

  48. Question 48 of 60 Huffman coding Hard

    A source has probabilities , and all five symbols must receive distinct finite binary prefix codewords. What is the minimum expected codeword length?

  49. Question 49 of 60 Huffman coding Hard

    Which statement correctly expresses the sibling property used in the proof of binary Huffman coding optimality?

  50. Question 50 of 60 Data compression problems Hard

    A single bit is deleted from a stream encoded with an arbitrary binary Huffman code. What recovery property follows solely from the prefix-free condition?

  51. Question 51 of 60 Data compression problems Hard

    Two blocks each contain symbols. The first has counts , and the second has counts . Ignoring headers, compare separate binary Huffman coding of the blocks with one global Huffman code.

  52. Question 52 of 60 Data compression problems Hard

    A memoryless binary source has probabilities . Why can arithmetic coding of a long sequence substantially outperform symbol-by-symbol binary Huffman coding?

  53. Question 53 of 60 Huffman coding Hard

    Binary Huffman coding is applied to frequencies . Which symbols receive the maximum codeword length, and what is that length?

  54. Question 54 of 60 Huffman coding Hard

    Can a binary prefix code have codeword lengths ?

  55. Question 55 of 60 Huffman coding Hard

    For positive-frequency symbols, what is the largest possible depth of a leaf in a binary Huffman tree, considering all possible frequency distributions?

  56. Question 56 of 60 Huffman coding Hard

    Consider frequency sequences and , whose symbols have the same initial frequency ordering. Which conclusion is correct?

  57. Question 57 of 60 Huffman coding Hard

    An unconstrained Huffman tree violates a required maximum codeword length . Which method correctly obtains an optimal binary length-limited prefix code?

  58. Question 58 of 60 Data compression problems Hard

    Why can no lossless compressor map every -bit input to a distinct binary output shorter than bits?

  59. Question 59 of 60 Data compression problems Hard

    An i.i.d. source has entropy bits per symbol. Binary Huffman coding is applied to length- source blocks. Which bound holds for the average encoded length per source symbol?

  60. Question 60 of 60 Data compression problems Hard

    Let be an equiprobable binary variable and let , where is independent with . If both encoder and decoder know , what asymptotic lossless compression rate is achievable for ?

That's unit 9

Answer a few questions and your score shows up here.