The Hamming (4,7)-code is defined by means of the parity check matrix H and/or the generator matrix G, where
H = [0 0 0 1 1 1 1; 0 1 1 0 0 1 1; 1 0 1 0 1 0 1], G = [1 0 0 0 0 1 1; 0 1 0 0 1 0 1; 0 0 1 0 1 1 0; 0 0 0 1 1 1 1].
(a) Encode the vector u = (1 1 0 0);
(b) Decode the vectors v = (1 0 1 1 0 1 0) and w = (0 0 0 0 1 1 1).
(c) Find all strings of length 7 which are decoded to (1 1 0 0).