Simple C++ Turing Machine implementation
mkdir build
cd build
cmake ..
make
- after building the executable can be found in the
/build
directory ./turing_machine <configuration-file>
Import Configuration as a textfile. Place it in the /build
directory or anywhere else as long as you know the path ;)
2-state-busy-beaver (see : https://en.wikipedia.org/wiki/Busy_beaver)
0 1 2
0
-
2
0 1
0
0 0 1 1 R
0 1 1 1 L
1 0 0 1 L
1 1 2 1 R
states as integers - seperated by spaces
start state as integer
input alphabet (- if empty)
end states as integers - seperated by spaces
tape alphabet (cannot be empty)
blank symbol (must be from tape alphabet)
turing machine configuration as quintuple (q, s, q', s', d) - elements seperated by spaces
where q = current state, s = current_symbol, q = next_state, s = symbol to write and d is direction in which to move the R/W head (R, L, N)