{
  "tag": "5SRTPB",
  "kind": "problem",
  "slug": "sorting-problem",
  "name": "Sorting",
  "aliases": [
    "sort",
    "the sorting problem"
  ],
  "area": "sorting/comparison-sorts",
  "areas": [
    "sorting"
  ],
  "level": "intro",
  "summary": "Put the items of a sequence in non-decreasing order by a key.",
  "model": "comparison-model",
  "complexity": {
    "vars": {
      "n": "the number of items"
    },
    "time": {
      "worst": "Ω(n log n)"
    }
  },
  "sources": [
    {
      "book": "isbn:9780201896855",
      "title": "Donald E. Knuth, The Art of Computer Programming, Volume 3, second edition",
      "locator": "Chapter 5"
    },
    {
      "book": "isbn:9780262046305",
      "title": "Cormen, Leiserson, Rivest and Stein, Introduction to Algorithms, fourth edition",
      "locator": "Part II"
    }
  ],
  "url": "https://algorithm.tamnd.com/sorting-problem/",
  "path": "nodes/sorting/comparison-sorts/sorting-problem",
  "status": {
    "slug": "sorting-problem",
    "h": {
      "level": 0,
      "max": 3,
      "label": "",
      "name": "",
      "next": [
        "add a proof in proofs/ (06.5)"
      ]
    },
    "l": {
      "level": 0,
      "max": 4,
      "label": "",
      "name": "",
      "next": [
        "name a Lean module in the lean field (07)"
      ]
    },
    "i": {},
    "v": {
      "level": 0,
      "max": 3,
      "label": "",
      "name": "",
      "next": [
        "add viz/scene.ts or a figure (10)"
      ]
    },
    "w": {
      "level": 0,
      "max": 5,
      "label": "",
      "name": "",
      "next": [
        "the lead paragraph"
      ]
    }
  },
  "scene": false
}
