Description: Encoding and decoding of cyclic codes (to support an error-correction)
Coding (n, k adjustable)
Test Case 1:
input: n = 7 k = 3 g = 11 101 m = 101
output: 1,010,011
input: n = 7 k = 3 g = 11 101 m = 010
output: 0,100,111
Test Case 2:
input: n = 7 k = 4 g = 1011 m = 1101
output: 1101001
input: n = 7 k = 4 g = 1011 m = 1010
output: 1,010,011
Decoding (translation of a wrong)
Test Case 1:
input: n = 7 k = 3 g, = 11 101 r = 0.10011 million
Error-correcting output,: 0,100,111
input: n = 7 k = 3 g, = 11 101 r = 1,110,011
Error-correcting output,: 1,010,011
Test Case 2:
input: n = 7 k = 4 g, = 1011 r = 1,110,011
Error-correcting output,: 1,010,011
input: n = 7 k = 4 g, = 1011 r = 1,111,001
Error-correcting output,: 1,101,001
To Search:
File list (Check if you may need any files):
CRC.cpp