tinycodinglm / misc /misc-0003.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 16)
d517dc9 verified
|
Raw History Blame
1.24 kB
{"type": "session", "harness": "opencode", "id": "misc-0003", "name": "Error Correction Codes"}
{"type": "message", "message": {"role": "system", "content": "You are an expert programmer."}}
{"type": "message", "message": {"role": "user", "content": "Explain error correction codes"}}
{"type": "message", "message": {"role": "assistant", "content": "Hamming code: corrects 1-bit errors, detects 2-bit. Parity bits at positions 2^k. Syndrome = XOR of received positions with errors.\n\nReed-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.\n\nBCH: similar to RS but for binary. Corrects multiple random bit errors.\n\nLDPC (Low-Density Parity-Check): near Shannon limit. Used in WiFi (802.11n/ac/ax), 5G, DVB-S2.\n\nTurbo codes: used in 3G/4G. Two convolutional encoders with interleaver. Iterative decoding.\n\nConvolutional codes: stream encoding. Viterbi algorithm for decoding (maximum likelihood).\n\nApplications:\n- QR codes: Reed-Solomon with different error levels (L=7%, M=15%, Q=25%, H=30%)\n- Ethernet: CRC-32 for detection\n- SSD/NAND: LDPC or BCH for flash errors\n- Deep space: concatenated RS + convolutional"}}