Consider the following variable-length code for the symbols a
through f.
Symbol, Binary Code
a 01
b 10
c 001
d 1001
e 1101
f 1110
Which of the following changes will suce to make this a prex-free code? (Pick a if
no changes are necessary.)
a. None (It is already a prex-free code).
b. Change the code for a to 0.
c. Change the code for b to 11.
d. Change the code for c to 011.
e. Change the code for d to 1111.
I think the answer is either D or E. Can someone help me rule out the right one and give an explanation? Thanks.
through f.
Symbol, Binary Code
a 01
b 10
c 001
d 1001
e 1101
f 1110
Which of the following changes will suce to make this a prex-free code? (Pick a if
no changes are necessary.)
a. None (It is already a prex-free code).
b. Change the code for a to 0.
c. Change the code for b to 11.
d. Change the code for c to 011.
e. Change the code for d to 1111.
I think the answer is either D or E. Can someone help me rule out the right one and give an explanation? Thanks.