京都大学 情報学研究科 通信情報システム専攻 2021年7月実施 専門基礎A [A-5]
Author
SUN, 祭音Myyura
Description
Answer all the following questions.
(1)
A stationary memoryless information source generates information symbols and with probabilities and , respectively. Answer the following questions.
and may be used.
(a) Find a binary Huffman code of .
(b) Describe the definition of instantaneous codes.
(c) Find the expected codeword length per symbol of the code in Question (a).
(d) Find the entropy of .
(2)
Answer the following questions related to channel coding. Let and be binary cyclic codes of length 15 with generator polynomials
and
, respectively.
(a) Determine whether
is a codeword polynomial of or not.
(b) Find the codeword polynomial of for the message polynomial
in a systematic form.
(c) Find the minimum distance of .
(d) Find how many bit errors can correct.
(e) Explain the advantage(s) and disadvantage(s) of over .
(f) Explain how to correct errors with .
题目描述
回答全部问题。
-
平稳无记忆信息源 以概率 产生符号 。可使用 、。
- 为 构造一个二元 Huffman 码。
- 说明即时码的定义。
- 求第 1 小问编码的每符号平均码长。
- 求 的熵。
-
设 为长度 的二元循环码,生成多项式分别为
- 判断 是否为 的码字多项式。
- 求消息多项式 在 中的系统形式码字多项式。
- 求 的最小距离。
- 求 可纠正的比特错误数。
- 说明 相比 的优点与缺点。
- 说明如何用 纠错。
Kai
(1)
(a)
One binary Huffman code is
Merge weights , , , and finally .
Huffman Tree Structure:
(b)
Instantaneous codes satisfy the Prefix condition, which ensures that no codeword is a prefix of another. This property allows the decoder to identify and decode each symbol uniquely and immediately upon its reception, without the need for a look-ahead or causing ambiguity.
(c)
(d)
Entropy Calculation
(2)
(a)
Check if the given polynomial is a codeword using polynomial division:
x^6 + x^5 + x^2
_____________________________________________
x^4 + x + 1 | x^10 + x^9 + x^7 + x^6 + x^5 + x^3 + x^2 + 1
x^10 + x^7 + x^6
-----------------------
x^9 + x^5
x^9 + x^6 + x^5
-----------------------
x^6 + x^3 + x^2 + 1
x^6 + x^3 + x^2
-----------------------
1 (Remainder)
Conclusion: Since the remainder is , this is not a codeword polynomial.
(b)
Given :
(c)
is a primitive polynomial, so is a Hamming code. For a Hamming code, the minimum distance is .
(d)
can correct up to 1 bit error.
(e)
is a binary BCH code, whereas is a Hamming code. Thus can correct up to two bit errors (and detect up to four), but its rate is lower than the rate of .
(f)
- Use to derive the corresponding parity-check matrix .
- For the received word , calculate the syndrome .
- Under the assumption of at most two errors, use a syndrome table to find the unique error pattern of weight at most two. If no such pattern has that syndrome, report an uncorrectable error. With more than two errors, correct decoding is not guaranteed.
- Correct the error: .