Communication Chapter 2 - proof ideas Flashcards

1
Q

idea of proof for gibbs lemma. H(P)≤ the sum from i=1 to m of pᵢ log (1/rᵢ).

A
  • multiply result by ln2 (recall log₂x = lnx/ln2)
  • replace H(P) by definition, take all sums to one side, combine logs, replace log by lnx ≤ x-1, expand and separate sums, probabilities sum to 1, gets the hypothesis of theorem which we know holds)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Idea of of proof for theorem. 0≤H(P)≤logm.

A

[lower bound] follows by definition of entropy.

[upperbound] Set rᵢ=1/m. Then by gibbs lemma we get H(P)=log m (sum of probabilities =1)

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

Idea of proof for Shannons Noiseless Encoding Theorem [lower bound]

A
  • set up random source, prob distru, optimal prefix free encoding, ℓᵢ=|f(sᵢ)|
  • set rᵢ=2^-ℓᵢ
  • Apply Mcmillans theorem
  • Apply Gibbs Lemma
  • manipulate and sub in def in ℓᵢ to get expected length
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Idea of proof for Shannons Noiseless Encoding Theorem [upper bound]

A
  • We will construct a prefix-free encoding f* of S that satisfies the inequality
  • let ℓᵢ be the smallest integer s.t. pᵢ≥2^-ℓᵢ show the condition for krafts theorem holds
  • So by Krafts Theorem there exists a prefix free code C={c₁,..,cₘ} s.t. |cᵢ|=ℓᵢ .
  • consier the encoding f* of s s.t. f(sᵢ)=cᵢ for all i in [m]. Then |f(sᵢ)|=ℓᵢ .
  • By definition of ℓᵢ we have that pᵢ<2^-(ℓᵢ-1). (just swapping inequality)
  • Rearrange this and substitute into the definition of H(S) (manipulate to get result)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

idea of proof for ℓ₁≤…≤ℓₘ for an optimal prefix free encoding f* of S with ℓᵢ = |f*(sᵢ)|

A
  • Let f₁ be an optimal prefix-free encoding of S.
  • We may assume f₁ satisfies the fact that if pᵢ=pⱼ and i is less than j then |f₁(sᵢ)<=|f₁(sⱼ)|
  • assume for a contradiction |f₁(sᵢ)|>|f₁(sᵢ₊₁)|. Then pᵢ>pᵢ₊₁
  • let f₂ be encoding obtained from f₁ by swapping the codewords of sᵢ and sᵢ₊₁
  • Manipulate the expected length equation for f₂ (make in terms of f₁, and collect terms) this contradicts the optimality of f₁
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

idea of proof for ℓₘ = ℓₘ₋₁ and the codewords differing only in their last bit for an optimal prefix free encoding f* of S with ℓᵢ = |f*(sᵢ)|

A
  • prove claim: the code associated with the encoding of f₁ has two codewords of maximum length which differ only in their last bit.
    • for a contradiction suppose only one codeword of maximum length. Since f₁ is prefix free we can truncate this codeword and still have a prefix free encoding => f₁ was not optimal (a contradiction)
    • Now assume f₁ has more than 2 codewords of maximum length, but no 2 differ soley in their last bit. Thus we could truncate any two of them and still have a prefix free encoding => f₁ not optimal (a contradiction)
  • by claim and part (a) f₁(sᵢ) and f₁(sᵢ₊₁) have maximum length and are the last two codwords. By reassigning codewords we can see the last two differ only in their last bit.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

log₂x =

A

log₂x = lnx/ln2

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

lnx ≤

A

lnx≤x-1

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

sum from i=1 to m of pᵢ

A

1

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

rᵢ in the proof of shannons noiseless encoding theorem proof

A

rᵢ=2^-ℓᵢ

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

why do you chose rᵢ=2^-ℓᵢ in the proof of shannons noiseless encoding theorem?

A

So that you can apply mcmillans theorem to get the hypothesis of gibbs lemma

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

an encoding denoted with a subscript * is

A

optimal

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

an encoding denoted with a subscript H is

A

a Huffman encoding

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

pᵢ≥2^-ℓᵢ => (Shannon noiseless encoding theorem, upper bound)

A

pᵢ<2^-(ℓᵢ-1)

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

Set up of shannons noiseless encoding theorem (upperbound)

A

we must construct a prefix free encoding f’ of S that satisfies the inequality: 𝔼(ℓ(f))<=𝔼(ℓ(f’))

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

Set up of shannons noiseless encoding theorem (lowerbound)

A

Let S be a random source with probability distribution we may assume pᵢ>0 for all i.
Let f be an optimal prefix-free encoding of S.
For all i let lᵢ=|f(sᵢ)| be the length pf the codeword associated to sᵢ.
Set rᵢ = 2^-lᵢ.

17
Q

claim in proof for ℓₘ = ℓₘ₋₁ and the codewords differing only in their last bit for an optimal prefix free encoding f* of S with ℓᵢ = |f*(sᵢ)|

A

the code associated with the encoding of f₁ has two codewords of maximum length which differ only in their last bit.

18
Q

proof of claim the code associated with the encoding of f₁ has two codewords of maximum length which differ only in their last bit.

A
  • for a contradiction suppose only one codeword of maximum length. Since f₁ is prefix free we can truncate this codeword and still have a prefix free encoding => not optimal (a contradiction)
    • assume f₁ has more than 2 codewords of maximum length but no 2 differ soley in their last bit. Thus we could truncate any two of them and still have a prefix free encoding => not optimal (a contradiction)
19
Q

Last part of proof for ℓₘ = ℓₘ₋₁ and the codewords differing only in their last bit for an optimal prefix free encoding f* of S with ℓᵢ = |f*(sᵢ)|

A

By the claim C(f₁) has at least two codewords sᵢ and sⱼ such that f₁(sᵢ) and f₁(sⱼ) have maximum length and differ only in their last bit. By a) f(sₘ) = f(sₘ₋₁) have maximum length. Thus b) is satisfied. By reassigning the codewords f₁(sᵢ) and f₁(sⱼ) to f(sₘ) = f(sₘ₋₁) respectively we can ensure c) also holds.

20
Q

Assumption for contradiction in proof of ℓ₁≤…≤ℓₘ

A

|f₁(sᵢ)|>|f₁(sᵢ₊₁)|

21
Q

𝔼(ℓ(f₂)) =

proof of ℓ₁≤…≤ℓₘ

A

= sum over all k∈[m] pₖ|f₂(sₖ)|
= sum over all k∈[m] pₖ|f₁(sₖ)| - pᵢ|f₁(sᵢ)| + pᵢ|f₂(sᵢ)| - pᵢ₊₁|f₁(sᵢ₊₁)| + pᵢ₊₁|f₂(sᵢ₊₁)|
= 𝔼(ℓ(f₁)) - (pᵢ-pᵢ₊₁)(|f₁(sᵢ)| - |f₁(sᵢ₊₁)| )

22
Q

claim in proof for ℓₘ = ℓₘ₋₁ and the codewords differing only in their last bit for an optimal prefix free encoding f* of S with ℓᵢ = |f*(sᵢ)|

A

the code associated with the encoding of f₁ has two codewords of maximum length which differ only in their last bit.

23
Q

ℓᵢ in upperbound of shannons noiseless encoding theorem

A

let ℓᵢ be the smallest integer s.t. pᵢ≥2^-ℓᵢ