Can somebody please explain to me how the generator matrix is obtained when we are given the codewords of the binary code in the examples attached.
I tried arranging the codes in a matrix with each row being a codeword , I then reduced to row echelon form and hence found basis of the code. I then Tried to construct the generator matrix using the basis but it does not work out. Please help!
$C_1$ is a $2$-dimensional vector space over the finite field $\mathbb{F}_2$ with basis $e_1=(0,1),e_2=(1,0)$. So we have $C_1=\{\lambda e_1+\mu e_2\mid \lambda,\mu\in \mathbb{F}_2\}=\{(0,0),(1,0),(0,1),(1,1)\}$. Of course the generator matrix $G$ is formed by $e_1$ and $e_2$, which is the canonical basis for the linear code $C_1$.