

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Theory of Automata (CS402) Assignment # 02 Spring 2021 Total marks = 20 Deadline 04 June, 2021 Please carefully read the following instructions before attempting the assignment. RULES FOR MARKING It should be clear that your assignment would not get any credit if:
**- The assignment is submitted after the due date.
Construct an FA 3 defining the UNION of FA 1 and FA2. Also, write the regular expression for FA 3. Sol: Old state A B -X,1=z1 Y,2=z2 X,1=z +Y,2=z2 Y,2=z2 X,3=z +X,3=z3 Y,3=z4 X,3=z +Y,3=z4 Y,3=z4 X,3=z Fa3 a Diagram: b a b b a b R.E= a Question No 2: Marks: 10 Construct a regular expression and Transition Graph (TG) defining the following language over ∑={x,y}: All strings of x’s and y’s having y, x, and y as a subsequence. SOL: R.E= T.G= (x+y) (x+y) (x+y) (x+y) Y x y