in Theory of Computation edited by
8,911 views
39 votes
39 votes

What can be said about a regular language $L$ over $\{ a \}$ whose minimal finite state automaton has two states?

  1. $L$ must be $\{a^n \mid n \  \text{ is odd}\}$
  2. $L$ must be $\{a^n \mid n \  \text{ is even}\}$
  3. $L$ must be $\{a^n \mid n \geq 0\}$
  4. Either $L$ must be $\{a^n \mid n \text{ is odd}\}$, or $L$ must be $\{a^n \mid n \text{ is even}\}$
in Theory of Computation edited by
8.9k views

4 Comments

it's wrong question. The statement will be 

" Either L can be  {an | n is odd} or L can be {an | n is even}"

9
9
"must be" needs to be replaced with "can be" because the language with two states in minimal dfa can be some something else too like a^+.
5
5
or is inclusive or  so either must be even  or odd or both
1
1
0 is not even nor odd right. Then d is surely correct.
0
0

6 Answers

1 vote
1 vote

option A require two states in MFA
option B require two states in MFA
option C require one states in MFA
option D is union of option A and B so if we find DFA for union we get two states then it further minimized to only one state ( both state will be final state in union) 

Answer is A,B
correct me if wrong :)

5 Comments

edited by

There is no grammatical error.  (They mean it must be L1 but not L2...... OR   it must be L2 but not L1)

But by option D they want to say either option A or B.... so answer is D.  
but why there will be the union of two languages? 

I) Either L must be  {a| n is odd}, or L must be {a| n is even}
II) L must be  {a| n is odd || n is even}

I and II are not same.

3
3
ok that i got now , but option A and B also have only 2 states in MFA
0
0
> You are going to pick only one option. So D is the ans.
> The keyword "must" clearly makes option A & B false.
1
1

What if n = 0 then {a| n is even} boils down to {a0} = {Epsilon}. But Two state is not required to accept Epsilon. Where am I wrong ?

0
0

Why I and II are not same, @Ahwan sir?

0
0
0 votes
0 votes

Answer: (D)

Explanation: There are two states. When first state is final, it accepts even no. of a’s.

                       When second state is final, it accepts odd no. of a’s.

Answer:

Related questions