Every Decipherable code satisfies Kraft’s inequality.
Proof
Let
where
Taking
Corollary
A Decipherable code with prescribed word lengths exists if and only if there exists a Prefix-Free Code with the same word lengths.
Every Decipherable code satisfies Kraft’s inequality.
Let
where
Taking
A Decipherable code with prescribed word lengths exists if and only if there exists a Prefix-Free Code with the same word lengths.