Toc QB
Toc QB
PART-A
Learning
Q.No Questions CO’S
Level
Discuss the application of FA Constructa DFA that accepts all strings on {0,1}
3. Ap
except those containing the substring101 C210.1
Design a NFA accept the following strings over the alphabets {0,1} that begins
4. Ap
with 01 and ends with 11. Check for the validity of 01111and 0110 strings. C210.1
C210.1
6. C
7. Ap
C210.1
Convert the epsilon NFA andl is the difference between NFA and DFA.
Give NFA accepting the set of strings in (0+1)* such that two 0‘s are separated
8. by a string whose length is 4i,for some i>=0. C210.1 C
PART-A
Learning
Q.No Questions CO’S
Level
1. Define regular expression and give an example U
C210.2
2. State the relations among regular expression, deterministic finite automata, non
deterministic finite automaton and finite automaton with epsilon transition. C210.2 U
3. Write Regular Expression for the set of strings over {0.1} that have atleast one. C210.2 Ap
6. Give the regular expression for the set of all strings ending in 00. Ap
C210.2
7. What are the applications of regular expression? U
C210.2
8. State Arden’s theorem. U
C210.2
9. Differentiate L* and L+ U
C210.2
Construct a r.e for the language over the set ={a,b} in which total number of a’s
10. are divisible by 3 C210.2 Ap
Regular expression denoting a language over ∑ ={1} having (i) even length of
11. string (ii) odd length of a string. C210.2 Ap
1. Using pumping lemma for the regular sets, prove that the language Ap
C210.2
L={ambn/m>n} is not regular
2. Prove any two closure properties of regular language C210.2 R
4. i.{02n/n>0} Ap
ii.{ambnam+n/m>0andn>0}
Types of Grammar – Chomsky‘s hierarchy of languages -Context-Free Grammar (CFG) and Languages –
Derivations and Parse trees – Ambiguity in grammars and languages – Push Down Automata (PDA): Definition –
Moves – Instantaneous descriptions -Languages of pushdown automata – Equivalence of pushdown automata
and CFG-CFG to PDA-PDA to CFG – Deterministic Pushdown Automata.
PART-A
Learning
Q.No Questions CO’S
Level
1. Define CFG. R
C210.3
2. Construct context free grammar {0 m 1 n |1<=m<=n} Ap
C210.3
3. Define Ambiguous Grammar? Give an Example U
C210.3
Define a derivation tree for a CFG. C210.3
4. U
Let G = (N,T,P,S), P ={S->A1B|a, A->0A| ε , B->0B|1B| ε } give a leftmost
5. C210.3 Ap
and rightmost derivation for the string 00101
Construct a CFG for set of strings that contain equal number of a’s and b’s over
7. ∑ = {a,b}. C210.3 R
8. What is unambiguity? U
C210.3
9. Mention the application of CFG
C210.3 R
10. Define the instantaneous descriptions(ID) of pushdown Automaton C210.3 U
What are the diiferent types of language accepted by a PDA and define them?
11. C210.3 U
PART–B
PART-A
Learning
Q.No Questions CO’S
Level
1. Define CNF form.
C210.4 R
Eliminate the ε production from the CFG given below
C210.4
2. A-> 0 B 1 | 1 B 1 Ap
B-> 0 B | 1 B | ε
What do you mean by null production and unit production? Give an example.
7. C210.4 U
PART –B
6. Design a TM that accepts the language of odd integers written in binary C210.4 Ap
UNIT V UNDECIDABILITY
Unsolvable Problems and Computable Functions –PCP-MPCP- Recursive and recursively enumerable languages –
Properties – Universal Turing machine -Tractable and Intractable problems – P and NP completeness – Kruskal’s
algorithm – Travelling Salesman Problem- 3-CNF SAT problems.
PART-A
Q.N Learning
Questions CO’S
o Level
1. When we say a problem is decidable? Give an example of undecidable C210.5 R
problem.
2. What is recursively enumerable language? C210.5 R
3. Mention the difference between P and NP problems. C210.5 U
4. How to prove that the Post Correspondence problem is Undecidable. C210.5
R
5. Show that any PSPACE-hard language is also NP-hard. C210.5 R
6. Show that the collection of all Turing machines is countable. C210.5 R
7. Mention the difference between decidable and undecidable problems. C210.5 U
8. What is universal turing machine C210.5 U
9. Features of Universal TM C210.5 U
10. Give example for NP-complete problems. C210.5 U
11. When a language is said to be recursive? C210.5 U
12. Define modified posts correspondence problem. C210.5 R
13. State two languages, which are not recursively enumerable. C210.5 R
14. Define posts correspondence problem. C210.5 R
PART – B
Prove that‗ If L‘ is a recursive language, then L‘ is also a Recursive C210.5
1. Language‘ R
Prove that for two recursive language L1 and L2 their union and intersection C210.5
6. is recursive. R