{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $G$ be a finite [[connected|0FFAYNMAJZ]] [[graph|0JD5C82QMB]] with edge set $E$, and let $w : E \\to \\mathbb{R}$ be a weight function.\nThe weight of a subgraph is the sum of the weights of its edges.\nA minimum spanning tree of $(G, w)$ is a [[spanning tree|0FQ5B8S1ZC]] of $G$ whose weight is the smallest among all spanning trees of $G$.\n\n## Remarks\n\nA minimum spanning tree exists, because a finite graph has finitely many spanning trees. It is unique when all weights are distinct.\nKruskal's algorithm and Prim's algorithm find a minimum spanning tree with greedy choices.\n\n## Explanations\n\n### L1 human\n\nSuppose that each road between towns has a cost to build.\nA minimum spanning tree is the cheapest set of roads that links all towns.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0JW7KT6PQW",
    "kind": "definition",
    "msc": [
      "05C05"
    ],
    "name": "Minimum spanning tree",
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Minimum_spanning_tree"
      }
    ],
    "tag": "0Z367CGNRM",
    "uses": [
      "0FQ5B8S1ZC"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0Z367CGNRM/",
  "links": [
    {
      "field": "defines",
      "target": "0JW7KT6PQW"
    },
    {
      "field": "uses",
      "target": "0FQ5B8S1ZC"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0Z367CGNRM.md",
  "msc": [
    "05C05"
  ],
  "name": "Minimum spanning tree",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0Z3/0Z367CGNRM.md",
  "status": null,
  "tag": "0Z367CGNRM",
  "uri": "m2://0Z367CGNRM",
  "url": "https://math2.tamnd.com/wiki/minimum-spanning-tree-definition/",
  "writing": {
    "tag": "0Z367CGNRM",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
