Академический Документы
Профессиональный Документы
Культура Документы
UNIT I
PART A
PART B
1. Explain the operations on Strings
2. Explain in detail Regular Expressions./prove that for every regular expression there is an
equivalent NFA?
3. Explain DFA with example.
4. Explain NFA with Example.
5. Explain abut Finite Automata with Epsilon ԑ-moves with an example?
6. Write about equivalence of NFA &DFA/ Prove: A language L is Accepted by some ԑ-
NFA if and only if L is accepted by some DFA.
7. Explain Moore and Mealy Machines
8. Explain about 2DFA with example.
9. Write about Minimization of DFA?
10. Give applications of finite automata?
11. Construct a DFA equivalent to NFA, where M = ({q0, q1, q2}, {0, 1, 2}, δ, q0, {q0, q1, q2}).
The Transition is given by the transition diagram and transition table.
Inputs
States
0 1 2
* q0 {q0,q1,q2} {q1,q2} {q2}
* q1 {φ} {q1,q2} {q2}
* q2 {φ} {φ} {q2}
0 1
{p} {p,q} {p}
0 1 2
q0 q0,q1,q2 q1,q2 q2
q1 ϕ q1,q2 q2
*q2 ϕ ϕ q2
15. Consider the following ε-NFA
ε a b c
{p} {q,r} {q} {r}
{q} ϕ {p} {r} {p,q}
*{r} ϕ ϕ ϕ ϕ
16. Consider the following ε-NFA. Compute ε-Closure for each state and find its Equivalent
DFA
ε a b c
{p} {q} {p} ϕ ϕ
{q} {r} ϕ {q} ϕ
{r} ϕ ϕ ϕ {r}
DEPARTMENT OF COPMPUTER SCIENCE AND ENGINEERING
UNIT II
PART A
1. What is pumping Lemma?
2. List the applications of pumping Lemma?
3. Define homomorphism with example.
4. Define context free grammar.
5. What is meant by derivations?
6. Define derivation Tree.
7. Define LMD and RMD with example.
8. Define ambiguous grammar.
9. What are the ways to simply context free grammar?
10. Define CNF.
11. Define GNF.
12. What is sentential form?
13. What is closure property of regular sets?
14. Give an example for unambiguous grammar.
15. Eliminate useless productions from the following:
Sa| aA | B| C AaB| ε BAa CcCD Dddd
16. Is the grammar G with following productions ambiguous? Justify.
SSS | aSb | bSa | ε
PART B
1. Describe on Closure Properties of Regular Sets?
2. Show that the language L = { ai bi ci | i>=1} is not context free .
3. Simplify the following grammar and find its equivalent in CNF
SAB | CA, B BC | AB, Aa, C aB | b
4. State and prove Chomsky normal form
5. State and prove Griebach normal form
6. Convert the grammar G with productions to Chomsky normal form
SaSA | aAA | b, A bBBB, B b | ε
7. State and prove the properties of regular language. Let L be the set of all strings over the
alphabet of the form “x + y = z”, where x, y and z are the binary representation of three
numbers such that the sum of x and y equals z. Prove that the language L is not regular
using the Pumping Lemma.
8. Verify whether { | n>=1} is regular set or not?
9. Convert the following CFG into CNF
S→aXbX
x→aY/bY/ԑ
Y→X/c
10. Explain about Context Free Grammar.
a. Construct CFG representing set of Palindrome over (0+1)*
UNIT III
PART A
1. What is Pushdown Automata?
2. Difference between context free grammar and regular expression.
3. Difference between CFL and PDA.
4. What are the functions of PDA?
5. What is meant by parsing?
6. What are the difficulties in top down parsing?
7. What are the closure properties of CFL?
8. State decision algorithms.
9. Difference between top down and bottom up parsing.
10. State the properties that are not closed under CFl.
11. How can we prove that given language is not CFL?
12. Define PDA accepted by empty stack.
13. What is parse tree give example?
PART B
1. State and explain pushdown automata .Design a PDA for the language anbn over {a,b}
+
.
2. Summarize properties of Context free languages with example.
3. State and prove pumping lemma for CFL.
4. Construct PDA for the language.
L = {ambncm/n>=1,m>=1}
5. Show that {0n1n2n/n>=1} is not context free language.
6. Explain about Top down and Bottom up Parsing.
7. Construct PDA that accepts the language generated by Grammar with productions
S→aSa
S→bSb
S→c and run for the string abcba.
8. Design Push down Automata for the language {anbn/n>=1)
9. Design Push down Automata for the language {0n1n/n>=1)
10. Design Push down Automata for the language {anbn cn /n>=1)
11. Design Push down Automata for the language which accepts palindrome over {a,b}+.
UNIT IV
PART A
PART B
UNIT V
PART A
PART B