{
  "aliases": null,
  "backlinks": [
    {
      "field": "instance_of",
      "target": "SM1TJSAR75"
    },
    {
      "field": "defines",
      "target": "X122TKFP9G"
    }
  ],
  "body": "\n## Summary\n\nAn error-correcting code is a set of words of fixed length, the codewords, chosen far apart from each other in Hamming distance.\nA message is sent as a codeword; if a few symbols are corrupted on the way, the receiver still finds the nearest codeword.\nA code whose codewords are at distance at least $2t + 1$ from each other corrects any $t$ errors.\nCodes link combinatorics with algebra: good codes come from [[block designs|4JCSS2Z1BA]], [[Hadamard matrices|J0N4J606X0]] and finite fields.\nThe node [[error-correcting code|X122TKFP9G]] gives the precise definition.\n\n## Explanations\n\n### L1 human\n\nSuppose you send one bit, but noise may flip it.\nSend it three times instead: $000$ for $0$ and $111$ for $1$.\nIf the receiver gets $010$, the most likely message is $0$, since only one bit had to flip.\nThis is the repetition code; it corrects one error at the price of sending three times as much.\nBetter codes, such as the Hamming code, correct errors at a much lower price.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "kind": "concept",
    "msc": [
      "94B25",
      "94B05"
    ],
    "name": "Error-correcting code",
    "same_as": {
      "wikidata": "Q55611017",
      "wikipedia": "Error correction code"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Error_correction_code"
      }
    ],
    "tag": "TAE6K8NQ46"
  },
  "kind": "concept",
  "link": "https://math2.tamnd.com/node/TAE6K8NQ46/",
  "links": null,
  "markdown": "https://math2.tamnd.com/node/TAE6K8NQ46.md",
  "msc": [
    "94B25",
    "94B05"
  ],
  "name": "Error-correcting code",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/TAE/TAE6K8NQ46.md",
  "status": null,
  "tag": "TAE6K8NQ46",
  "uri": "m2://TAE6K8NQ46",
  "url": "https://math2.tamnd.com/wiki/error-correcting-code/",
  "writing": {
    "tag": "TAE6K8NQ46",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
