mirror of
https://github.com/ParkerTenBroeck/automata.git
synced 2026-06-06 21:24:06 -04:00
fixed typo in DPDA Final State example
This commit is contained in:
parent
0bc1be8061
commit
7cfd6c1fcd
1 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ d(qc, c) = qc
|
||||||
new Example(
|
new Example(
|
||||||
"Tutorial",
|
"Tutorial",
|
||||||
"DPDA Final State",
|
"DPDA Final State",
|
||||||
`// Accept strings over a,b of the form a^nb^k n != k n,k > 0
|
`// Accept strings over a,b of the form a^nb^k where n != k and n,k > 0
|
||||||
|
|
||||||
type = DPDA
|
type = DPDA
|
||||||
Q = {q0, qas, qeq, qmb, qlb} // states
|
Q = {q0, qas, qeq, qmb, qlb} // states
|
||||||
|
|
@ -122,7 +122,7 @@ d(qas, b, z0) = (qeq, z0)
|
||||||
d(qas, a, A) = (qas, [A A])
|
d(qas, a, A) = (qas, [A A])
|
||||||
d(qas, b, A) = (qlb, ~)
|
d(qas, b, A) = (qlb, ~)
|
||||||
|
|
||||||
d(qlb, b, A) = (qeq, ~)
|
d(qlb, b, A) = (qlb, ~)
|
||||||
d(qlb, b, z0) = (qeq, z0)
|
d(qlb, b, z0) = (qeq, z0)
|
||||||
|
|
||||||
d(qeq, b, z0) = (qmb, z0)
|
d(qeq, b, z0) = (qmb, z0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue