in Theory of Computation
34,252 views
7 votes
7 votes
A.    (1 + 010)*
B.    (01 + 10)*
C.    (1 + 010)* (0 + λ)
D.    (1 + 01)* (0 + λ)
in Theory of Computation
by
34.3k views

2 Answers

6 votes
6 votes
Best answer

Correct answer would be D) (1 + 01)* (0 + λ) 

Strings 010010 can be generated with option (a) by using 010 twice.

String 1001 can be generated with option (b).

string 0100 can be generated with option (c).

So except d) option all can generate strings with 00 as a substring.

selected by
by
1 vote
1 vote

Answer D)

The Language here is L={⋋,0,1,01,011,101,0101..................}

But

for A) 010010 possible

B)1001 possible

C)0100 possible

These all violates the condition for no pair of consecutive 0

edited by

2 Comments

What about (1 + 01)*  ?
0
0
In that case all strings will end with 1 but it can also end with 0 so including (0+ null) Is necessary
0
0

Related questions