Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
558 views
in General by (103k points)
closed by

Consider the following regular expressions:

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

(b) s = a(a + b)+

(c) t = aa*b

Choose the correct answer from the options given below based on the relation between the languages generated by the regular expressions above:


1. L(r) ⊆ L(s) ⊆ L(t) 
2. L(r) ⊇ L(s) ⊇ L(t) 
3. L(r) ⊇ L(t) ⊇ L(s)
4. L(s) ⊇ L(t) ⊇ L(r)

1 Answer

0 votes
by (106k points)
selected by
 
Best answer
Correct Answer - Option 2 : L(r) ⊇ L(s) ⊇ L(t) 

The correct answer is option 2

Explanation:

L(r) = {a, aa, ab, aaa, aab, .... } This is a set of all strings starting with 'a'

L(s) = {aa, ab, aaa, aab, .... } This is a set of all strings starting with 'aa' or 'ab'

L(t) = {ab, aab, aaab, aaaab, ...} This a set of all strings starting with 'a', ending with 'b' and contains any number of 'a's in between them.

Therefore L(r) ⊇ L(s) ⊇ L(t)

* represents 0 or more number of symbols.

+ represents 1 or more number of symbols. 

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...