edited by
17,542 views
41 41 votes

Let $S$ and $T$ be languages over $\Sigma=\{a,b\}$ represented by the regular expressions $(a+b^*)^*$ and $(a+b)^*$, respectively. Which of the following is true?

  1. $S \subset T$
  2. $T \subset S$
  3. $S = T$
  4. $S \cap T = \phi$

6 Answers

Best answer
42 42 votes

Correct Option: C

$S=T$. Both generates all strings over $\Sigma$.

edited by
12 12 votes
C is correct

S=(a+b*)*=(a*(b*)*)*=(a*b*)*

T=(a+b)*=(a*b*)*     so S=T
2 2 votes

Here in this question  s= (a + b*)*   when we open it  it will become {  ε,  a, b, a^2, a^3, .., b^2, b^3,.. ab, abb... }*  And we know that   to make it sigma* we need only (a+ b)* this deadly combo to generate all this strings so ultimately it will become sigma * .
And given T is automatically in this form (a + b)* so it  is also a sigma*  that's why both are equal .

edited by
1 1 vote

Option C,

S = T,

All the below forms of REX are equivalent,

(a*b*)* = (b*a*)* = (a* + b)* = (a + b*)* = (a* + b*)* = (a + b)*

0 0 votes
answer is C
Answer:
Position:
Show:

Related questions

51 51 votes
8 answers 8 answers
17.1k
17.1k views
Kathleen asked Sep 14, 2014
17,093 views
A multiset is an unordered collection of elements where elements may repeat any number of times. The size of a multiset is the number of elements in it, counting repetiti...
47 47 votes
5 answers 5 answers
16.9k
16.9k views
Kathleen asked Sep 14, 2014
16,876 views
Let $L$ denote the languages generated by the grammar $S \to 0S0 \mid 00$.Which of the following is TRUE?$L = 0^+$$L$ is regular but not $0^+$$L$ is context free but not ...
51 51 votes
9 answers 9 answers
15.6k
15.6k views
Kathleen asked Sep 14, 2014
15,626 views
What can be said about a regular language $L$ over $\{ a \}$ whose minimal finite state automaton has two states?$L$ must be $\{a^n \mid n \ \text{ is odd}\}$$L$ must be...
61 61 votes
4 answers 4 answers
22.3k
22.3k views
Kathleen asked Sep 14, 2014
22,336 views
Given the relationsemployee (name, salary, dept-no), anddepartment (dept-no, dept-name,address),Which of the following queries cannot be expressed using the basic relatio...