{
  "tag": "B5285R",
  "kind": "concept",
  "slug": "worst-case-analysis",
  "name": "Worst-case analysis",
  "aliases": [
    "worst-case running time"
  ],
  "area": "foundations/asymptotic-analysis",
  "level": "intro",
  "summary": "Bounds the running time over all inputs of a given size, giving a guarantee that holds for every input.",
  "prereqs": [
    "time-complexity",
    "input-size"
  ],
  "sources": [
    {
      "book": "isbn:9780262046305",
      "title": "Cormen, Leiserson, Rivest and Stein, Introduction to Algorithms, fourth edition",
      "locator": "Section 2.2"
    },
    {
      "book": "isbn:9780321573513",
      "title": "Robert Sedgewick and Kevin Wayne, Algorithms, fourth edition",
      "locator": "Section 1.4"
    },
    {
      "book": "isbn:9780321295354",
      "title": "Kleinberg and Tardos, Algorithm Design",
      "locator": "Chapter 2"
    },
    {
      "paper": "Daniel A. Spielman and Shang-Hua Teng, Smoothed analysis of algorithms: why the simplex algorithm usually takes polynomial time, Journal of the ACM 51 (2004)",
      "locator": "Introduction"
    }
  ],
  "see_also": [
    "best-case-analysis",
    "average-case-analysis",
    "amortized-vs-worst-case",
    "order-of-growth",
    "linear-search",
    "insertion-sort"
  ],
  "url": "https://algorithm.tamnd.com/worst-case-analysis/",
  "path": "nodes/foundations/asymptotic-analysis/worst-case-analysis",
  "status": {
    "slug": "worst-case-analysis",
    "h": {
      "level": 0,
      "max": 3,
      "label": "H0",
      "name": "no proof",
      "next": [
        "add a proof in proofs/ (06.5)"
      ]
    },
    "l": {
      "level": 0,
      "max": 4,
      "label": "L0",
      "name": "no Lean part",
      "next": [
        "name a Lean module in the lean field (07)"
      ]
    },
    "i": {},
    "v": {
      "level": 0,
      "max": 3,
      "label": "V0",
      "name": "none",
      "next": [
        "add viz/scene.ts or a figure (10)"
      ]
    },
    "w": {
      "level": 4,
      "max": 5,
      "label": "W4",
      "name": "complete",
      "next": [
        "a review of the text: no review record reviews/B5285R/text.yaml"
      ]
    }
  },
  "scene": false
}
