2,278 views
3 votes
3 votes
input {0,1} Set of all strings that begin and end with either 0 or 1. What does this statement/line means and what would be the R.E for this?

2 Answers

2 votes
2 votes

It means all the string that begin and end with same symbol, so the language generated will be 

{0,1,00,11,000........}.

The regular expression will be 

0(0+1)*0 + 1(0+1)*1

Related questions

0 votes
0 votes
2 answers
1
iarnav asked Mar 14, 2019
927 views
Given L = { 0*1 + 0 + 1* + 10*1}where + symbol is UNION and NOT positive closure.Please draw the Minimal DFA for this.
2 votes
2 votes
4 answers
2
iarnav asked Aug 20, 2017
1,395 views
I'm getting R.E as 0*1(01)*1(0+1)* but people are getting (0+10)*11(1+0)*Please tell, how!?
2 votes
2 votes
2 answers
4
iarnav asked Aug 29, 2017
974 views
input {a,b} Write R.E where every b is followed by at least 2 K a's? (K is +ve integer)