{
  "tag": "RF1AVH",
  "kind": "definition",
  "slug": "space-complexity",
  "name": "Space complexity",
  "aliases": [
    "memory complexity",
    "working space"
  ],
  "area": "foundations/asymptotic-analysis",
  "level": "intro",
  "summary": "The function giving the amount of memory an algorithm uses as a function of input size.",
  "prereqs": [
    "input-size",
    "asymptotic-notation"
  ],
  "sources": [
    {
      "book": "isbn:9780262046305",
      "title": "Cormen, Leiserson, Rivest and Stein, Introduction to Algorithms, fourth edition",
      "locator": "Chapter 2 (Section 2.3, merge sort) and Chapter 7 (quicksort, stack depth)"
    },
    {
      "book": "isbn:9780201896855",
      "title": "Donald E. Knuth, The Art of Computer Programming, Volume 3, second edition",
      "locator": "Section 5.2.2 (sorting by exchanging, stack size of quicksort) and Section 5.2.3 (heapsort)"
    },
    {
      "book": "isbn:9781133187790",
      "title": "Michael Sipser, Introduction to the Theory of Computation, third edition",
      "locator": "Chapter 8 (Space Complexity)"
    },
    {
      "book": "isbn:9780521424264",
      "title": "Sanjeev Arora and Boaz Barak, Computational Complexity: A Modern Approach",
      "locator": "Chapter 4 (Space complexity)"
    }
  ],
  "see_also": [
    "time-complexity",
    "in-place-algorithm",
    "word-ram",
    "recursion",
    "logspace",
    "pspace",
    "merge-sort",
    "quicksort"
  ],
  "url": "https://algorithm.tamnd.com/space-complexity/",
  "path": "nodes/foundations/asymptotic-analysis/space-complexity",
  "status": {
    "slug": "space-complexity",
    "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/RF1AVH/text.yaml"
      ]
    }
  },
  "scene": false
}
