Communication- Chapter 1 Flashcards
Uniquely decipherable informal
there is at most one way to decode codewords into strings
How to show a code is not uniquely decipherable
find a counter example
How to show a code is uniquely decipherable
Suppose a string of bits corresponds to at least one sequence of codewords in C . It suffices to uniquely identify the first codeword in the string. If so we can process the remainder substring as a shorter string. Then take cases.
How to tell if a code is instantaneous
- if a codeword is contained in another codeword not instantaneous
Instantaneous
A code C is instanteous if every codeword c = x₁x₂…xₗ∈C can be identified as soon as its last bit xₗ is recieved
Prefix Free Informal
given any codeword non of its prefixes appear anywhere in the code
How to prove a code is not prefix free
find a contradiction
How to prove a code is prefix free
for each code c₁ show that c₁ is not a prefix of any of the other codes
The converse of McMillans Theorem…
does not hold.
McMillans Theorem
Let C={c₁,…,cₘ} be a prefix-free code and lᵢ:=|cᵢ| for all i∈[m]. Then, the sum from i=1 to m of 2⁻ˡi ≤ 1
McMillans Theorem is..
best possible
How to use McMillans Theorem to show a code is not prefix-free
- assume for a contradiction it is prefix free
- calculate the sum
- The value calculated in >1 then it would contradict McMillans theorem
How to use Krafts Theorem to show there is a prefix free code for given lengths
- substitute the lengths in the inequality
- show this is ≤1
- so by Krafts theorem there exists a prefix free code C with codewords of the given length
considering codeword lengths li there exists a prefix free r-ary code iff …
(r-ary => the alphabet has r objects)
the sum from i=1 to m of r⁻ˡi less than or equal to 1
(n,d)-code vs [n,k]-code
(n,d) is a code of length n with minimum hamming distance d.
[n,k] is a code with length n and dimension (size of basis, no rows in generator matrix). Or a code where the source has strings of length k and is encoded to strings of length n (block).