0
2.1kviews
Write a necessary function for a given automata

enter image description here

1 Answer
0
23views

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 …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.