{
  "format": "automata-studio/workspace",
  "schema": 1,
  "app": "dev",
  "machine": "DFA",
  "config": {
    "sym": {
      "eps": "ε",
      "any": "Σ",
      "blank": "⊔",
      "leftMarker": "⊢",
      "rightMarker": "⊣",
      "stackBottom": "Z",
      "lambda": "λ"
    }
  },
  "sigma": [
    "0",
    "1"
  ],
  "stackAlpha": [],
  "outputAlpha": [],
  "tapeCount": 1,
  "states": [
    {
      "id": "s1",
      "x": 140,
      "y": 208,
      "name": "s"
    },
    {
      "id": "s2",
      "x": 319,
      "y": 160,
      "name": "yes"
    },
    {
      "id": "s3",
      "x": 319,
      "y": 255,
      "name": "no"
    }
  ],
  "transitions": [
    {
      "id": "t1",
      "from": "s1",
      "to": "s2",
      "symbol": "0"
    },
    {
      "id": "t2",
      "from": "s1",
      "to": "s3",
      "symbol": "1"
    },
    {
      "id": "t3",
      "from": "s2",
      "to": "s3",
      "symbol": "0"
    },
    {
      "id": "t4",
      "from": "s2",
      "to": "s3",
      "symbol": "1"
    },
    {
      "id": "t5",
      "from": "s3",
      "to": "s2",
      "symbol": "0"
    },
    {
      "id": "t6",
      "from": "s3",
      "to": "s2",
      "symbol": "1"
    }
  ],
  "startId": "s1",
  "accepts": [
    "s2"
  ],
  "notes": [],
  "dividers": [],
  "blocks": [],
  "meta": {
    "title": "Starts with 0 and has odd length, or starts with 1 and even length",
    "blurb": "Two conditions that look like two branches, each with its own parity counter. Minimise it and the branches collapse into one: after the first symbol, all that matters is whether the length so far has the parity that symbol asked for. Three states.",
    "inputs": [
      {
        "w": "0",
        "expect": "accept"
      },
      {
        "w": "00110",
        "expect": "accept"
      },
      {
        "w": "10",
        "expect": "accept"
      },
      {
        "w": "1000000011",
        "expect": "accept"
      },
      {
        "w": "1",
        "expect": "reject"
      },
      {
        "w": "10110",
        "expect": "reject"
      },
      {
        "w": "00",
        "expect": "reject"
      },
      {
        "w": "0000000011",
        "expect": "reject"
      }
    ],
    "library": {
      "author": {
        "login": "thethinkmachine"
      },
      "license": "CC-BY-4.0",
      "tags": [
        "textbook",
        "sipser",
        "parity",
        "branching"
      ],
      "difficulty": "intro",
      "chapter": "Sipser, Introduction to the Theory of Computation, exercises to chapter 1"
    }
  }
}
