Error Correction Studio
An interactive digital communications lab. Compare Hamming(7,4), repetition codes and raw transmission; inject random or burst errors; measure recovery, overhead, BER and CRC integrity.
01 · Message & code design
UTF-8 text becomes bits; original length is preserved to remove byte padding.
02 · Transmission metrics
Payload rate, redundancy, errors introduced, corrected bits and end-to-end integrity.
Recovered message
03 · Bitstream microscope
Compare source, encoded, damaged and decoded bit sequences.
04 · Monte Carlo experiment
Repeat the current setup across independent random trials.
05 · BER sweep & coding comparison
Compare residual BER at multiple channel noise levels using repeated trials.
06 · Reed–Solomon lab (GF(2⁸), byte symbols)
The code behind QR codes, CDs and deep-space links. Encode, damage whole bytes (errors at unknown places, erasures at known places), then decode with Berlekamp–Massey, Chien search and Forney. Guaranteed when 2·errors + erasures ≤ parity bytes.
Protect or repair a file
07 · Code shootout: convolutional + Viterbi vs block codes
Uncoded, repetition ×3, Hamming(7,4), and rate-½ convolutional codes (K=3 octal 7,5 and K=7 octal 171,133) with hard-decision Viterbi decoding, over a binary symmetric channel. Compared per channel bit-flip probability, so lower-rate codes spend more bandwidth.
08 · Interleaving vs burst errors
Hamming(7,4) fixes one error per codeword, so a burst kills it. A block interleaver spreads the burst over many codewords. Uses the message from panel 01.
09 · Checksum & CRC lab
Common CRCs with published check values, Adler-32, Fletcher-16 and the Internet checksum; plus a test of how many corruptions each one misses.
10 · SECDED: extended Hamming, any size
Single-error-correct, double-error-detect (as in ECC memory). Choose the number of parity bits r: n = 2ʳ, k = 2ʳ − r − 1. (8,4), (16,11), (32,26), (64,57), (128,120).