Construct a generator matrix and a parity check matrix for a
ternary Hamming code Ham(2, 3).
Assume a codeword x from for the ternary Hamming code Ham(2, 3)$
was sent and the word y was received. Use the partiy check matrix
you constructed in part (a) to decode y in each part
using syndrome decoding:
(b) y = ( 1 , 1 , 1 , 0 ),
(c) y = ( 2 , 2 , 2 , 2 ),
(d)...