SUBJECT QUESTION PAPER COLLECTION

IT9251 – Formal Languages and Automata

Anna University

B.Tech. Information and Technology Information and Technology Regulation 2008 Semester 4
4 Question Papers
2011 Earliest Year
2013 Latest Year

📚 Previous Year Question Papers

4 question papers available. Select an examination session to view its question paper.

PDF

April / May 2013

Formal Languages and Automata

PDF

April / May 2012

FORMAL LANGUAGES AND AUTOMATA

PDF

November / December 2012

Formal Languages and Automata

PDF

November / December 2011

FORMAL LANGUAGES AND AUTOMATA

Historical Examination Intelligence

Based on available extracted papers. Question groups and frequency are provisional, not official syllabus weightage or examination predictions.

4Source papers
4Papers with questions
56Question occurrences
56Distinct question candidates
0Exact repeat candidates
100.0%Extraction coverage

Papers by examination year

20111
20122
20131

Question type candidates

Other Or Unclassified26
Definition15
Derivation5
Design3
Comparison3
Short Description2
Numerical1
Explanation1

Detected examination patterns

A+B2
A2

Provisional semantic question groups

Representative questionGrouped questionsSource papers
Write the formal definition of a Turing Machine.33
What is Deterministic Pushdown Automata?22
Write the closure properties of regular languages.22
Define ambiguous grammar. Give an example.22

Search historical questions

Prove that V2isnot rational

0 eligible source papers

Design the DFA accepting the language over the alphabet 0, 1 that has the set of all strings that begin with 0 and end with 1.

0 eligible source papers

Design NFA for the regular expression 01*.

0 eligible source papers

Suppose H is the homomorphism from the alphabets {0,1,2} to the alphabets {a,b} defined by h(0)=a h(1)=ab h(2)=ba. What is h{0120) and h(21120)?

0 eligible source papers

Consider G whose productions are S-> aAS | a, A-> SbA | SS| ba. For the string w = aabbaa, find the leftmost and rightmost derivation.

1 eligible source papers

Define the languages generated by a PDA using final state of the PDA and empty stack of that PDA.

1 eligible source papers

State Griebach Normal form.

1 eligible source papers

Define Turing Machine and state the formal definition of it.

1 eligible source papers

What is Recursive descent parsing? What are the drawbacks of it?

1 eligible source papers

Define LL(1) grammar. Check the following grammar is LL(1). S ^ AB, A^ab | E, B-»a.

0 eligible source papers

a) i) Consider the following e-NFA. Compute the e-closure of each state and find it's equivalent DFA. ' (10) q 5 (q, e) 6(q, 0) 5(q. 1) A {B} {A} 0 B {•} {C} 0 c 0 0 {B} D 0 {D} 0 11a) ii) Prove that "A language L is accepted by some DFA if and only if L is accepted by some NFA". (6)

0 eligible source papers

a) i) Find the equivalent DFA that has the minimum number of states. (10) / ~ \ o 0 / " \ - V D , 1 o l

0 eligible source papers

a) ii) Convert the DFA to Regular Expression by eliminating states. (6) o o+i

0 eligible source papers

Prove that 1+2+ +n = n (n+1) by induction. 2

0 eligible source papers

Define DFA and NFA. Give examples.

1 eligible source papers

What is a regular expression? Write a regular expression for variables in C.

1 eligible source papers

Write the closure properties of regular languages.

1 eligible source papers

What is an ambiguous grammar? Give an example.

1 eligible source papers

Define Deterministic Pushdown Automata.

1 eligible source papers

Distinguish between context free grammars and context free languages.

1 eligible source papers

Write the applications of Turing machines.

1 eligible source papers

What is a bottom up parser?

1 eligible source papers

(i) Explain the procedure used for converting to a DFA from NFA. (8) (ii) What is Epsilon closure? <8) Explain the method of computing Epsilon closure.

0 eligible source papers

a(i) Explain the procedure used to convert DFA's to regular expressions. (6) (ii) Show that every language defined by a regular expression is also defined by a finite automation (10) [OR] b(i) State and explain the Pumping lemma for regular languages. (8) (ii) Explain the techniques used for minimization of automata. * <8)

0 eligible source papers

a(i) Write a grammar for simpler expression and assignment statements in C. Draw the parse trees for it. Explain the left most derivation using an example. (16) [OR] b. Define Push Down Automation. Explain it. Design a PDA for checking whether a given string is a palindrome. State the applications of PDA. (16)

0 eligible source papers

a(i) Explain the production rules, epsilon and unit productions with examples. (6) (ii) Put the following grammar in Chomsky Normal Form. (J Q S -> A S B / £ A -»• aAS/a B -> Sbs/A/bb [OR] b (i) Explain Turing Machines. (8) (ii) Construct a Turing machine to check palindromes. (8)

0 eligible source papers

a(i) Explain the top down parsing algorithm. (8) (ii) Explain the procedures used to find FIRST() and FOLLOW ( ) (8) [OR] b (i) Explain LR (0) grammar with an example. (6) (ii) Explain the implementation of a bottom-up parser. {8)

0 eligible source papers

Prove that "If n is odd integer, then n^ is odd.

1 eligible source papers

Distinguish between OFA and -NFA.

1 eligible source papers

Write the regular .expression for a language of all strings wkh an odd number of b's from {a^b}.

1 eligible source papers

Write the -closure properties of regular languages.

1 eligible source papers

Define ambiguous grammar. Give an example.

1 eligible source papers

What is Deterministic Pushdown Automata?

1 eligible source papers

Determine the nullable variables in 4he grammar with productions: A 4 B C D D ^ C C->e

0 eligible source papers

Write the formal definition of a Turing Machine.

1 eligible source papers

Distinguish between top down passing and bottom up passing. P a r t - 6 ( 5 x 1 6 = 80 Marks)

0 eligible source papers

(i) Prove that V2 is irrational using proof by contradiction technique. (8) (ii) Design a finite automaton that accepts strings of O's and 1's having even number of O's. (8)

0 eligible source papers

(a) (i) Design a Finite automaton to recognise the language given by the regular expression (100 + 111/0. (S) (ii) Show that "if L is a regular language then the language L" is regular for every n>0. (8) OR "

0 eligible source papers

(b) Explain the procedure used in the minimization of finite automaton using an example.

1 eligible source papers

(a) (i) Define top down derivation and bottom up derivation. Give the leftmost and rightmost derivation for the string 00101 from the grammar. S^AIB A-^OAls B^0B|1Bjs (8) (ii) If Li and L2 are context free languages, then L1UL2, L1.L2 and L'I are also context free languages. (8)

0 eligible source papers

(b)(i) Design a PDA that accepts strings of palindromes of odd length with middle symbol c. (8) (ii) Design a PDA to accept the language L = { X€{a,b}* na(x) > rib (x)} given by the CFG G with productions S ^al aS I bSS | SSb | SbS (8)

0 eligible source papers

(a) (i) Convert the following set of productions into CNF S->ABC A-> aAb| e C^>aC|a|s (8) (11) Convert the CFG with the following productions to be in GNF S-> ABA A ^ aA| 8 B^bB/E (8)

0 eligible source papers

(b) (i) State and prove the Pumping Lemnna for CFL. (8) (ii) Explain about Turing Machines. (8)

0 eligible source papers

(a) (i) Explain the design of a predictive parser. (8) (ii) How will you find FIRST () and FOLLOW ()? (8)

0 eligible source papers

(b) State and explain the LR (0) parsing algorithm. (16)

0 eligible source papers

Prove that 17 4+27437 4.00.00. +n = meee using induction. Define finite automata and NFA. Give an example for each.

0 eligible source papers

Writes regular expressions for the following : i) Set of all strings with 0’s and 1’s beginning with 0 and ending with 1. ii) Set of all strings having even number of 1’s

0 eligible source papers

Prove that the regular sets are closed under intersection. Draw the parse tree for the statement A:=B+C*A using the following grammar: <assign> 2 <id> := <expr> <id> >A|BI|C <expr> > <expr> +<term> / <term> ‘<term> > <term> * <factor> / <factor> <factor> > (<expr>)/<id> _

0 eligible source papers

Define Push Down Automata. State its applications.

1 eligible source papers

Eliminate the €-productions and null productions for the following grammar. S > ABaC A> BC BOb/E 20/8 D>d

0 eligible source papers

Design a TM to accept the-string {a, 5) * aba.

0 eligible source papers

Eliminate left recursion from the following grammar. S>Aalb A>Ac/Sd/E

1 eligible source papers

Define Top-down and Bottom-up parsing and write the type of grammars used for them. 11. 12. 13. PART — B45 x 16 = 80 marks) i) Prove that V2 is an irrational number. Provide your proof using “proof by contradiction”. (8) ii) Let L be a set accepted by a finite automation. Prove that there exists a . DFA that accepts L. (8) a) {i) State and Prove the pumping Lemma. Using this Lemma, prove that the set L = {0°1’}is not regular. ட (8) (ii) Let rbe a regular expression. Prove that these exists a NFA — with epsilon that accepts L(r). : . {8) for) | b) Explain the procedure used for minimizing the DFA. Using this procedure, minimize the DFA given in Figure 1. (16) Figure 1 — Finite Automata a) Write the procedure to convert a CFG to Greibach Normal Form. Using this procedure, convert the following grammar to GNF. | (16) G =({A1, 42 Ag}, fa, b}, P, A:) where P consists of the following production rules. A; 242 45 42245 477/0 4,224) 42/4 (௦0) b) Design a PDA which accepts L = { wew' / w < {a,b} *} 1௨, the string of palindromes over . {a, b}. Write Instanteous Description for the valid string “MALAYALAM”. Write the context free grammar corresponding to this PDA. (16) 14. a) (i) Define CFG. Explain-the following with examples 1. Left Most Derivation: 2. Right Most Derivation. 3. Ambiguous Grammar 4. Left Recursive grammar. _ (ii) Consider the grammar. <S> > <NP> <VP> <VP> ௮ <V> <NP> ‘<NP> > <NAME> <NP> ௮ <ART><N> <ART> 2 a/ihe த > ate /saw <N> > cat / mouse <NAME> > Ram/Kumar / Draw parse trees to represent the sentences i) Ram saw the mouse. ii) The cat ate the mouse Provide a Left most derivation to recognize the sentence, “Ram saw the mouse”.

0 eligible source papers

b) (i) Define Turing Machine and explain it. ii) Design a Turing Machine to check whether a given string is a palindrome. or not. 15. a) i) Explain the predictive parsing algorithm with an example. ii) Find the FIRST( ) and FOLLOW() for the following grammar. E >TE’ EB’ 101/6 T DFT T >*FT/e F > (E)/id- | (or) b) i) Define LL(1) grammar. Give an example for LL(1) grammar. ii) Define LR grammar and give an example for LR grammar. iii) Explain the Bottom-up parsing using a suitable exampie. (8) (8) (8) (8) (8) (8) (3) (3) (10) -

0 eligible source papers

Advanced Examination Analysis

Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.