Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider the regular expression R = (a + b)* ... Start Learning for Free
Consider the regular expression R = (a + b)* (aa + bb) (a + b)*
Which one of the regular expressions given below defines the same language as defined by the regular expression R?
  • a)
    (a(ba)* + b(ab)*)(a + b)+
  • b)
    (a(ba)* + b(ab)*)*(a + b)*
  • c)
    (a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)*
  • d)
     (a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)+
Correct answer is option 'C'. Can you explain this answer?
Verified Answer
Consider the regular expression R = (a + b)* (aa + bb) (a + b)*Which o...
R = (a+b)*(aa+bb)(a+b)*
having NFA
Equivalent DFA :
which is equivalent Transition graph [ by removing transition from q1 to q2 and q2 to q1 but does not effect on language ..be careful ]
That is equivalent to 
which is equivalent to 
which is equivalent to 
so equivalent regular expression is [a(ba)*(a+bb) + b(ab)*(b+aa)](a+b)* so option C is answer.
View all questions of this test
Most Upvoted Answer
Consider the regular expression R = (a + b)* (aa + bb) (a + b)*Which o...
Regular Expression Equivalence:

Regular expressions are used to define a set of strings. Two regular expressions are said to be equivalent if they define the same set of strings. In other words, two regular expressions are equivalent if they generate the same language.

Given Regular Expression:

R = (a b)* (aa bb) (a b)*

To find the regular expression that defines the same language as R, we need to simplify the given regular expression.

Simplification of Given Regular Expression:

R = (a b)* (aa bb) (a b)*
= (a b)* aa (a b)* U (a b)* bb (a b)*
= (a(ba)* b(ab)*)* aa (a b)* U (a(ba)* b(ab)*)* bb (a b)*
= (a(ba)* b(ab)*)* (aa bb) (a b)*

The above regular expression generates the same language as R. Therefore, the correct option is C.

Explanation:

Option A generates strings of the form a(ba)*, b(ab)* followed by either a or b. This does not cover all the strings generated by R.

Option B generates strings of the form a(ba)* or b(ab)*, zero or more times, followed by a or b, zero or more times. This covers all the strings generated by R, but also generates additional strings that are not generated by R.

Option C generates strings of the form a(ba)* or b(ab)*, zero or more times, followed by either aa or bb, followed by a or b, zero or more times. This covers all the strings generated by R and generates no additional strings.

Option D generates strings of the form a(ba)* or b(ab)*, zero or more times, followed by either aa or bb, followed by a or b, zero or more times. This covers all the strings generated by R, but also generates additional strings that are not generated by R.
Free Test
Community Answer
Consider the regular expression R = (a + b)* (aa + bb) (a + b)*Which o...
R = (a+b)*(aa+bb)(a+b)*
having NFA
Equivalent DFA :
which is equivalent Transition graph [ by removing transition from q1 to q2 and q2 to q1 but does not effect on language ..be careful ]
That is equivalent to 
which is equivalent to 
which is equivalent to 
so equivalent regular expression is [a(ba)*(a+bb) + b(ab)*(b+aa)](a+b)* so option C is answer.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Consider the regular expression R = (a + b)* (aa + bb) (a + b)*Which one of the regular expressions given below defines the same language as defined by the regular expression R?a)(a(ba)* + b(ab)*)(a + b)+b)(a(ba)* + b(ab)*)*(a + b)*c)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)*d)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)+Correct answer is option 'C'. Can you explain this answer?
Question Description
Consider the regular expression R = (a + b)* (aa + bb) (a + b)*Which one of the regular expressions given below defines the same language as defined by the regular expression R?a)(a(ba)* + b(ab)*)(a + b)+b)(a(ba)* + b(ab)*)*(a + b)*c)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)*d)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)+Correct answer is option 'C'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Consider the regular expression R = (a + b)* (aa + bb) (a + b)*Which one of the regular expressions given below defines the same language as defined by the regular expression R?a)(a(ba)* + b(ab)*)(a + b)+b)(a(ba)* + b(ab)*)*(a + b)*c)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)*d)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)+Correct answer is option 'C'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider the regular expression R = (a + b)* (aa + bb) (a + b)*Which one of the regular expressions given below defines the same language as defined by the regular expression R?a)(a(ba)* + b(ab)*)(a + b)+b)(a(ba)* + b(ab)*)*(a + b)*c)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)*d)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)+Correct answer is option 'C'. Can you explain this answer?.
Solutions for Consider the regular expression R = (a + b)* (aa + bb) (a + b)*Which one of the regular expressions given below defines the same language as defined by the regular expression R?a)(a(ba)* + b(ab)*)(a + b)+b)(a(ba)* + b(ab)*)*(a + b)*c)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)*d)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)+Correct answer is option 'C'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Consider the regular expression R = (a + b)* (aa + bb) (a + b)*Which one of the regular expressions given below defines the same language as defined by the regular expression R?a)(a(ba)* + b(ab)*)(a + b)+b)(a(ba)* + b(ab)*)*(a + b)*c)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)*d)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)+Correct answer is option 'C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider the regular expression R = (a + b)* (aa + bb) (a + b)*Which one of the regular expressions given below defines the same language as defined by the regular expression R?a)(a(ba)* + b(ab)*)(a + b)+b)(a(ba)* + b(ab)*)*(a + b)*c)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)*d)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)+Correct answer is option 'C'. Can you explain this answer?, a detailed solution for Consider the regular expression R = (a + b)* (aa + bb) (a + b)*Which one of the regular expressions given below defines the same language as defined by the regular expression R?a)(a(ba)* + b(ab)*)(a + b)+b)(a(ba)* + b(ab)*)*(a + b)*c)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)*d)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)+Correct answer is option 'C'. Can you explain this answer? has been provided alongside types of Consider the regular expression R = (a + b)* (aa + bb) (a + b)*Which one of the regular expressions given below defines the same language as defined by the regular expression R?a)(a(ba)* + b(ab)*)(a + b)+b)(a(ba)* + b(ab)*)*(a + b)*c)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)*d)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)+Correct answer is option 'C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider the regular expression R = (a + b)* (aa + bb) (a + b)*Which one of the regular expressions given below defines the same language as defined by the regular expression R?a)(a(ba)* + b(ab)*)(a + b)+b)(a(ba)* + b(ab)*)*(a + b)*c)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)*d)(a(ba)* (a + bb) + b(ab)*(b + aa))(a + b)+Correct answer is option 'C'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev