{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "017SRZ7NE9"
    }
  ],
  "body": "\n## Definition\n\nA Dyck word is a finite word $w$ over the two-letter alphabet $\\{U, D\\}$ with these two properties.\nThe word $w$ has as many letters $U$ as letters $D$.\nEach prefix of $w$ has at least as many letters $U$ as letters $D$.\n\nThe semilength of a Dyck word is its number of letters $U$, which is half its length.\n\n## Remarks\n\nOther common alphabets are $\\{(, )\\}$ and $\\{[, ]\\}$. Then the Dyck words are the balanced strings of brackets.\nThe Dyck words of semilength $2$ are $UUDD$ and $UDUD$.\nRead $U$ as a step $(1, 1)$ and $D$ as a step $(1, -1)$. A Dyck word is then a [[lattice path|040WY0TT2G]] from $(0, 0)$ to $(2n, 0)$ that never goes below the horizontal axis.\nThe Dyck words of semilength $n$ are [[counted by the Catalan number|017SRZ7NE9]] $C_n$.\n\n## Explanations\n\n### L1 human\n\nA Dyck word is a correct sequence of opening and closing brackets.\nThe sequence $(()())$ is a Dyck word, but $())($ is not, because after three symbols there are more closing than opening brackets.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0YTJ3RN3GE",
    "kind": "definition",
    "msc": [
      "68Q45"
    ],
    "name": "Dyck word",
    "sources": [
      {
        "locator": "Formal definition",
        "url": "https://en.wikipedia.org/wiki/Dyck_language"
      }
    ],
    "tag": "0R9JR0465V"
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0R9JR0465V/",
  "links": [
    {
      "field": "defines",
      "target": "0YTJ3RN3GE"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0R9JR0465V.md",
  "msc": [
    "68Q45"
  ],
  "name": "Dyck word",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0R9/0R9JR0465V.md",
  "status": null,
  "tag": "0R9JR0465V",
  "uri": "m2://0R9JR0465V",
  "url": "https://math2.tamnd.com/wiki/dyck-word-definition/",
  "writing": {
    "tag": "0R9JR0465V",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
