Awesome q2a theme
0 votes
Let A= (a + b)* ab (a + b)*, B= a*b* and C= (a + b)*. Then the relation between A, B and C:

A. A+B= C
B. $A^{R}+B^{R}=C$
C. $A^{R}$+B= C
D. None of these
in Theory of Computation by (281 points) | 32 views
All your questions are already there in GO.. :)
@hirak does not care abt ashok dinda type questions. He always waits for the Dale Steyn type questions........ hirak will set things on fire during exm.

ato chatle eibar forsa hoe jabo.. XD
Accha ........ forsa de villiers er moto batting korbi r ki ..... :P
sei sei… ( IITD laughs in background)
Prohibited flag incoming….XD

2 Answers

0 votes
by (1.3k points)
0 votes
Option c is the answer.

A generates strings with ab as substring and B generates strings of form a*b*.

Reversal of A be AR:

Let A = X(YX) where X = ( a + b )* and Y = ab

AR = ( X(YX))R = (YX)R XR = XR YR XR = (a+b)*R (ab)R ( a+b)*R = (a+b)*ba (a+b)*

AR = ( a+ b)*ba( a+b)*

Now do the union of AR and B u will get all the strings in ( a+b)* i.e. in C.
Because in A + B u will never get ba which is in C. So, just reverse A and u will get strings containing ba.
by (1.6k points)
All previous years questions are already available on so before posting any question search for the availability of the same. If you are unable to find please mention the source while posting.
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
932 questions
596 answers
81,474 users