aidevnn / FastGoat

What C# can do for studying Finite Groups, quotient groups, semi-direct products, homomorphisms, automorphisms group, characters table, minimalistic rings and fields manipulations, polynomials factoring, fields extensions and many more...
MIT No Attribution
10 stars 1 forks source link

Issue with ±1 on many parameters for BCH codes #42

Closed aidevnn closed 10 months ago

aidevnn commented 10 months ago

When working on BCH codes using the Berlekamp Massey algorithm for decoding, everything is working well except for a minor issue with ±1 on many parameters such as the size of the word to encode, the degree of the syndrome polynomial, and the size of detected errors. Some comments and more relevant naming are also needed for better understanding.

For example in the below line, there is a confusion in the range for j. https://github.com/aidevnn/FastGoat/blob/ed70fea10925109ef8fe8c3338eaf9f3b934e731/FastGoat/Examples/BCHcodes.cs#L69-L76