I am confused about how to represent numbers when constructing a parity check matrix for a $\operatorname{ham}(3,3)$ code.
I know that the dimension of a $\operatorname{ham}(r,q)$ matrix is $k=n-r$ and $\operatorname{ham}(r,q)$ is an $[n,n-r,3]$-code with $r\geq 2$.
We have $n= \dfrac{q^r-1}{q-1}=\dfrac{3^3-1}{3-1}=13$,
and $k=n-r=13-3=10$
So the matrix will have 13 columns and 3 rows. I have the solution as this is a past exam question, but I do not understand how they got the columns as they did. I am assuming instead of usual binary representation with is base 2, it is base 3, but I dont know what this is called and have searched google and I am none the wiser. The columns need to be represented in lexicographical order.
$H= \left( \begin{array}{ccc} 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\ 0 & 1 & 1 & 1 & 0 & 0 & 0 & 1 & 1 & 1 & 2 & 2 & 2 \\ 1 & 0 & 1 & 2 & 0 & 1 & 2 & 0 & 1 & 2 & 0 & 1 & 2 \end{array} \right) $
which is a 13 by 3 matrix with columns in lexicographical order.
If this was in field $F_2$ then I would able to work the columns out as they would be the numbers 1-13 written in binary representation.
However, they are not as I dont understand what the base is and how they get the twos. Please help explain how this is done.
Any help much appreciated. Please write in plain English as I am new to coding theory.
Thanks
The columns are ternary vectors, that is, elements from the vector space $\mathbb{F}_3^3$. In a Ham$(3,q)$ code, the $q$ represents the size of the finite field you are working with, which is why in your case you are seeing ternary vectors.