319 views

1 Answer

0 votes
0 votes

In Exercise 9 problem the automata was deterministic because we knew when we need to start popping out from the stack but here we don't know what is the midpoint of the given string and from which step we need to start popping elements from the stack.

Here we have to find the center using brute force kind of approach , whenever the top of stack element and the input element are same then that input element could be either the center of string or could be the just another element so we could either push that element in stack or we could then go to another state and start popping elements, this is a non deterministic move as we can't say which move we should  take and hence the given language is non-deterministic language.

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
0 answers
2
0 votes
0 votes
1 answer
3