{
  "format": "automata-studio/workspace",
  "schema": 1,
  "app": "dev",
  "machine": "QA",
  "config": {
    "sym": {
      "eps": "ε",
      "any": "Σ",
      "blank": "⊔",
      "leftMarker": "⊢",
      "rightMarker": "⊣",
      "stackBottom": "Z",
      "lambda": "λ"
    },
    "pdaParadigm": "explicit"
  },
  "sigma": [
    "a",
    "b",
    "#"
  ],
  "stackAlpha": [
    "Z",
    "A",
    "B"
  ],
  "outputAlpha": [],
  "tapeCount": 1,
  "states": [
    {
      "id": "s1",
      "x": 140,
      "y": 160,
      "name": "load"
    },
    {
      "id": "s2",
      "x": 319,
      "y": 160,
      "name": "copy"
    },
    {
      "id": "s3",
      "x": 498,
      "y": 160,
      "name": "last"
    },
    {
      "id": "s4",
      "x": 677,
      "y": 160,
      "name": "done"
    }
  ],
  "transitions": [
    {
      "id": "t1",
      "from": "s1",
      "to": "s1",
      "symbol": "a",
      "pop": "ε",
      "push": "A"
    },
    {
      "id": "t2",
      "from": "s1",
      "to": "s1",
      "symbol": "b",
      "pop": "ε",
      "push": "B"
    },
    {
      "id": "t3",
      "from": "s1",
      "to": "s2",
      "symbol": "#",
      "pop": "Z",
      "push": "Z"
    },
    {
      "id": "t4",
      "from": "s2",
      "to": "s2",
      "symbol": "a",
      "pop": "A",
      "push": "A"
    },
    {
      "id": "t5",
      "from": "s2",
      "to": "s2",
      "symbol": "b",
      "pop": "B",
      "push": "B"
    },
    {
      "id": "t6",
      "from": "s2",
      "to": "s3",
      "symbol": "#",
      "pop": "Z",
      "push": "Z"
    },
    {
      "id": "t7",
      "from": "s3",
      "to": "s3",
      "symbol": "a",
      "pop": "A",
      "push": "ε"
    },
    {
      "id": "t8",
      "from": "s3",
      "to": "s3",
      "symbol": "b",
      "pop": "B",
      "push": "ε"
    },
    {
      "id": "t9",
      "from": "s3",
      "to": "s4",
      "symbol": "ε",
      "pop": "Z",
      "push": "Z"
    }
  ],
  "startId": "s1",
  "accepts": [
    "s4"
  ],
  "notes": [],
  "dividers": [],
  "blocks": [],
  "meta": {
    "title": "Three copies: w#w#w",
    "blurb": "A queue can check a copy without losing it: while matching the second w, each symbol taken from the front is sent straight to the back again, ready for the third. A stack would have to give up what it compares.",
    "inputs": [
      {
        "w": "##",
        "expect": "accept"
      },
      {
        "w": "ab#ab#ab",
        "expect": "accept"
      },
      {
        "w": "bba#bba#bba",
        "expect": "accept"
      },
      {
        "w": "abab#abab#abab",
        "expect": "accept"
      },
      {
        "w": "a#",
        "expect": "reject"
      },
      {
        "w": "bb#ab#ab",
        "expect": "reject"
      },
      {
        "w": "aba#bba#bba",
        "expect": "reject"
      },
      {
        "w": "bbab#abab#abab",
        "expect": "reject"
      }
    ],
    "library": {
      "author": {
        "login": "thethinkmachine"
      },
      "license": "CC-BY-4.0",
      "tags": [
        "queues",
        "copy-language",
        "beyond-context-free"
      ],
      "difficulty": "intermediate"
    }
  }
}
