{
  "format": "automata-studio/workspace",
  "schema": 1,
  "app": "dev",
  "machine": "TM",
  "config": {
    "sym": {
      "eps": "ε",
      "any": "Σ",
      "blank": "⊔",
      "leftMarker": "⊢",
      "rightMarker": "⊣",
      "stackBottom": "Z",
      "lambda": "λ"
    }
  },
  "sigma": [
    "0",
    "1",
    "#"
  ],
  "stackAlpha": [
    "0",
    "1",
    "#",
    "X",
    "⊔"
  ],
  "outputAlpha": [],
  "tapeCount": 1,
  "states": [
    {
      "id": "s1",
      "x": 140,
      "y": 208,
      "name": "uc"
    },
    {
      "id": "s2",
      "x": 319,
      "y": 255,
      "name": "ug0"
    },
    {
      "id": "s3",
      "x": 319,
      "y": 160,
      "name": "ug1"
    },
    {
      "id": "s4",
      "x": 498,
      "y": 255,
      "name": "uh0"
    },
    {
      "id": "s5",
      "x": 677,
      "y": 160,
      "name": "bu"
    },
    {
      "id": "s6",
      "x": 677,
      "y": 255,
      "name": "bd"
    },
    {
      "id": "s7",
      "x": 498,
      "y": 160,
      "name": "uh1"
    },
    {
      "id": "s8",
      "x": 856,
      "y": 160,
      "name": "bu2"
    },
    {
      "id": "s9",
      "x": 1035,
      "y": 208,
      "name": "dc"
    },
    {
      "id": "s10",
      "x": 1214,
      "y": 255,
      "name": "dg"
    },
    {
      "id": "s11",
      "x": 1214,
      "y": 160,
      "name": "dend"
    },
    {
      "id": "s12",
      "x": 1393,
      "y": 255,
      "name": "dh"
    },
    {
      "id": "s13",
      "x": 856,
      "y": 255,
      "name": "bd2"
    },
    {
      "id": "s14",
      "x": 1393,
      "y": 160,
      "name": "acc"
    }
  ],
  "transitions": [
    {
      "id": "t1",
      "from": "s1",
      "to": "s1",
      "symbol": "X",
      "write": "X",
      "dir": "R"
    },
    {
      "id": "t2",
      "from": "s1",
      "to": "s2",
      "symbol": "0",
      "write": "X",
      "dir": "R"
    },
    {
      "id": "t3",
      "from": "s1",
      "to": "s3",
      "symbol": "1",
      "write": "X",
      "dir": "R"
    },
    {
      "id": "t4",
      "from": "s2",
      "to": "s2",
      "symbol": "0",
      "write": "0",
      "dir": "R"
    },
    {
      "id": "t5",
      "from": "s2",
      "to": "s2",
      "symbol": "1",
      "write": "1",
      "dir": "R"
    },
    {
      "id": "t6",
      "from": "s2",
      "to": "s4",
      "symbol": "#",
      "write": "#",
      "dir": "R"
    },
    {
      "id": "t7",
      "from": "s4",
      "to": "s4",
      "symbol": "X",
      "write": "X",
      "dir": "R"
    },
    {
      "id": "t8",
      "from": "s4",
      "to": "s5",
      "symbol": "0",
      "write": "X",
      "dir": "L"
    },
    {
      "id": "t9",
      "from": "s4",
      "to": "s6",
      "symbol": "1",
      "write": "X",
      "dir": "L"
    },
    {
      "id": "t10",
      "from": "s3",
      "to": "s3",
      "symbol": "0",
      "write": "0",
      "dir": "R"
    },
    {
      "id": "t11",
      "from": "s3",
      "to": "s3",
      "symbol": "1",
      "write": "1",
      "dir": "R"
    },
    {
      "id": "t12",
      "from": "s3",
      "to": "s7",
      "symbol": "#",
      "write": "#",
      "dir": "R"
    },
    {
      "id": "t13",
      "from": "s7",
      "to": "s7",
      "symbol": "X",
      "write": "X",
      "dir": "R"
    },
    {
      "id": "t14",
      "from": "s7",
      "to": "s5",
      "symbol": "1",
      "write": "X",
      "dir": "L"
    },
    {
      "id": "t15",
      "from": "s5",
      "to": "s5",
      "symbol": "0",
      "write": "0",
      "dir": "L"
    },
    {
      "id": "t16",
      "from": "s5",
      "to": "s5",
      "symbol": "1",
      "write": "1",
      "dir": "L"
    },
    {
      "id": "t17",
      "from": "s5",
      "to": "s5",
      "symbol": "X",
      "write": "X",
      "dir": "L"
    },
    {
      "id": "t18",
      "from": "s5",
      "to": "s8",
      "symbol": "#",
      "write": "#",
      "dir": "L"
    },
    {
      "id": "t19",
      "from": "s8",
      "to": "s8",
      "symbol": "0",
      "write": "0",
      "dir": "L"
    },
    {
      "id": "t20",
      "from": "s8",
      "to": "s8",
      "symbol": "1",
      "write": "1",
      "dir": "L"
    },
    {
      "id": "t21",
      "from": "s8",
      "to": "s1",
      "symbol": "X",
      "write": "X",
      "dir": "R"
    },
    {
      "id": "t22",
      "from": "s9",
      "to": "s9",
      "symbol": "X",
      "write": "X",
      "dir": "R"
    },
    {
      "id": "t23",
      "from": "s9",
      "to": "s10",
      "symbol": "0",
      "write": "X",
      "dir": "R"
    },
    {
      "id": "t24",
      "from": "s9",
      "to": "s10",
      "symbol": "1",
      "write": "X",
      "dir": "R"
    },
    {
      "id": "t25",
      "from": "s9",
      "to": "s11",
      "symbol": "#",
      "write": "#",
      "dir": "R"
    },
    {
      "id": "t26",
      "from": "s10",
      "to": "s10",
      "symbol": "0",
      "write": "0",
      "dir": "R"
    },
    {
      "id": "t27",
      "from": "s10",
      "to": "s10",
      "symbol": "1",
      "write": "1",
      "dir": "R"
    },
    {
      "id": "t28",
      "from": "s10",
      "to": "s12",
      "symbol": "#",
      "write": "#",
      "dir": "R"
    },
    {
      "id": "t29",
      "from": "s12",
      "to": "s12",
      "symbol": "X",
      "write": "X",
      "dir": "R"
    },
    {
      "id": "t30",
      "from": "s12",
      "to": "s6",
      "symbol": "0",
      "write": "X",
      "dir": "L"
    },
    {
      "id": "t31",
      "from": "s12",
      "to": "s6",
      "symbol": "1",
      "write": "X",
      "dir": "L"
    },
    {
      "id": "t32",
      "from": "s6",
      "to": "s6",
      "symbol": "0",
      "write": "0",
      "dir": "L"
    },
    {
      "id": "t33",
      "from": "s6",
      "to": "s6",
      "symbol": "1",
      "write": "1",
      "dir": "L"
    },
    {
      "id": "t34",
      "from": "s6",
      "to": "s6",
      "symbol": "X",
      "write": "X",
      "dir": "L"
    },
    {
      "id": "t35",
      "from": "s6",
      "to": "s13",
      "symbol": "#",
      "write": "#",
      "dir": "L"
    },
    {
      "id": "t36",
      "from": "s13",
      "to": "s13",
      "symbol": "0",
      "write": "0",
      "dir": "L"
    },
    {
      "id": "t37",
      "from": "s13",
      "to": "s13",
      "symbol": "1",
      "write": "1",
      "dir": "L"
    },
    {
      "id": "t38",
      "from": "s13",
      "to": "s9",
      "symbol": "X",
      "write": "X",
      "dir": "R"
    },
    {
      "id": "t39",
      "from": "s11",
      "to": "s11",
      "symbol": "X",
      "write": "X",
      "dir": "R"
    },
    {
      "id": "t40",
      "from": "s11",
      "to": "s14",
      "symbol": "⊔",
      "write": "⊔",
      "dir": "S"
    }
  ],
  "startId": "s1",
  "accepts": [
    "s14"
  ],
  "notes": [],
  "dividers": [],
  "blocks": [],
  "meta": {
    "title": "Which binary number is smaller? x#y",
    "blurb": "Two binary numbers of the same length; accept when the first is smaller. The machine compares them digit by digit from the most significant end, crossing off as it goes. The first difference decides the answer, but it keeps crossing in pairs after that, because the lengths still have to match.",
    "inputs": [
      {
        "w": "0#1",
        "expect": "accept"
      },
      {
        "w": "001#010",
        "expect": "accept"
      },
      {
        "w": "00#11",
        "expect": "accept"
      },
      {
        "w": "000011#110011",
        "expect": "accept"
      },
      {
        "w": "1#1",
        "expect": "reject"
      },
      {
        "w": "101#010",
        "expect": "reject"
      },
      {
        "w": "#0#11",
        "expect": "reject"
      },
      {
        "w": "#00011#110011",
        "expect": "reject"
      }
    ],
    "library": {
      "author": {
        "login": "thethinkmachine"
      },
      "license": "CC-BY-4.0",
      "tags": [
        "comparison",
        "binary-numbers",
        "zigzag"
      ],
      "difficulty": "intermediate"
    }
  }
}
