wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Which of the following regular expressionsdescribes the language over{0,1}
consisting of string that contain exactly two 1's ?

Open in App
Solution

(0+1)11(0+1) represents all string which has 11 as substring.

0110 represents all string with exactly two consecutive 1's.

01010 represents all string with exactly two 1's but need not be consecutive.

(0+1)1(0+1)1(0+1) represents all string with atleast two 1's.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Characteristics of Particles of Matter
Watch in App
Join BYJU'S Learning Program
CrossIcon