跳到主要内容

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

Author

SUN

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. log23=1.6\log_2 3 = 1.6 and log25=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+plog2p+(1p)log2(1p)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。可使用 log23=1.6\log_2 3=1.6log25=2.3\log_2 5=2.3
    1. 说明“无记忆”和“平稳”的定义。
    2. SS 构造一个二元 Huffman 码。
    3. 求该码的每符号平均码长。
    4. SS 的熵。
  3. CC 为交叉概率 pp 的无记忆二元对称信道(BSC)。
    1. 写出 CC 的信道矩阵。
    2. 证明其信道容量为
      1+plog2p+(1p)log2(1p),1+p\log_2p+(1-p)\log_2(1-p),
      并画出容量关于 pp 的图像。
    3. 通过 CC 使用 (7,4)(7,4) Hamming 码通信,假设所有可纠正错误都被纠正,求译码失败概率。
    4. 求交叉概率分别为 p,qp,q 的两个 BSC 串联后的信道容量。

考点

  • 通信系统基本模型:按信源编码、信道编码、信道传输及对应逆过程正确排列模块。
  • Huffman 编码与熵:根据给定概率构造二元前缀码,计算平均码长与信源熵。
  • 二元对称信道容量:从互信息最大化推导 1H2(p)1-H_2(p),分析其随交叉概率的变化。
  • Hamming 码译码失败概率:利用 (7,4)(7,4) 码纠正一位错误的能力,计算至少两位出错的概率。
  • 串联信道:求两个独立 BSC 的等效交叉概率,再代入容量公式。

Kai

(1)

Source \rightarrow source encoder \rightarrow channel encoder \rightarrow Communication channel \rightarrow channel decoder \rightarrow source decoder \rightarrow destination

(2)

(a)

"Memoryless" means the current output is not related to previous ones.
"stationary" means the output behaviour keeps the same over time.

(b)

construct the Huffman code:

(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)=Pilog21Pi=1525log22515+425log2254+325log2253+225log2252+125log225H(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= 1.668 \text{ bits/symbol}

(3)

(a)

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

(b)

C=maxI(x;y)=maxH(y)H(yx)C = \max I(x; y) = \max H(y) - H(y|x)
H(yx)=H(1p,p)=[plog2p+(1p)log2(1p)]H(y|x) = H(1-p, p) = -[p \log_2 p + (1-p) \log_2 (1-p)]
maxH(y)\max H(y) will be achieved when the output probability is uniform.
maxH(y)=H(12)=1\max H(y) = H(\frac{1}{2}) = 1. So that C=1+plog2p+(1p)log2(1p).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=1Psuccess=1[(1p)7+7p(1p)6]P_{fail} = 1 - P_{success} = 1 - [(1-p)^7 + 7 \cdot p(1-p)^6]

(d)

Ptotal=[1ppp1p][1qqq1q]=[(1p)(1q)+pq(1p)q+p(1q)p(1q)+q(1p)p(q)+q(1p)]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) & p(q)+q(1-p) \end{bmatrix}

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