Skip to content

Instantly share code, notes, and snippets.

@gilamor
Last active September 16, 2020 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilamor/0ce0ab3b24483a5a47cb7b722db0c9e3 to your computer and use it in GitHub Desktop.
Save gilamor/0ce0ab3b24483a5a47cb7b722db0c9e3 to your computer and use it in GitHub Desktop.
name: even0s
source code: |-
# L= (00)*
input: '000000' # try epsilon
blank: '_'
# TM
start state: q0
table:
q0:
'_': {write: '_', R: accept}
'0': {write: '0', R: q1}
'1': {write: '1', R: reject}
q1:
'_': {write: '_', R: reject}
'0': {write: '0', R: q0}
'1': {write: '1', R: reject}
accept:
reject:
positions:
q0: {x: 271.66, y: 194.49}
q1: {x: 574.16, y: 190.01}
accept: {x: 272.14, y: 82.77}
reject: {x: 420.96, y: 319.09}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment