Last active
July 21, 2022 08:00
-
-
Save affeldt28/5bbd4f8a16c926a7149694f646605c94 to your computer and use it in GitHub Desktop.
Turingmaschine für die Sprache {w ∈ {a,b,c}* | w = a^n b^n c^n, n ∈ ℕ+}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: turingmaschine | |
source code: | | |
input: 'aaabbcc' | |
blank: ' ' | |
start state: q0 | |
table: | |
q0: | |
a: {write: A, R: q1} | |
A: {write: A, R: q0} | |
B: {write: B, R: q5} | |
q1: | |
a: {write: a, R: q1} | |
b: {write: B, R: q2} | |
B: {write: B, R: q1} | |
q2: | |
b: {write: b, R: q2} | |
c: {write: C, R: q3} | |
C: {write: C, R: q2} | |
q3: | |
c: {write: c, R: q3} | |
' ': {write: ' ', L: q4} | |
q4: | |
a: {write: a, L: q4} | |
b: {write: b, L: q4} | |
c: {write: c, L: q4} | |
A: {write: A, L: q4} | |
B: {write: B, L: q4} | |
C: {write: C, L: q4} | |
' ': {write: ' ', R: q0} | |
q5: | |
B: {write: B, R: q5} | |
C: {write: C, R: q5} | |
' ': {write: ' ', R: qe} | |
qe: | |
positions: | |
q0: {x: 200, y: 200} | |
q1: {x: 350, y: 100} | |
q2: {x: 524.84, y: 136.44} | |
q3: {x: 500, y: 400} | |
q4: {x: 350, y: 300} | |
q5: {x: 117.91, y: 302.99, fixed: false} | |
qe: {x: 200, y: 400} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://turingmachine.io/?import-gist=5bbd4f8a16c926a7149694f646605c94