Documente Academic
Documente Profesional
Documente Cultură
No Of Hours: 69 sessions
Literature:
Publication Info
Book Type Code Title And Author
Edition Publisher Year
Introduction to Automata Theory,
Languages and Computation.
Text Book T1 3rd Pearson education 2007
John E.Hopcroft,
Rajeev Motwani,Jeffrey D.Ullman
Fundamentals of the theory of
Reference
R1 Computation, principles and practice. - Morgan Kaufmann 1998
Book
Raymond Greenlaw,H.James Hoover
Introduction to languages and automata
Reference
R2 theory. 3rd Tata McGraw-Hill 2007
Book
John C Martin
QUESTION BANK
INTRODUCTION TO THEORY OF COMPUTATION AND FINITE AUTOMATA
OBJECTIVE: This chapter introduces automata theory, finite automata, and the class of languages known
as “regular languages.” These languages are the ones that can be described by finite automata.
113. Give two reasons why finite automata cannot be used to recognize all CFL and why PDA is
required for that purpose. 5
114. Explain the operations of a NPDA with diagram. 6
115. Give the formal definition of NPDA. Explain clearly the transition function? 6
116. Write a NPDA that accepts the language L = {anbn : n ≥ 0 }U {a} 6*
117. Define the instantaneous description of a NPDA 4
118. When do we say a CFL is accepted by NPDA? Define
a) acceptance by final state
b) acceptance by empty stack 6
119. Construct a NPDA for the following languages
a) L = {w ε {a,b}* : na(w) = nb(w)}
b) L = {wwr : w ε {a,b}+} 10
120. Prove that for any CFL L(specified as CFG without λ productions), there exists a NPDA M
such that L = L(M) 6
121. Construct a NPDA that accepts that language generated by grammar with productions
a) S -> aA
b) S -> Aabc|bB|a
c) B -> b
d) C -> c 8
122. Write the CFG for language accepted by NPDA whose transitions are given below:
δ(q0,a,z) = {(Q0,Az)}
δ(q0,a,A) = {(q0,A)}
δ(q0,b,A) = { {q1,λ)}
δ(q1,λ,z) = {q2,λ)} 8*
123. If L = L(M) for some NPDA M, then prove that L is CFL. 5
124. Give the formal definition of DPDA and deterministic CFL. 6
125.Construct the PDA that accepts the language accepted by the grammar
S-> 0S1 | e
A-> aAS | a
B-> SbS | A | bb
126.If L = N(P) for some DPDA, then L has an unambiguous context free grammar.
127. State and prove pumping lemma for CFL? What is its application? 8
128. Define linear CFL. State pumping lemma for Linear CFL. 5
129. Prove that family of CFL is closed under union, concatenation and star closure. 6
120. Prove that family of CFL is not closed under intersection and complementation 6
131. Let L1 be a CFL and L2 be a regular language. Then prove that L1 intersection
L2 is context free. 6
132. Show that the language L = {w ε {a,b,c}* : na(w) = nb(w) = nc(w) is not context free 6
133. Show that the language L = {anbn : n ≥ 0, n ≠ 100} is context free 6
134. Determine whether or not the following language is context-free.
L={an bj an bj : n ≥ 0 , j ≥ 0} 4
135. Show that the complement of the language L = { an2 : n ≥ 0} is not context-free. 5
136. Determine whether or not the following language is context-free.
L={an w wR: n ≥ 0, w Є {a, b}*} 4
137. Is the language context-free? L = { anm : n and m are prime numbers } 4
138. Show that following languages are not context free using pumping lemma
a) L = {anbncn : n≥ 0}
b) L = {ww : w ε {a,b}*}
c) L = {an! : n≥ 0}
d) L = {anbj : n = i2} 10
139. Show that language L = {w : na(w)} is not linear 5
UNDECIDABILITY
OBJECTIVE: This chapter begins by repeating, in the context of Turing machines, a plausibility
argument for the existence of problems that could not be solved by computer. The chapter gives a formal
proof of the existence of the problem about Turing machines that no Turing machine can solve.We then
divide problems that can be solved by a Turing machine into two classes: those that have an algorithm, and
those that are only solved by Turing machines that may run forever on inputs they do not accept.
171. Show that the halting problem, the set of (M, w) pairs such that M halts (with or with out
accepting) when given input is RE but not recursive. 6
172. Let L1, L2, …, Lk be a collection of languages over alphabet Σ such that:
1. For all i ≠ j, Li ∩ Lj = Ø; i.e., no string is in two of the languages.
2. L1 υ L2 υ …. υ L k = Σ*; i.e., every string is in one of the languages.
3. Each of the languages Li, for I = 1,2,…, k is recursively enumerable.
Prove that each of the languages is therefore recursive. 10
173. What strings are:
a) w37?
b) W100? 6Technology –
Education for the Real World – Course Information – B.E. 4th Semester CS 36
174. Prove “if L is a recursive language, so is L¯ ”. 5
175. Informally describe multi tape Turing machines that enumerate the following sets of
integers, in the sense that started with blank tapes, it prints one of its tapes 10i210i21...
to represent the set { i1, i2,..}.
a) The set of all perfect squares {1, 4, 9…}.
b) The set of all primes {2, 3, 5, 7, 11…..}. 8
176. What are Recursive languages? What is the relationship between the recursive,
RE, and non RE languages?