Initialize machine with given arguments.
A blank symbol. Both ends of the tape are (conceptually) initialized by an infinite sequence of this symbol.
Rules that determine how the head of the machine moves.
State of the machine when it starts to move.
State of the machine when the word is accepted.
Private
Readonly
acceptPrivate
Readonly
blankPrivate
haltPrivate
headPrivate
Readonly
initPrivate
initialPrivate
nowPrivate
Readonly
rulesetPrivate
tapeReturns a tuple representation of this machine.
a tuple representation of this machine.
A Turing machine is represented as follows:
Returns configuration(current status) of this machine.
Current status of this machine if TuringMachine.start was called, false otherwise.
A turing machine's configuration is represented as follows:
Get the word when this machine starts the process.
Returns the initial-word if TuringMachine.start was called, If not, return null.
Returns whether this machine is halted.
True if this machine is halted, false otherwise.
The machine will stop if TuringMachine.isAccepted is true, but it is not treated as "halt".
Proceeds with this machine. This method must be called after TuringMachine.start called, or get an error,
Non-negative integer indicating how many steps to advance this machine.
One "step" is a series of processes that reads a symbol, changes its state, writes the symbol, and moves the head.
Initiates processing for a given word.
Generated using TypeDoc
A object for simulate the turing machine.