1.
Create the (binary) Golay code with the
codes.GolayCode()
constructor. Read the documentation to be sure you build the binary version (not ternary), and do not build the extended version (which is the default).- Use Sage methods to compute the length, dimension and minimum distance of the code.
- How many errors can this code detect? How many can it correct?
- Find a nonzero codeword and introduce three errors by adding a vector with three 1’s (your choice) to create a received message. Show that the message is decoded properly.
- Recycle your choices from the previous part, but now add one more error. Does the new received message get decoded properly?