{
  "format": "automata-studio/workspace",
  "schema": 1,
  "app": "dev",
  "machine": "DFA",
  "config": {
    "sym": {
      "eps": "ε",
      "any": "Σ",
      "blank": "⊔",
      "leftMarker": "⊢",
      "rightMarker": "⊣",
      "stackBottom": "Z",
      "lambda": "λ"
    }
  },
  "sigma": [
    "a",
    "b"
  ],
  "stackAlpha": [],
  "outputAlpha": [],
  "tapeCount": 1,
  "states": [
    {
      "id": "s1",
      "x": 140,
      "y": 208,
      "name": "none·-"
    },
    {
      "id": "s2",
      "x": 319,
      "y": 160,
      "name": "none·a"
    },
    {
      "id": "s3",
      "x": 319,
      "y": 255,
      "name": "none·b"
    },
    {
      "id": "s4",
      "x": 498,
      "y": 160,
      "name": "aa·a"
    },
    {
      "id": "s5",
      "x": 498,
      "y": 255,
      "name": "bb·b"
    },
    {
      "id": "s6",
      "x": 677,
      "y": 160,
      "name": "aa·b"
    },
    {
      "id": "s7",
      "x": 677,
      "y": 255,
      "name": "bb·a"
    },
    {
      "id": "s8",
      "x": 856,
      "y": 208,
      "name": "both"
    }
  ],
  "transitions": [
    {
      "id": "t1",
      "from": "s1",
      "to": "s2",
      "symbol": "a"
    },
    {
      "id": "t2",
      "from": "s1",
      "to": "s3",
      "symbol": "b"
    },
    {
      "id": "t3",
      "from": "s2",
      "to": "s4",
      "symbol": "a"
    },
    {
      "id": "t4",
      "from": "s2",
      "to": "s3",
      "symbol": "b"
    },
    {
      "id": "t5",
      "from": "s3",
      "to": "s2",
      "symbol": "a"
    },
    {
      "id": "t6",
      "from": "s3",
      "to": "s5",
      "symbol": "b"
    },
    {
      "id": "t7",
      "from": "s4",
      "to": "s4",
      "symbol": "a"
    },
    {
      "id": "t8",
      "from": "s4",
      "to": "s6",
      "symbol": "b"
    },
    {
      "id": "t9",
      "from": "s5",
      "to": "s7",
      "symbol": "a"
    },
    {
      "id": "t10",
      "from": "s5",
      "to": "s5",
      "symbol": "b"
    },
    {
      "id": "t11",
      "from": "s6",
      "to": "s4",
      "symbol": "a"
    },
    {
      "id": "t12",
      "from": "s6",
      "to": "s8",
      "symbol": "b"
    },
    {
      "id": "t13",
      "from": "s7",
      "to": "s8",
      "symbol": "a"
    },
    {
      "id": "t14",
      "from": "s7",
      "to": "s5",
      "symbol": "b"
    },
    {
      "id": "t15",
      "from": "s8",
      "to": "s8",
      "symbol": "a"
    },
    {
      "id": "t16",
      "from": "s8",
      "to": "s8",
      "symbol": "b"
    }
  ],
  "startId": "s1",
  "accepts": [
    "s8"
  ],
  "notes": [],
  "dividers": [],
  "blocks": [],
  "meta": {
    "title": "Contains both aa and bb",
    "blurb": "Two searches at once: the state records the last letter and which of the two pairs has been seen. A product construction drawn out — and smaller than the full product, because seeing a pair also says what the last letter was.",
    "inputs": [
      {
        "w": "aabb",
        "expect": "accept"
      },
      {
        "w": "aabba",
        "expect": "accept"
      },
      {
        "w": "aaaabb",
        "expect": "accept"
      },
      {
        "w": "aaaaaaabba",
        "expect": "accept"
      },
      {
        "w": "babb",
        "expect": "reject"
      },
      {
        "w": "babba",
        "expect": "reject"
      },
      {
        "w": "aaaaab",
        "expect": "reject"
      },
      {
        "w": "aaaaaaaaba",
        "expect": "reject"
      }
    ],
    "library": {
      "author": {
        "login": "thethinkmachine"
      },
      "license": "CC-BY-4.0",
      "tags": [
        "product-construction",
        "substrings",
        "intersection"
      ],
      "difficulty": "intermediate"
    }
  }
}
