跳到主要内容

京都大学 情報学研究科 通信情報システム専攻 2022年8月実施 専門基礎A [A-5]

Author​

SUN, 祭音Myyura

Description​

大学公表の原題 Answer all the following questions.

(1) Consider a general communication system model, which consists of a source, destination, channel encoder, channel decoder, source encoder, source decoder, and communication channel. Draw this model as a block diagram.

(2) A stationary memoryless information source SS generates information symbols A,B,C,D,A, B, C, D, and EE with probabilities 0.6,0.16,0.12,0.08,0.6, 0.16, 0.12, 0.08, and 0.040.04 respectively. Answer the following questions. log⁡23=1.6\log_2 3 = 1.6 and log⁡25=2.3\log_2 5 = 2.3 may be used.

  • (a) Describe the definitions of “memoryless” and “stationary”.
  • (b) Find a binary Huffman code of SS.
  • (c) Find the expected codeword length per symbol of the code in Question (b).
  • (d) Find the entropy of SS.

(3) Let CC be a memoryless binary symmetric channel (BSC) with crossover probability pp. Answer the following questions.

  • (a) Show the channel matrix of CC.
  • (b) Show that the channel capacity of CC is given by 1+plog⁡2p+(1−p)log⁡2(1−p)1 + p \log_2 p + (1 - p)\log_2(1 - p). In addition, graph it as a function of pp.
  • (c) Consider communications with (7,4)(7,4) Hamming code through CC. Evaluate the probability of decoding failure assuming that any correctable errors are corrected.
  • (d) Find the channel capacity of a cascade of two BSCs with crossover probabilities pp and qq.

题目描述​

回答全部问题。

  1. 一个一般通信系统由信源、信宿、信道编码器、信道译码器、信源编码器、信源译码器和通信信道组成。画出其框图。
  2. 平稳无记忆信源 SS 以概率 0.6,0.16,0.12,0.08,0.040.6,0.16,0.12,0.08,0.04 产生符号 A,B,C,D,EA,B,C,D,E。可使用 log⁡23=1.6\log_2 3=1.6、log⁡25=2.3\log_2 5=2.3。
    1. 说明“无记忆”和“平稳”的定义。
    2. 为 SS 构造一个二元 Huffman 码。
    3. 求该码的每符号平均码长。
    4. 求 SS 的熵。
  3. 设 CC 为交叉概率 pp 的无记忆二元对称信道(BSC)。
    1. 写出 CC 的信道矩阵。

    2. 证明其信道容量为

      1+plog⁡2p+(1−p)log⁡2(1−p),1+p\log_2p+(1-p)\log_2(1-p),

      并画出容量关于 pp 的图像。

    3. 通过 CC 使用 (7,4)(7,4) Hamming 码通信,假设所有可纠正错误都被纠正,求译码失败概率。

    4. 求交叉概率分别为 p,qp,q 的两个 BSC 串联后的信道容量。

Kai​

(1)​

Communication system block diagram Source →\rightarrow source encoder →\rightarrow channel encoder →\rightarrow Communication channel →\rightarrow channel decoder →\rightarrow source decoder →\rightarrow destination

(2)​

(a)​

"Memoryless" means that outputs at different times are independent. "Stationary" means that their probability distribution does not change with time.

(b)​

One Huffman code is

A↦0,B↦10,C↦110,D↦1110,E↦1111.A\mapsto0,\quad B\mapsto10,\quad C\mapsto110,\quad D\mapsto1110,\quad E\mapsto1111.

Its merge weights are 0.04+0.08=0.120.04+0.08=0.12, 0.12+0.12=0.240.12+0.12=0.24, 0.16+0.24=0.400.16+0.24=0.40, and 0.40+0.60=10.40+0.60=1.

The corresponding tree:

(c)​

Lˉ=∑PiLi=0.6×1+0.16×2+0.12×3+0.08×4+0.04×4=1.76 bit/symbol\bar{L} = \sum P_i L_i = 0.6 \times 1 + 0.16 \times 2 + 0.12 \times 3 + 0.08 \times 4 + 0.04 \times 4 = 1.76 \text{ bit/symbol}

(d)​

H(S)=∑Pilog⁡21Pi=1525log⁡22515+425log⁡2254+325log⁡2253+225log⁡2252+125log⁡225H(S) = \sum P_i \log_2 \frac{1}{P_i} = \frac{15}{25} \log_2 \frac{25}{15} + \frac{4}{25} \log_2 \frac{25}{4} + \frac{3}{25} \log_2 \frac{25}{3} + \frac{2}{25} \log_2 \frac{25}{2} + \frac{1}{25} \log_2 25
≈1.668 bits/symbol (using the supplied rounded logarithms)\approx 1.668 \text{ bits/symbol (using the supplied rounded logarithms)}

Using accurate logarithms gives H(S)≈1.7095H(S)\approx1.7095 bits/symbol.

(3)​

(a)​

[1−ppp1−p]\begin{bmatrix} 1-p & p \\ p & 1-p \end{bmatrix}

(b)​

C=max⁡I(x;y)=max⁡H(y)−H(y∣x)C = \max I(x; y) = \max H(y) - H(y|x)
H(y∣x)=H(1−p,p)=−[plog⁡2p+(1−p)log⁡2(1−p)]H(y|x) = H(1-p, p) = -[p \log_2 p + (1-p) \log_2 (1-p)]
A uniform input makes the output uniform for every p∈[0,1]p\in[0,1], so the upper bound H(y)≤1H(y)\leq1 is attainable. max⁡H(y)=H(12)=1\max H(y) = H(\frac{1}{2}) = 1. So that C=1+plog⁡2p+(1−p)log⁡2(1−p).C = 1 + p \log_2 p + (1-p) \log_2 (1-p).

The graph:

(c)​

The (7,4) Hamming code can correct 1 bit error.
Pfail=1−Psuccess=1−[(1−p)7+7⋅p(1−p)6]P_{fail} = 1 - P_{success} = 1 - [(1-p)^7 + 7 \cdot p(1-p)^6]

(d)​

Ptotal=[1−ppp1−p][1−qqq1−q]=[(1−p)(1−q)+pq(1−p)q+p(1−q)p(1−q)+q(1−p)(1−p)(1−q)+pq]P_{total} = \begin{bmatrix} 1-p & p \\ p & 1-p \end{bmatrix} \begin{bmatrix} 1-q & q \\ q & 1-q \end{bmatrix} = \begin{bmatrix} (1-p)(1-q)+pq & (1-p)q+p(1-q) \\ p(1-q)+q(1-p) & (1-p)(1-q)+pq \end{bmatrix}

This is still a BSC : C=1−H(p(1−q)+q(1−p)).C = 1 - H(p(1-q) + q(1-p)).