

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!


Printed Pages : 3 Roll No. ECS
Time : 3 Hours Max. Marks : 100 Note : Be precise in your answer. In case of numerical problem assume data wherever not provided.
SECTION – A
(c) State the pumping lemma theorem for regular languages. (d) Convert the FA given below to left linear grammar.
(e) Check whether the grammar is ambiguous or not. R-> R+R/ RR/ R/ a / b / c. Obtain the string w = a+bc (f) S->aB/bA A->a/aS/bAA B-> b/bS/aBB. Identify the strings obtained from this grammar. (g) Define PDA. Draw the graphical representation for PDA. (h) Design a PDA which accepts set of balanced paranthesis ( { { } } ). (i) Eliminate unit productions in the grammar. S->A/bb A->B/b B->S/a (j) What are checking off symbols?
SECTION – B
(ii) Check with the comparison method for testing equivalence of two FA given below.
(b) Prove that the compliment, homomorphism and inverse homomorphism, closure of a regular language is regular. (c) State and prove kleene’s theorem with an example. (d) Consider the grammar with the production S->aSS A->b. Compute the string aababbb with the left most and right most derivation. Draw the derivation tree. (e) (i) Find out whether the language L = {xnynzn^ | n ≥ 1} is context free or not. (ii) Construct a PDA that accepts L = { wwR^ | w = (a+b)* } (f) (i) Convert the following CFG into CNF S → XY | Xn | p X → mX | m Y → Xn | o (ii) Convert the following CFG into CNF S → ASA | aB, A → B | S, B → b | ε (g) Design a TM to recognize all strings consisting of an odd number of α’s. (h) Prove that the halting problem is undecidable.
SECTION – C Attempt any two of the following questions: 2 x 15 = 30