Reed–Solomon error correction (BCH): encoder, decoder

Mariusz Najwer 29.09.2021

https://najwer23.github.io/

Intro

Reed–Solomon codes are a group of error-correcting codes that were introduced by Irving S. Reed and Gustave Solomon in 1960. They have many applications, the most prominent of which include consumer technologies such as MiniDiscs, CDs, DVDs, Blu-ray discs, QR codes, data transmission technologies such as DSL and WiMAX, broadcast systems such as satellite communications, DVB and ATSC, storage systems such as RAID 6, coding schemes used by NASA missions.

Credits: https://en.wikipedia.org/wiki/Reed%E2%80%93Solomon_error_correction

Encoding

Decoding

Used algorithms


It's possible to changing Galois Field $$\text{from GF(2^4) to GF(2^14)}$$

Time Encoding 0.005s

Time Decoding 0.007s

Time for finding primitive polynomial for $GF(2^9)$: 0.040s


Code: It's JavaScript :)
Github: https://github.com/najwer23/bch-code-js