The finite state machine given in figure below recognizes :

Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: D. any string of odd number of a’s and odd number of b’s
Explanation
Horizontal a-edges flip a-parity and vertical b-edges flip b-parity. The start state is (even a, even b) and the accepting state, diagonally opposite, is (odd a, odd b).
More Theory of Computation and Compilers questions
- A pushdown automata behaves like a Turing machine when the number of auxiliary memory is :
- Pushdown automata can recognize language generated by_________.
- To obtain a string of n Terminals from a given Chomsky normal form grammar, the number of productions to be used is :
- Consider the two grammars: G₁: S → SbS | a G₂: S → aB | ab, A → AAB | a, B → ABb | b Which of the following options is correct?
- Context-sensitive language can be recognized by a :
- The set A= { 0n1n2n | n= 1, 2, 3,..............} is an example of a grammar that is :