{
  "tag": "9CMPMD",
  "kind": "model",
  "slug": "comparison-model",
  "name": "Comparison model",
  "aliases": [
    "decision tree model",
    "comparison-based model"
  ],
  "area": "foundations/models-of-computation",
  "level": "intro",
  "summary": "A model where an algorithm learns about its input only by comparing two items. The cost is the number of comparisons.",
  "sources": [
    {
      "book": "isbn:9780262046305",
      "title": "Cormen, Leiserson, Rivest and Stein, Introduction to Algorithms, fourth edition",
      "locator": "Section 8.1"
    },
    {
      "book": "isbn:9780201896855",
      "title": "Donald E. Knuth, The Art of Computer Programming, Volume 3, second edition",
      "locator": "Section 5.3.1"
    }
  ],
  "url": "https://algorithm.tamnd.com/comparison-model/",
  "path": "nodes/foundations/models-of-computation/comparison-model",
  "status": {
    "slug": "comparison-model",
    "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
}
