{
  "slug": "zigzag-code",
  "term": "Zigzag code",
  "aliases": [
    "Zigzag array code"
  ],
  "definition": "A Zigzag code is an MDS array code whose permuted parity groups let systematic nodes be rebuilt by reading selected portions of surviving nodes.",
  "note": "Structure: Row and permuted parity groups overlap during repair, so the same helper symbol serves more than one equation. Field coefficients preserve the MDS property. This is unrelated to signed-integer ZigZag encoding. [zigzag]\n\nExample: The (4,2) array in Figure 1 stores D0=(a,c), D1=(b,d), R=(a+b,c+d) and Z=(a+2d,c+b), modulo 3. Rebuilding D0 reads b and the first row-parity and second zigzag-parity symbols: three of six surviving symbols. All three surviving nodes participate. [zigzag]\n\nDenominators: Three reads are half the surviving array, 1.5 times the two-symbol output, and 25% fewer than reading all four source symbols. Exhaustive checks of 81 messages and 256 access sets find minima of three reads for either data node and four for either parity node in this example. [audit]\n\nBoundary: The systematic-node optimum does not establish parity-node optimality. A separate construction treats all-node optimal access. Logical symbol counts do not establish physical read size or elapsed repair time. [all-node] [audit]",
  "related": [
    "optimal-access-repair",
    "subpacketization",
    "maximum-distance-separable-code",
    "repair-read-amplification"
  ],
  "status": "research",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-23",
  "citations": [
    {
      "id": "zigzag",
      "title": "Tamo, Wang and Bruck. Zigzag Codes: MDS Array Codes with Optimal Rebuilding. arXiv:1112.0371v1, Figure 1 and sections I-II.",
      "url": "https://arxiv.org/pdf/1112.0371v1",
      "accessed": "2026-11-23"
    },
    {
      "id": "all-node",
      "title": "Wang, Tamo and Bruck. On Codes for Optimal Rebuilding Access. Sections II-III.",
      "url": "https://www.paradise.caltech.edu/papers/etr111.pdf",
      "accessed": "2026-11-23"
    },
    {
      "id": "audit",
      "title": "Hesela: exact GF(3) Zigzag repair-access census, all-message controls and denominator comparison.",
      "url": "https://hesela.dev/research/zigzag-access/README.txt",
      "accessed": "2026-11-23"
    },
    {
      "id": "reading",
      "title": "Hesela: Local repair is not whole-node repair",
      "url": "https://hesela.com/analyses/lrc-repair-costs-locality/",
      "accessed": "2026-11-23"
    }
  ],
  "provenance": [
    "Journal metadata verified separately: IEEE Transactions on Information Theory 59(3), 1597-1616, 2013; DOI 10.1109/TIT.2012.2227110. The finite example follows the pinned 2011 preprint, not an assumed identical journal figure.",
    "Figure 1 visually inspected and sections I-II reviewed. The independent truth-table test checks every source message for every unchanged-symbol access set; it does not optimize helper-side recoding.",
    "Research status describes the cited coding construction, not evidence of a deployed product. No throughput, failure probability or device-latency measurement is reported."
  ]
}
