Reed-Muller shall be abbreviated RM.
The
RM code over
having generator matrix
C:=ReedMullerCode(1,3); G:=GeneratorMat(C);(Use
Display(G); to see G if necessary.)
Encoding a message Elements(C); Size(Elements(C));
From this, you see all the codewords of C and how many there are.
To get the parity check matrix, type
H:=CheckMat(C);
To see if a vector in
is a codeword,
simply compute
and check if it is zero or not.
Here's a GAP example:
v:=Codeword([1,0,0,0,0,0,0,0]); v in C;
Since this last vector is non-zero,
is not a codeword.
If it was a vector received in transmission
(with at least one error) then to decode it,
hence to find the most likely codeword
sent, type
Decode(C,v);
(b) Find a parity check matrix of the
RM code of length
.
Verify
for three or four codewords
.
Decode
.
To get the dimension of the code, type
Dimension(C); To get its
minimum distance, type MinimumDistance(C);