recategorized by
1,276 views

3 Answers

Best answer
5 votes
5 votes
ans is D

A gives 010010 which is not acceptable

B gives 1001  rejected

C gives 0100 again rejected

D is the right ans
selected by
3 votes
3 votes

(A)Regular Expression (1+010)* can accept 010010 hence we can eliminate this option.

(B)Regular Expression(01+10)* can accept 1001.Hence we can eliminate this option.

(C)Regular Expression (1+010)*(0+$\lambda$) can accept string 0100 Hence we can eliminate this option.

(D)Regular Expression (1+01)*(0+$\lambda$) will not generate no consecutive pairs of zeros.

Hence,Option(D)(1+01)*(0+$\lambda$).

Answer:

Related questions

1 votes
1 votes
1 answer
3
go_editor asked Jul 20, 2016
1,551 views
LL grammar for the language $L = \{a^n b^m c^{n+m} \mid m \geq 0, n \geq 0\}$ is$ S \rightarrow aSc \mid S_1 ; S_1 \rightarrow bS_1c \mid \lambda$$ S \rightarrow aSc \mid...
1 votes
1 votes
2 answers
4
go_editor asked Jul 20, 2016
3,585 views
The number of states in a minimal deterministic finite automaton corresponding to the language $L=\{ a^n \mid n \geq 4 \}$ is3456