To find the expected length using Huffman coding, we construct the Huffman tree for the given probabilities:
Sorted initial frequencies:
Step 1: Combine the two lowest probabilities T(0.08) and R(0.17) into a new node N1 with probability 0.08+0.17=0.25.
Remaining: $S(0.19), P(0.22), N_1(0.25), Q(0.34)$
Step 2: Combine the next two lowest probabilities S(0.19) and P(0.22) into node N2 with probability 0.19+0.22=0.41.
Remaining: $N_1(0.25), Q(0.34), N_2(0.41)$
Step 3: Combine N1(0.25) and Q(0.34) into node N3 with probability 0.25+0.34=0.59.
Remaining: $N_2(0.41), N_3(0.59)$
Step 4: Combine N2(0.41) and N3(0.59) to form the root with probability 1.00.
Codeword lengths:
Length of S: 2 bits (depth in tree)
Expected length per character (L):
L=∑P(x)⋅l(x) L=(0.22×2)+(0.34×2)+(0.17×3)+(0.19×2)+(0.08×3) L=0.44+0.68+0.51+0.38+0.24=2.25 bits/character For a message of 100 characters, the expected total length is:
Total length=100×2.25=225 bits Hence, the correct answer is 225.