in Theory of Computation
5,116 views
1 vote
1 vote
Options are

a) (0*10*1)*

b) 0*(10*10*)

c) 0*(10*1)*0*

d) 0*(10*1)*10*

 

I have doubt in b and c.which one is correct and why.?
in Theory of Computation
5.1k views

6 Answers

0 votes
0 votes
IT would be option c
by
0 votes
0 votes
Answer is C, Check for string 110 neither a) nor b) can express it, and since d) is clearly expressing strings containing odd number of 0's so option c is correct. Moreover, option b) is expressing strings containing only two 1's, in case you have not done a typo. ;)

4 Comments

Yes, you are right, I am sorry,I did not cared that we can only use one time.
0
0
so none of the options are matchin
0
0
Yeah! None of the options are matching for sure. Possibly there is some mistake in the question.
0
0
0 votes
0 votes
ans is None of the options are matching .

For A check with 110

For B and C check with 110011

for D this is pretty much obvious that it can support odd length also .

1 comment

You are right..and if b) were  0*(10*10*)*..then it would be answer. 

0
0
0 votes
0 votes
clearly none of the answers actually match .try 110011 as already mentioned. .. I dont think ambiguous questions will be given in GATE.
by

Related questions