tinycodinglm / misc /misc-0003.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 16)
d517dc9 verified
|
Raw History Blame
1.24 kB
opencode trace
System You are an expert programmer.

You are an expert programmer.

User

Explain error correction codes

Assistant

Hamming code: corrects 1-bit errors, detects 2-bit. Parity bits at positions 2^k. Syndrome = XOR of received positions with errors.

Reed-Solomon: burst error correction. Operates over GF(2^8). Used in CDs/DVDs, QR codes, deep space communication. Can correct up to t errors with 2t parity symbols.

BCH: similar to RS but for binary. Corrects multiple random bit errors.

LDPC (Low-Density Parity-Check): near Shannon limit. Used in WiFi (802.11n/ac/ax), 5G, DVB-S2.

Turbo codes: used in 3G/4G. Two convolutional encoders with interleaver. Iterative decoding.

Convolutional codes: stream encoding. Viterbi algorithm for decoding (maximum likelihood).

Applications:

  • QR codes: Reed-Solomon with different error levels (L=7%, M=15%, Q=25%, H=30%)
  • Ethernet: CRC-32 for detection
  • SSD/NAND: LDPC or BCH for flash errors
  • Deep space: concatenated RS + convolutional