Flat QB - 0
Flat QB - 0
ENGINEERING
DUNDIGAL – 500 043, HYDERABAD
BANK
OBJECTIVES
To meet the challenge of ensuring excellence in engineering education, the issue of quality needs to be
addressed, debated and taken forward in a systematic manner. Accreditation is the principal means of quality
assurance in higher education. The major emphasis of accreditation process is to measure the outcomes of
the program that is being accredited.
In line with this, Faculty of Institute of Aeronautical Engineering, Hyderabad has taken a lead in
incorporating philosophy of outcome based education in the process of problem solving and career
development. So, all students of the institute should understand the depth and approach of course to be
taught through this question bank, which will enhance learner’s learning process.
13. Construct a DFA, the language recognized by the Automaton being L Apply
2
{anb/n 0}. Draw the transition table.
14. Construct the Minimized DFA Apply
15. Construct the DFA that accepts/recognizes the language L(M) = | Apply
2
w {a, b, c}* and w contains the pattern abac }. Draw the
transition table.
16. Construct NFA for given NFA with Є-moves Apply
STATE/I a b output
q0 q1 q2 1 Understand 3
q1 q1 q1 0
q2 q1 q0 1
UNIT – II
Part- A (Short Answer Questions)
1. Define Regular Languages. Remember 7
2. Define Pumping Lemma for Regular Languages. Remember 7
3. Write the applications of pumping lemma for regular languages. Apply 7
4. List any two applications of regular expression. Remember 7
5. Define Context Free Grammars. Remember 8
6. Define Left linear derivation. Remember 7
7. Write regular expression for denoting language containing empty Apply
7
string.
8. Differentiate left linear and right linear derivations. Understand 8
9. Write the Context free grammar for palindrome. Remember 8
10. Define right linear grammars. Remember 7
11. Define Regular grammars. Remember 7
12. Write regular expressions for the Set of strings over {0, 1} whose Apply
7
last two symbols are the same.
13. Define right linear derivation. Remember 7
14. Define left linear grammars. Remember 7
15. Write the regular language generated by regular expression Apply
7
(0+1)*001(0+1)*.
16. Write the Regular Expression for the set of binary strings. Apply 7
17. Write the derivation of the string aaaa from CFG – Apply 8
S a S/A A a
18. Write the derivation of the string 110 from CFG – Apply
8
S A0/B A0/12/B B A/11
19. Write the Regular Expression to generate atleast one b over Apply
8
Σ ={a,b}
20. Write the Context free grammar for equal number of a’s and b’s. Apply 8
Part- B (Long Answer Questions)
1. Convert Regular Expression 01* + 1 to Finite Automata. Understand 7
2. Convert given Finite Automata to Regular Expression using Arden’s Understand
theorem with an example.
UNIT – III
Part- A (Short Answer Questions)
1. Define Greibach normal form. Remember 9
2. Define nullable Variable. Remember 8
3. Write the minimized CFG for the following grammar Remember 9
SABCa | bD
ABC |b
Bb | ε CĐ
| ε Dd
4. Convert the grammar to CNF - S bA/aB AaS/a BbS/b. Understand 8
5. Explain the elimination of UNIT production. Understand 8
6. Explain the elimination of useless symbols in productions. Understand 8
7. Define CNF. Remember 9
8. Write the minimization of CFG – S a S/A A a B aa Understand 8
9. Define the ambiguity in CFG. Remember 8
10. What is the use of CNF and GNF. 8
11. Write the minimization of CFG - S aS1b S1aS1b/ɛ. Understand 8
12. Write the minimization of CFG - S A A aA/ ɛ. Understand 8
13. Write the minimization of CFG - S AB / a A a. Understand 8
14. Write the minimization of CFG - SaS/A/C A a B aa C Understand 8
aCb.
15. Write the minimization of CFG - SAbA AAa/ ɛ. Understand 8
16. Write the minimization of CFG - SaSa S bSb Sa/b/ ɛ. Understand 8
17. Write the minimization of CFG - S A0/B A0/12/B Understand 8
B A/11.
18. Convert the grammar to CNF - SaSa/aa SbSb/bb S a/b. Understand 8
19. Convert the grammar to CNF - SaAbB AaA/a BbB/a. Understand 8
20. Define PDA. Remember 10
21. Define NPDA. Remember 10
22. Differentiate between deterministic and nondeterministic PDA. Understand 10
23. Define the language of DPDA. Remember 10
24. List the steps to convert CFG to PDA. Remember 11
25. Explain – acceptance of PDF by final state. Understand 10
26. Explain – acceptance of PDF by empty stack. Understand 10
27. Convert the following PDA to CFG Apply 11
δ(q0,b,z0)={q0,zz0)
28. Convert the following PDA to CFG Apply 11
δ(q0, b, z)=(q0,zz)
29. Convert the following PDA to CFG Apply 11
δ(q0, ϵ ,z0)=(q0,ϵ)
30. Convert the following PDA to CFG Apply 11
δ(q0,a,z) = (q1,z)
31. Convert the following PDA to CFG δ(q1,b,z)=(q1,ϵ) Apply 11
32. Convert the following PDA to CFG Apply 11
δ(q1,a,z0)=(q0,z0)
33. Convert the following PDA to CFG Apply 11
δ(q0,0,z0)={q0,xz0)
34. Convert the following PDA to CFG Apply 11
δ(q0,0,x)=(q0,xx)
35. Convert the following PDA to CFG δ(q0,1,x)=(q1,ϵ) Apply 11
36. Convert the following PDA to CFG Apply 11
δ(q1,1,x) = (q1,ϵ)
37. Convert the following PDA to CFG Apply 11
δ(q1,ϵ,x)=(q1,ϵ)
38. Convert the following PDA to CFG δ(q1,ϵ,z0)=(q1,ϵ) Apply 11
39. Convert the following PDA to CFG Apply 11
δ(q1,ϵ,z)=(q0,ϵ)
40. Convert the following CFG to PDA Apply 11
S ABC | BbB
41. Convert the following CFG to PDA Apply 11
A aA | BaC|aaa
42. Convert the following CFG to PDA Apply 11
B bBb| a|D
43. Convert the following CFG to PDA Apply 11
C CA|AC
44. Convert the following CFG to PDA Apply 11
S a S/A
Part- B (Long Answer Questions)
1. Write a short notes on Chomsky Normal Form and Griebach Normal Apply 9
Form.
2. Show that the following grammar is ambiguous with respect to the Understand 8
string aaabbabbba.
S aB | bA
A aS| bAA|a
B bS | aBB | b
3. Use the following grammar : Apply 9
S ABC | BbB
A aA |BaC|aaa
B bBb| a|D
CCA|AC
D ε
Eliminate ε-productions.
Eliminate any unit productions in the resulting grammar.
Eliminate any useless symbols in the resulting grammar.
Convert the resulting grammar into Chomsky Normal Form
4. Illustrate the construction of Griebach normal form with an example. Apply 9
5. Show that the following CFG ambiguous. Apply 8
S iCtS | iCtSeS | a
C b
6. Discuss the Pumping lemma for Context Free Languages concept with Understand 9
example {anbncn where n>=0}
7. Write the simplified CFG productions in S a S1b Apply 8
S1 a S1b/ Є
8. Convert the following CFG into GNF. Understand 8
SAA/a A SS/b
9. Explain unit production? Explain the procedure to eliminate unit Understand 8
production.
10. Explain the procedure to eliminate ϵ-productions in grammar. Understand 8
11. Convert the following grammar into GNF Understand 8
G=({A1,A2,A3},{a,b},P,A)
A1->A2A3
A2->A3A1/b
A3->A1A2/a
12. Write simplified CFG productions from the following grammar Apply 8
A->aBb/bBa
B->aB/bB/ϵ
13. Convert the following grammar into GNF Understand 8
S->ABA/AB/BA/AA/B
A->aA/a B->bB/b
Part- C (Problem Solving and Critical Thinking)
1 Construct PDA for equal number of x’s and y’s Apply 10