Redirected
retagged by
1,457 views
1 votes
1 votes

What is the meaning of regular expression $\Sigma^*001\Sigma^*$?

  1. Any string containing ‘$1$’ as substring
  2. Any string containing ‘$01$’ as substring
  3. Any string containing ‘$011$’ as substring
  4. All string containing ‘$001$’ as substring
retagged by

4 Answers

Best answer
4 votes
4 votes

∑* 001 ∑*

Here, ∑* means any string using the input alphabets  of any length(0 or more).

So, 001 is surrounded by ∑* that means that 001 should come as a substring in the complete string.

So, the correct option is: (D) All string containing '001' as substring

selected by
2 votes
2 votes

Substring =  A string which is "in" a larger string .

∑* 001 ∑* = A string could be very long But it should contain "001" as a substring.

option D) defines it best .

1 votes
1 votes
∑* means it may be zero or any string. The above regular expression should contain 001.
0 votes
0 votes
The regular expression does not generate $1$ which is a substring of itself. So A is not the answer.

The R.E. does not generate $01$ which is also a substring of itself. So B is also not the answer.

The R.E. does not generate $011$ which is also a substring of itself. So C is also not the answer.

Option D is correct as it generates every string containing $001$ as a substring.
Answer:

Related questions

0 votes
0 votes
6 answers
1
admin asked Mar 30, 2020
2,452 views
According to the given language, which among the following expressions does it correspond to ?Language $L=\{x\in\{0,1\}\mid x\text{ is of length 4 or less}\}$.$(0+1+0+1+0...
1 votes
1 votes
3 answers
2
0 votes
0 votes
2 answers
3
admin asked Mar 30, 2020
712 views
Which of the following regular expression is equal to $(r_1+r_2)^*$?$r_1^*r_2^*$$(r_1r_2)^*$$r_1^*r_2^*+r_1r_2$$(r_1^*r_2^*)^*$
1 votes
1 votes
2 answers
4
admin asked Mar 30, 2020
1,288 views
Which of the following is equivalent regular expressions?$((01)^*(10)^*)^*$$(10+01)^*$$(01)^*+(11)^*$$(0^*+(11)^*+0^*)^*)$(i) and (ii)(ii) and (iii)(iii) and (iv)(iv) and...