Communication- Chapter 1 Flashcards

1
Q

Uniquely decipherable informal

A

there is at most one way to decode codewords into strings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to show a code is not uniquely decipherable

A

find a counter example

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to show a code is uniquely decipherable

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to tell if a code is instantaneous

A
  • if a codeword is contained in another codeword not instantaneous
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Instantaneous

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Prefix Free Informal

A

given any codeword non of its prefixes appear anywhere in the code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to prove a code is not prefix free

A

find a contradiction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to prove a code is prefix free

A

for each code c₁ show that c₁ is not a prefix of any of the other codes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The converse of McMillans Theorem…

A

does not hold.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

McMillans Theorem

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

McMillans Theorem is..

A

best possible

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How to use McMillans Theorem to show a code is not prefix-free

A
  1. assume for a contradiction it is prefix free
  2. calculate the sum
  3. The value calculated in >1 then it would contradict McMillans theorem
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How to use Krafts Theorem to show there is a prefix free code for given lengths

A
  1. substitute the lengths in the inequality
  2. show this is ≤1
  3. so by Krafts theorem there exists a prefix free code C with codewords of the given length
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

considering codeword lengths li there exists a prefix free r-ary code iff …

(r-ary => the alphabet has r objects)

A

the sum from i=1 to m of r⁻ˡi less than or equal to 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

(n,d)-code vs [n,k]-code

A

(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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

A code that is uniquely decipherable but not prefix free

A

0,01

17
Q

Triangle Inequality for hamming distances

A

dₕ(x,z)≤dₕ(x,y)+dₕ(z,y)

18
Q

expected value of x

A

np

19
Q

variance squared of x

A

np(1-p)