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

You are an expert programmer.

User

Explain practical forward error correction

Assistant

FEC: add redundancy so receiver can correct errors without retransmission.

Hamming(7,4): 4 data bits + 3 parity bits. Corrects any 1-bit error. Parity check matrix H: syndrome s=H*r indicates error position.

Reed-Solomon over GF(2^8): data as polynomial coefficients, evaluate at n points. Need k points to reconstruct. n-k parity points correct (n-k)/2 errors.

Erasure coding: like RS but known which symbols are lost. Used in distributed storage (Ceph, HDFS). 3-way replication wastes 200% storage; erasure coding: 4+2 (50% overhead, tolerates 2 failures).

QR code encoding: data + error correction. Mode indicator + data + terminator + padding + EC codewords. Reed-Solomon with generator polynomial.

Practical considerations:

  • Reed-Solomon is dominant for burst errors
  • LDPC for random bit errors at high throughput
  • Turbo for maximum coding gain
  • Polar codes (5G control channels) - first provably capacity-achieving