Tutorial Activity 1 Suggested Solutions
Tutorial Activity 1 Suggested Solutions
1
1
S1 (11011) =
S1 (11100) =
S1 (00111) =
(e) Do any of the balls S1 (00000), S1 (11011), S1 (11100), S1 (00111) intersect? If yes, produce two balls
that intersect. No.
(f) If r = 2, will the balls intersect? If yes, produce two balls that intersect. If not, explain why.
Any 2 balls from S2 (00000), S2 (11011), S2 (11100), S2 (00111) will intersect e.g.
S2 (11011) = {11011, 11010, 11001, 11111, 10011, 01011, 11000, 11110, 10010, 01010,
11101, 10001, 01001, 10111, 01111, 00011}
S2 (11100) = {11100, 11101, 11110, 11000, 10100, 01100, 11111, 11001, 10101, 01101,
11010, 10110, 01110, 10000, 01000, 00100}
(g) Using Qn 1(f), provide a pair of sent codeword and received word such that the Minimum Distance
Decoding produces a codeword different from the sent codeword. Fill up the boxes with your
answers.
Multiple answers where received word is at least distance 2 from the sent codeword are
possible. One example given,
Question 2. Let the code C2 = {000000, 001101, 010011, 011110, 100110, 101011, 110101, 111000}.
3
(d) Given that y = 100101 is received, perform Minimum Distance Decoding to decode the sent codeword.
Decoded codeword :
dH (x, y)
000000
100101
001101
100101
010011
100101
011110
100101
100110
100101
101011
100101
110101
100101
111000
100101
110101
Question 3. Can a code of length 5, distance 3 with 6 codewords exist? If yes, find this code. If not,
explain why.
By the Sphere-packing upper bound, the size of a code of length 5 and distance 3 is at most
2n
V (5,1)
32
6
1
1
S1 (01010) =
S1 (01101) =
S1 (10110) =
(e) Do any of the balls S1 (10001), S1 (01010), S1 (01101), S1 (10110) intersect? If yes, produce two balls
that intersect. No.
(f) If r = 2, will the balls intersect? If yes, produce two balls that intersect. If not, explain why.
Any 2 balls from S2 (10001), S2 (01010), S2 (01101), S2 (10110) will intersect e.g.
S2 (01010) = {01010, 01011, 01000, 01110, 00010, 11010, 01001, 01111, 00011, 11011,
01100, 00000, 11000, 00110, 11110, 10010}
S2 (01101) = {01101, 01100, 01111, 01001, 00101, 11101, 01110, 01000, 00100, 11100,
01011, 00111, 11111, 00001, 11001, 10101}
(g) Using Qn 1(f), provide a pair of sent codeword and received word such that the Minimum Distance
Decoding produces a codeword different from the sent codeword. Fill up the boxes with your
answers.
Multiple answers where received word is at least distance 2 from the sent codeword are
possible. One example given,
Question 2. Let the code C2 = {000000, 101001, 011010, 110011, 110100, 011101, 101110, 000111}.
3
(d) Given that y = 101100 is received, perform Minimum Distance Decoding to decode the sent codeword.
Decoded codeword :
dH (x, y)
000000
101100
101001
101100
011010
101100
110011
101100
110100
101100
011101
101100
101110
101100
000111
101100
101110
Question 3. Can a code of length 5, distance 3 with 6 codewords exist? If yes, find this code. If not,
explain why.
By the Sphere-packing upper bound, the size of a code of length 5 and distance 3 is at most
2n
V (5,1)
32
6
1
1
S1 (10101) =
S1 (10010) =
S1 (01001) =
(e) Do any of the balls S1 (01110), S1 (10101), S1 (10010), S1 (01001) intersect? If yes, produce two balls
that intersect. No.
(f) If r = 2, will the balls intersect? If yes, produce two balls that intersect. If not, explain why.
Any 2 balls from S2 (01110), S2 (10101), S2 (10010), S2 (01001) will intersect e.g.
S2 (10101) = {10101, 10100, 10111, 10001, 11101, 00101, 10110, 10000, 11100, 00100,
10011, 11111, 00111, 11001, 00001, 01101}
S2 (10010) = {10010, 10011, 10000, 10110, 11010, 00010, 10001, 10111, 11011, 00011,
10100, 11000, 00000, 11110, 00110, 01010}
(g) Using Qn 1(f), provide a pair of sent codeword and received word such that the Minimum Distance
Decoding produces a codeword different from the sent codeword. Fill up the boxes with your
answers.
Multiple answers where received word is at least distance 2 from the sent codeword are
possible. One example given,
Question 2. Let the code C2 = {000000, 110100, 001101, 111001, 011010, 101110, 010111, 100011}.
3
(d) Given that y = 010110 is received, perform Minimum Distance Decoding to decode the sent codeword.
Decoded codeword :
dH (x, y)
000000
010110
110100
010110
001101
010110
111001
010110
011010
010110
101110
010110
010111
010110
100011
010110
010111
Question 3. Can a code of length 5, distance 3 with 6 codewords exist? If yes, find this code. If not,
explain why.
By the Sphere-packing upper bound, the size of a code of length 5 and distance 3 is at most
2n
V (5,1)
32
6