跳到主要内容

東京大学 情報理工学系研究科 電子情報学専攻 2026年1月実施 専門 第5問

Author​

瑞穂

Description​

Recalled statement. (1) For a binary source SS with p(0)=0.9p(0)=0.9 and p(1)=0.1p(1)=0.1, find H(S)H(S) and the entropy of its second extension H(S2)H(S^2). Give a Huffman code and its mean length.

(2) Find the stationary probabilities of the source shown in a transition diagram.

(3) Find the channel capacity in the two cases recalled as “not stable SS” and “stable SS”.

(4) Give a transition matrix involving error probability pp and mean error length ll.

(5) Explain CRC and its “capacity” for

G(x)=x16+x12+x5+1.G(x)=x^{16}+x^{12}+x^5+1.

题目描述​

对二元信源求熵、二阶扩展熵与霍夫曼码;对给定转移图求平稳概率;求两种信道的容量及涉及错误概率 pp、平均错误长度 ll 的转移矩阵;说明生成多项式为 x16+x12+x5+1x^{16}+x^{12}+x^5+1 的 CRC。

Kai​

(1)​

All logarithms below are base 22. The single-symbol entropy is

H(S)=−0.9log⁡20.9−0.1log⁡20.1≃0.468996 bit.H(S)=-0.9\log_2 0.9-0.1\log_2 0.1\simeq0.468996\ \mathrm{bit}.

A Huffman code for the two single symbols is 0↦00\mapsto0, 1↦11\mapsto1, with mean length 11 bit per source symbol.

If SS is memoryless, the second-extension probabilities are 0.81,0.09,0.09,0.010.81,0.09,0.09,0.01 for 00,01,10,1100,01,10,11, respectively. Independence gives

H(S2)=2H(S)≃0.937991 bit/pair.H(S^2)=2H(S)\simeq0.937991\ \mathrm{bit/pair}.

The Huffman merges have weights 0.01+0.09=0.100.01+0.09=0.10, 0.10+0.09=0.190.10+0.09=0.19, and 0.19+0.81=10.19+0.81=1. One code is:

PairProbabilityCode
00000.810.8100
01010.090.091010
10100.090.09110110
11110.010.01111111

Thus the mean length is 0.81+2(0.09)+3(0.10)=1.290.81+2(0.09)+3(0.10)=1.29 bit/pair, or 0.6450.645 bit/source symbol. If the source has memory, the two marginal probabilities alone do not determine H(S2)H(S^2): one needs the joint probabilities, or equivalently H(X2∣X1)H(X_2\mid X_1).

(2)​

Without the diagram, numerical stationary probabilities cannot be determined. For a two-state Markov source with

P=(1−aab1−b),a+b>0,P=\begin{pmatrix}1-a&a\\b&1-b\end{pmatrix},\qquad a+b>0,

the equations πP=π\pi P=\pi and π0+π1=1\pi_0+\pi_1=1 yield

π0=ba+b,π1=aa+b.\boxed{\pi_0=\frac b{a+b},\qquad \pi_1=\frac a{a+b}}.

If a=b=0a=b=0, every initial distribution is stationary.

(3)​

A channel capacity cannot be inferred from source probabilities alone. For a memoryless binary symmetric channel with crossover probability pp, the answer is

C=1−H2(p).C=1-H_2(p).

Indeed, I(X;Y)=H(Y)−H(Y∣X)≤1−H2(p)I(X;Y)=H(Y)-H(Y\mid X)\le1-H_2(p), and an equiprobable input attains equality.

For an additive binary channel Yi=Xi⊕EiY_i=X_i\oplus E_i with stationary, ergodic noise independent of the input, the capacity per use is instead

C=1−H‾(E),H‾(E)=lim⁡n→∞1nH(E1,…,En).C=1-\overline H(E),\qquad \overline H(E)=\lim_{n\to\infty}\frac1nH(E_1,\ldots,E_n).

To see the bound, I(Xn;Yn)=H(Yn)−H(En)≤n−H(En)I(X^n;Y^n)=H(Y^n)-H(E^n)\le n-H(E^n); independent uniform input makes YnY^n uniform and attains it.

(4)​

If the intended model is a two-state Markov error indicator Ei∈{0,1}E_i\in\{0,1\}, with stationary error fraction p∈(0,1)p\in(0,1) and mean length ll of a run of 11's, write

a=P(Ei+1=1∣Ei=0),b=P(Ei+1=0∣Ei=1).a=P(E_{i+1}=1\mid E_i=0),\qquad b=P(E_{i+1}=0\mid E_i=1).

A run of errors has geometric length, so l=1/bl=1/b. Stationary flow gives (1−p)a=pb(1-p)a=pb. Hence

P=(1−pl(1−p)pl(1−p)1l1−1l).\boxed{P=\begin{pmatrix} 1-\dfrac{p}{l(1-p)}&\dfrac{p}{l(1-p)}\\[4pt] \dfrac1l&1-\dfrac1l \end{pmatrix}}.

The parameters must satisfy l≥1l\ge1 and p≤l/(l+1)p\le l/(l+1) so all entries are probabilities. In the stationary ergodic case, this model has entropy rate

H‾(E)=(1−p)H2 ⁣(pl(1−p))+pH2 ⁣(1l).\overline H(E)=(1-p)H_2\!\left(\frac{p}{l(1-p)}\right) +pH_2\!\left(\frac1l\right).

Other meanings of ll, or a hidden-state error model, require a different matrix.

(5)​

A cyclic redundancy check appends a polynomial remainder over GF(2)\mathrm{GF}(2). For a kk-bit message polynomial M(x)M(x), let

R(x)=x16M(x) mod G(x),T(x)=x16M(x)+R(x).R(x)=x^{16}M(x)\bmod G(x),\qquad T(x)=x^{16}M(x)+R(x).

Then GG divides TT. The receiver divides the received polynomial by GG and reports an error when the remainder is nonzero. An error polynomial E(x)E(x) is undetected exactly when G∣EG\mid E.

For the given generator:

  • There are 1616 redundancy bits; for a kk-bit payload the code rate is k/(k+16)k/(k+16).
  • Every nonzero burst of length at most 1616 is detected. After removing its leading power of xx, its degree is below 1616, so it cannot be divisible by GG; G(0)=1G(0)=1 permits removing that power.
  • Every odd-weight error is detected. Over GF(2)\mathrm{GF}(2), G(1)=0G(1)=0, so x+1x+1 divides GG, whereas an odd-weight error has E(1)=1E(1)=1.
  • Every two-bit error is detected for total codeword length at most 3276732767. In fact, the multiplicative order of xx modulo GG is 3276732767, so GG cannot divide 1+xd1+x^d for 1≤d<327671\le d<32767.

These properties describe redundancy and error-detection capability. The polynomial alone does not specify a Shannon channel capacity. Source: the CRC-16/CCITT entry in Koopman's polynomial table.