GATE | GATE CS 1997 | Question 44

Which one of the following regular expressions over {0,1} denotes the set of all strings not containing 100 as a substring?

(A) 0* (1+0)*
(B) 0*1010*
(C) 0*1*01*
(D) 0*(10+1)*


Answer: (D)

Explanation:

Quiz of this Question
Please comment below if you find anything wrong in the above post



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.