Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
| "NFA" a nondeterministic finite automaton (NFA) | |
create a new instance of a nondeterministic finite automaton configured according to assoc |
"AcceptingStates" | { s 1 s 2 | a list of the machine's accepting states | |
"InitialState" | s | the machine's initial state | |
"InputSymbols" | a list of allowed input symbols | ||
"States" | a list of allowed machine states | ||
"TransitionFunction" | {{ s in s out1 s out2 | a list of rules specifying the state's transition function |
obj["Definition"] | ||
obj["Evolution"] | a list representing the evolution of the machine | |
obj["EvolutionDataset"] | ||
obj["Input"] | a list representing the machine's current input | |
obj["MachineState"] | ||
obj["StepCount"] | the number of steps run | |
obj["TransitionFunction"] | a formatted version of the machine's transition function | |
obj["TransitionTable"] | a table version of the machine's transition function |
set the current machine's input to input | ||
reset the state of the machine to its initial configuration | ||
run n |
Examples | MoreExamples⊳ |
VirtualMachine |
|
VirtualMachineObject | |||||||||
|
0 | 1 | |
⟶ q 0 | { q 0 q 1 | { q 0 |
q 1 | ∅ | { q 2 |
* q 2 | ∅ | ∅ |
VirtualMachineExecute |
|
VirtualMachineExecute |
|
| ||||||||||||||||||||||