Home » Theory of Computation » Theory of computation miscellaneous » Question

Theory of computation miscellaneous

Theory of Computation

  1. What can be said about a regular language L over {a} whose minimal finite state automaton has two states?
    1. L must be {an | n is odd}
    2. L must be {an | n is even}
    3. L must be {an | ≥ 0}
    4. Either L must be {an | n is odd}, or L must be {an | n is even}
Correct Option: D

Lets take an example to solve this.
L1 = {n, nnn, nnnnn, ....}
= {nodd}
= {n2n+1; for n = 0, 1, 2, 3, 4, 5, 6,...}
and L2 = {n, nnnn, nnnnnn,...}
= {neven}
= {n2n; for n = 0, 1, 2, 3, 4, 5, 6...}
Therefore, either L must be {an | n is odd}, or L must be {an | n is even}



Your comments will be displayed only after manual approval.