0
1.9kviews
Write a necessary function for a given automata
1 Answer
written 5.6 years ago by | modified 5.6 years ago by |
Problem:
function S {
if input == a
call A.next ()
}
function A {
if input == a
call A.next ()
else
if input == b
{
call B.next ()
print "Accpet".
}
}
function B {
if input == a
call A.next ()
else
if input == b
{
call B.next ()
print "Accept"
}
}