Sardinas–Patterson algorithm -
is code c = {00, 11, 0101, 111, 1010, 100100, 0110} uniquely decodeable?
my answer no, because according sardinas–patterson algorithm:
c1 = {1}
c2 = {1, 11, 010, 00100}
so c2 , c = {11}, c not uniquely decodable code.
i wondering right this?
you correct code not uniquely decodable.
consider string 111111, can parsed 11 11 11 or 111 111.
Comments
Post a Comment