Professional Documents
Culture Documents
Homework#02 2005/2
Solution of Homework#02
(1) Write your student ID in the following codes: BCD, 2421, Excess-3, biquinary,
and 1-out-of 10
My student ID = 40360430
BCD = 0100 0000 0011 0110 0000 0100 0011 0000
2421 = 0100 0000 0011 1100 0000 0100 0011 0000
Excess-3 = 0111 0011 0110 1001 0011 0111 0110 0011
Biquinary = 0110000 0100001 0101000 1000010 01000001 0110000
0101000 0100001
1-out-of 10 = 0000100000 1000000000 0001000000 0000001000
1000000000 0000100000 0001000000 1000000000
(3) List all of the “bad” boundaries in the mechanical encoding disk of figure below,
where an incorrect position may be sensed.
(5) Write the self-study report from one of the following topics.
- Thai characters coding
- CRC codes
No solution
(7) How many errors can be detected by a code with minimum distance n?
n-1 bit error can be detected
(8) Define parity groups for a distance-3 Hamming code with 11 information bits
11 information bits = 2i – 1 – i bits
2i = 11 + 1 + i
i = 4 bits
Thus, 4 parity bits used
Parity bits = position 1, 2, 4, and 8
Information bits = remaining position
(10) The rate of code is the ratio of the number of information bits to the total number
of bits in a code word. High rates, approaching 1, are desirable for efficient
transmission of information. Construct a graph comparing the rate of distance-2 parity
codes and distance-3 and -4 Hamming codes using the following numbers of
information bits: 1, 4, 11, 16, 57, 120, 247, 502, and 1013
0.8000
0.6000
0.4000
0.2000
0.0000 1 4 11 16 57 120 247 502 1013
Distance-2 parity codes 0.5000 0.8000 0.9167 0.9412 0.9828 0.9917 0.9960 0.9980 0.9990
Distance-3 Hamming codes 0.3333 0.5714 0.7333 0.7619 0.9048 0.9449 0.9686 0.9824 0.9902
Distance-4 Hamming codes 0.2500 0.5000 0.6875 0.7273 0.8906 0.9375 0.9648 0.9805 0.9893