The binary Kraft inequality states that codeword lengths of a prefix code, or more generally a uniquely decodable code, satisfyConversely, positive integer lengths obeying this inequality can be realized by a binary prefix code.
The Shannon lengths are . Their Competitive optimality of the Shannon code says that for every binary uniquely decodable code of lengths and every positive integer ,On this event, . Summing and applying the Kraft inequality proves
Relabel the symbols so and assign all finite binary strings in nondecreasing length order, beginning with the empty string. The th string has lengthSince ,Thus the optimal one-to-one binary code satisfies
Articles by others on the same topic
There are currently no matching articles.