Data compression

EasyMedium
1234567891011121314151617181920212223242526272829303132333435363738394041
Question 18
Easy

Using the Huffman codes shown in Table 1, complete the partial Huffman tree shown in Figure 1 by identifying which character belongs in each of the empty leaves: Leaf X, Leaf Y, and Leaf Z.

Table 1: Character Codes

CharacterBinary code
T0
A10
P110
S111

Figure 1: Partial Huffman Tree

Partial Huffman Tree

State the character for:

a.

Leaf X

[1]
b.

Leaf Y

[1]
c.

Leaf Z

[1]

Data compression Questions

  1. GCSE
  2. /Computer Science
  3. /Data compression