A uniquely decodable code is a map whose extension by concatenation to finite strings is injective. Write for its codeword lengths and assume the target alphabet has size . The Kraft–McMillan inequality gives . The Gibbs inequality says for probability distributions , with the usual convention for zero probabilities.
Set . For Shannon entropy , the Gibbs inequality becomesSince , the entropy lower bound for prefix codes also applies to this uniquely decodable code:
Articles by others on the same topic
There are currently no matching articles.