{
  "slug": "gittins-index",
  "term": "Gittins index",
  "aliases": [
    "Gittins scheduling index"
  ],
  "definition": "The Gittins index scores an unfinished job by its best attainable ratio of completion probability to expected additional service before a stopping point.",
  "note": "Attained service a is time actually served, not wall-clock age. For ordinary jobs of unknown total service X, maximize P(X <= b | X > a) / E[min(X,b)-a | X > a] over b>a. Prefer the largest index; its reciprocal rank is minimized. [gittins-ordinary]\n\nSERPT instead minimizes E[X-a | X>a]. Gittins mean-response optimality concerns the stable preemptive M/G/1 model with known service distribution, not an arbitrary device or p99. [gittins-rank]\n\nIn Hesela's invented law, X is 1 ms with probability 9/10 or 100 ms otherwise. A fresh job has mean remaining 10.9 ms and index 0.9/ms; an unfinished job served for 90 ms has 10 ms remaining and index 0.1/ms. SERPT and Gittins therefore choose different jobs. The worksheet conditions on unfinished work at atoms and retains exact rational values. [hesela-gittins]",
  "status": "research",
  "advantages": [],
  "limitations": [],
  "related": [
    "shortest-remaining-processing-time",
    "service-time",
    "mean-residual-life"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-26",
  "citations": [
    {
      "id": "gittins-ordinary",
      "title": "Aalto and Scully. On the Gittins index for multistage jobs. Queueing Systems 102, 353-371 (2022), section 2, equation 1. DOI 10.1007/s11134-022-09760-z.",
      "url": "https://link.springer.com/article/10.1007/s11134-022-09760-z",
      "accessed": "2026-11-26"
    },
    {
      "id": "gittins-rank",
      "title": "Scully, Harchol-Balter and Scheller-Wolf. Simple Near-Optimal Scheduling for the M/G/1. PACM 4(1), Article 11 (2020), sections 2-2.1. DOI 10.1145/3379477.",
      "url": "https://ziv.codes/scully_simple_2020/scully_simple_2020.pdf",
      "accessed": "2026-11-26"
    },
    {
      "id": "hesela-gittins",
      "title": "Hesela: exact finite-support Gittins worksheet, conditional two-job example and independent direct-sum tests.",
      "url": "https://hesela.dev/research/gittins-index/README.txt",
      "accessed": "2026-11-26"
    }
  ],
  "provenance": [
    "Mathematical source synthesis and invented finite-support examples; no empirical storage measurements or general scheduling proof.",
    "Age-only, one-server model; no SSD interruption mechanism, switching overhead or multistage observations are inferred."
  ]
}
