Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: Depth can be any value .> 0. However, all details above field in question will be added to output



JSON Viewer
width400
height350
{
    "transition-function": {
        "delta": [
            {
                "output": {
                    "state": 1
                }
            },
            {
                "output": {
                    "state": 3
                }
            },
            {},
            {
                "output": {
                    "state": 4
                }
            },
            {},
            {
                "output": {
                    "state": 2
                }
            },
            {}
        ]
    }
}


Note: field take precedence so adding depth=2 is the same as depth=1

JSON Viewer
width400
height350
{
    "transition-function": {
        "delta": [
            {
                "output": {
                    "state": 1
                }
            },
            {
                "output": {
                    "state": 3
                }
            },
            {},
            {
                "output": {
                    "state": 4
                }
            },
            {},
            {
                "output": {
                    "state": 2
                }
            },
            {}
        ]
    }
}

Can also work with multiple fields as aboveNote: field take precedence so adding depth=2 is the same as depth=1


JSON Viewer
width400
height350
{
    "transition-function": {
        "delta": [
            {
                "output": {
                    "state": 1,
                    "symbol": "1"
                }
            },
            {
                "output": {
                    "state": 3,
                    "symbol": "0"
                }
            },
            {},
            {
                "output": {
                    "state": 4
                }
            },
            {},
            {
                "output": {
                    "state": 2
                }
            },
            {}
        ]
    }
}

...

JSON Viewer
width400
height200350
{
    "turing-machine:delta": [
        {
            "label": "separator",
            "input": {
                "state": 0,
                "symbol": "0"
            },
            "output": {
                "state": 1,
                "symbol": "1"
            }
        }
    ]
}

...