{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "114KYR2JGP"
    }
  ],
  "body": "\n## Summary\n\nA median algebra is a set with a ternary operation $\\langle x, y, z \\rangle$ that behaves like the median of three numbers.\nEvery [[distributive lattice|0HM0HQCK6N]] is a median algebra with $\\langle x, y, z \\rangle = (x \\wedge y) \\vee (y \\wedge z) \\vee (z \\wedge x)$.\nThe vertex sets of median graphs, such as trees and hypercubes, are median algebras.\nThere $\\langle x, y, z \\rangle$ is the unique vertex lying on shortest paths between each pair of the three vertices.\nMedian algebras give a common language for distributive lattices, median graphs and some structures of geometric group theory.\n\n## Explanations\n\n### L1 human\n\nGiven three real numbers, the median is the one in the middle.\nIt does not depend on the order of the three numbers, and if two of them are equal, the median is that repeated value.\nA median algebra keeps these rules and one more, and forgets everything else about numbers.\nIn a tree, the median of three vertices is the point where the three paths between them meet.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "06D99",
      "08A99",
      "05C12"
    ],
    "name": "Median algebra",
    "same_as": {
      "wikidata": "Q6806108",
      "wikipedia": "Median algebra"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Median_algebra"
      }
    ],
    "tag": "DN7VSSDYPQ"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/DN7VSSDYPQ/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/DN7VSSDYPQ.md",
  "msc": [
    "06D99",
    "08A99",
    "05C12"
  ],
  "name": "Median algebra",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/DN7/DN7VSSDYPQ.md",
  "status": null,
  "tag": "DN7VSSDYPQ",
  "uri": "m2://DN7VSSDYPQ",
  "url": "https://tamnd.github.io/math2/wiki/median-algebra/",
  "writing": {
    "tag": "DN7VSSDYPQ",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
