2,391 views
1 votes
1 votes
Write regular expression to denote a language L
a) String which begin or end with either 00 or 11.
b) The set of all strings, when viewed as binary representation of integers, that are divisible by 2.
c) The set of all strings containing 00.
d) String not containing the substring 110.

1 Answer

0 votes
0 votes
  1.    (00+11) (0+1)* + ( 0 + 1)* (00+11)
  2.    ( 0 + 1)*0      i.e all strings ending with 0
  3.    (0+1)*00 (0+1)*
  4.    (0+10) *1*

Related questions

21.7k
views
2 answers
3 votes
im.raj asked Jun 16, 2016
21,653 views
A. [(00(0+1)* 11] + [11( 0 + 1)* 00]B. [(00+11) (0+1)+] + [( 0 + 1)+ (00+11)].C. [(00+11) (0+1)*] + [( 0 + 1)* (00+11)]D. (00+11) (0+1)* (00+11).
253
views
0 answers
0 votes
M_Umair_Khan42900 asked Dec 29, 2022
253 views
For each of the following language, if the language is regular, write down the corresponding regular expression. Else, prove that the language is not regular.a) ( ... 9) with characters in sorted orders.c) The set of all even binary numbers
164
views
0 answers
1 votes
paressep28 asked Apr 25
164 views
How is "All strings {0,1} of length five or more in which the third symbol from the right end is different from the leftmost symbol" solved? Answer Follow·1 Request