376 views
0 votes
0 votes
Can aabbaabbbbbbbbaaaa  be generate by (a|b)*..

 

do we need to consider both a and b in language . we can generate any language with a and b ?

2 Answers

0 votes
0 votes

yes, given string is generated by the language...

actually language L = set of all strings in the universe which are generated by a or b or both with including empty string.

                                = ∑* where ∑={a,b}

note that we can generate any string in the language by corresponding Regular Expression

but we can not generate any language by using single Regular Expression

even we can not generate some of the languages by using Regular Expressions

0 votes
0 votes

Given expression (a|b)* can generate any string containing any whole number of a and b in any possible sequence. This includes an empty string. Therefore for this regular expression, we can generate any string, but not any language. Example: language anbn cannot be generated from the given expression, but any string from the language  anbn  can be generated from (a|b)*.

Related questions

1 votes
1 votes
1 answer
1
rahuljai asked Dec 15, 2018
1,163 views
What’s the right answer ?, please have a look at Q.5(here) they are appending network bits but this question doesn't.
2 votes
2 votes
2 answers
2
0 votes
0 votes
0 answers
4
Sanjay Sharma asked Jul 20, 2018
1,309 views
From a given tautology, another tautology can be derived by interchanging.A). 0 and 1B) And and ORC) 0 and 1; And and ORD) Impossible to derive