Coding Theory: A First Course

We are now ready to introduce linear codes and discuss some of their elementary properties.
A linear code C of length n over F q is a subspace of
.
The following are linear codes:
C = {( ?, ?, , ?): ? ? F q}. This code is often called a repetition code (refer also to Example 1.0.3).
( q = 2) C = {000 , 001 , 010 , 011}.
( q = 3) C = {0000 , 1100 , 2200 , 0001 , 0002 , 1101 , 1102 , 2201 , 2202}.
( q = 2) C = {000 , 001 , 010 , 011 , 100 , 101 , 110 , 111}.
Let C be a linear code in
.
(i) The dual code of C is C ?, the orthogonal complement of the subspace C of
.
(ii) The dimension of the linear code C is the dimension of C as a vector space over F q, i.e., dim( C).
Let C be a linear code of length n over F q . Then,
C = q dim( C ) , i.e., dim( C) = log q