京都大学 情報学研究科 通信情報システム専攻 2021年8月実施 専門基礎A [A-5]
Author
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 .
Kai
(1)
(a)
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)
has more parity bits compared to . Therefore, can detect and correct more errors, but its coding efficiency (rate) is lower than .
(f)
- Use to derive the corresponding parity-check matrix .
- Calculate the syndrome .
- Use a pre-calculated error mapping table or a decoding algorithm (like Meggitt decoding) to find the error pattern corresponding to the syndrome .
- Correct the error: .