3,231 views
1 1 vote
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 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*

Position:
Show:

Related questions

4 4 votes
2 answers 2 answers
25.6k
25.6k views
im.raj asked Jun 16, 2016
25,596 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).
1 1 vote
0 0 answers
574
574 views
paressep28 asked Apr 25, 2024
574 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 ...