Share
Explore BrainMass

Parity check code-Generating matrix

I need help with writing a program that will generate message words (in 0's and 1's) and then compute the code words (in 0's and 1's).

Ex:
Generating Matrix for the (3,4) Parity check code:
100 1
010 1
001 1

derived from using the identity matrix and then solving for x,y,z in the 4th column

Message words Code words
000 0000
001 0011
010 0101
011 0110
100 1001
101 1010
110 1100
111 1111

Attachments

Solution Preview

The answer is attached. I have written a program in c++ ; I have used borland c++ ...

$2.19