III Year V Sem Cs6503 Theory of Computation
III Year V Sem Cs6503 Theory of Computation
III Year V Sem Cs6503 Theory of Computation
CS6503
THEORY OF COMPUTATION
Question Bank
M3 To equip students with values, ethics and life skills needed to enrich their lives and
enable them to meaningfully contribute to the progress of society
M4 To prepare students for higher studies and lifelong learning, enrich them with the
practical and entrepreneurial skills necessary to excel as future professionals and
contribute to Nation’s economy
Vision of Department
To emerge as a globally prominent department, developing ethical computer professionals,
innovators and entrepreneurs with academic excellence through quality education and research.
Mission of Department
M2 To strengthen the core-competence in computer science and engineering and to create
an ability to interact effectively with industries.
M3 To produce engineers with good professional skills, ethical values and life skills for the
betterment of the society.
M4 To encourage students towards continuous and higher level learning on technological
advancements and provide a platform for employment and self-employment.
PEO3 Apply ethical knowledge for professional excellence and leadership for the
betterment of the society.
PEO4 Develop life-long learning skills needed for better employment and
entrepreneurship
An ability to understand the core concepts of computer science and engineering and to
enrich problem solving skills to analyze, design and implement software and hardware
PSO1 based systems of varying complexity.
To interpret real-time problems with analytical skills and to arrive at cost effective and
PSO2 optimal solution using advanced tools and techniques.
BTL6: Creating.,
BTL 5: Evaluating.,
BTL 4: Analyzing.,
BTL 3: Applying.,
BTL 2: Understanding.,
BTL 1: Remembering
SYLLABUS
9
Introduction- Basic Mathematical Notation and techniques- Finite State systems – Basic
Definitions –Finite Automaton – DFA & NDFA – Finite Automaton with €- moves – Regular
Languages- Regular Expression – Equivalence of NFA and DFA – Equivalence of NDFA’s with
and without €-moves –Equivalence of finite Automaton and regular expressions –Minimization
of DFA- - Pumping Lemma for Regular sets – Problems based on Pumping Lemma.
UNIT II GRAMMARS
9
Grammar Introduction– Types of Grammar - Context Free Grammars and Languages–
Derivations and Languages – Ambiguity- Relationship between derivation and derivation trees –
Simplification of CFG – Elimination of Useless symbols - Unit productions - Null productions –
Greiback Normal form – Chomsky normal form – Problems related to CNF and GNF.
UNIT III PUSHDOWN AUTOMATA
9
Pushdown Automata- Definitions – Moves – Instantaneous descriptions – Deterministic
pushdown automata – Equivalence of Pushdown automata and CFL - pumping lemma for CFL –
problems based on pumping Lemma.
UNIT IV TURING MACHINES
9
Definitions of Turing machines – Models – Computable languages and functions –Techniques
for Turing machine construction – Multi head and Multi tape Turing Machines - The Halting
problem –Partial Solvability – Problems about Turing machine- Chomskian hierarchy of
languages.
UNIT V UNSOLVABLE PROBLEMS AND COMPUTABLE FUNCTIONS
Total= 45 Periods
TEXT BOOKS:
REFERENCES:
C504.1 n Finite State Automata and Regular Expression for any language
C504.2 ate the design of Context Free Grammar for any language set
C504.3 nstrate the push down automaton model for the given language
INDEX
9
Introduction- Basic Mathematical Notation and techniques- Finite State systems – Basic
Definitions –Finite Automaton – DFA & NDFA – Finite Automaton with €- moves – Regular
Languages- Regular Expression – Equivalence of NFA and DFA – Equivalence of NDFA’s with
and without €-moves –Equivalence of finite Automaton and regular expressions –Minimization
of DFA- - Pumping Lemma for Regular sets – Problems based on Pumping Lemma.
Q, ∑, δ, q0, F) where
ruct a DFA for the language over {0, 1}* such that
it contains “000” as a substring. APR/MAY 2011
C504.1 BTL 1
1
0,1
6
0 0
0
is structural induction?
NOV/DEC 2011
C504.1 BTL 1
(X) be a statement about the structures X that are
defined by some particular recursive definition.
7
1. As a basis, Prove S(X) for the basis structure(s)
X.
2. For inductive step, take a structure X that the
recursive definition says is formed from Y1,
Y2,....Yk. Assume the statements S(Y1),...,S(Yk)
and use these to prove S(X).
0 0 0 0
12
is meant by DFA
MAY/JUNE 2013
C504.1 BTL 1
—also known as deterministic finite state machine—is a
13
finite state machine that accepts/rejects finite strings of
symbols and only produces a unique computation (or run)
of the automaton for each input string.
17 Deductive Proof.
NOV/DEC 2014
ductive proof consists of a sequence of statements C504.1 BTL 1
whose truth leads us from some initial statement,
called the ‘hypothesis’ to a ‘conclusion’ statement.
“if H then C”
18
0 0
is a finite automaton?
NOV/DEC 2015
C504.1 BTL 1
te automaton (FA) is a simple idealized machine used
to recognize patterns within input taken from some
character set (or alphabet) C. The job of an FA is to
accept or reject an input depending on whether the
pattern defined by the FA occurs in the input.
Q, ∑, δ, q0, F) where
PART B
1 in the different forms of proof with examples.
(8) NOV/DEC 2012
C504.1 BTL 1
2 that, if L is accepted by an NFA with ε-transitions,
then L is accepted by an NFA without
C504.1 BTL 1
ε-transitions. (8) NOV/DEC 2012, NOV/DEC
2013
9
Grammar Introduction– Types of Grammar - Context Free Grammars and Languages–
Derivations and Languages – Ambiguity- Relationship between derivation and derivation trees –
Simplification of CFG – Elimination of Useless symbols - Unit productions - Null productions –
Greiback Normal form – Chomsky normal form – Problems related to CNF and GNF.
RE1=(0+1)+ 00
RE2=0(0+1)+1
2 entiate regular expression and regular language.
NOV/DEC 2012
C504.2 BTL 1
Refer notes
4
● Let L = L(A) for DFA A = (Q, ∑, δ, q0, F)
● Complement of L = L(B) where DFA B = (Q, ∑,
δ, q0, Q-F)
● B is similar to A except accepting states of A
have become non-accepting states of B and
vice-versa.
A string w is in L(B) iff δ’ (q0,w) is in Q-F which
occurs iff w is not in L(A).
0 0 0 0
0
0,1
1
0,1
1 1 0
is a regular expression ?
MAY/JUNE 2013
C504.2 BTL 1
ular expression (abbreviated regex or regexp) is a
13 sequence of characters that forms a search pattern,
mainly for use in pattern matching with strings, or
string matching, i.e. "find and replace"-like
operations
B→b|bS|aBB
B→bB|€
What is unambiguity?
20
Refer notes
C504.2 BTL 1
Mention the application of CFG.
21
Refer notes
C504.2 BTL 1
ruct the Context free grammar representing the set
22 of palindromes over (0+1)* NOV/DEC 2015
C504.2 BTL 1
S->0S0|1S1| ε
PART B
1 Prove that there exists an NFA with ε-transitions
that accepts the regular expression γ.
C504.2 BTL 1
(10) MAY/JUNE 2012, NOV/DEC
2010
→*A A B
B C B
A B
S→aAa | bBb |€
A→C|a
B→C|b
C→CDE | €
D→A|B|ab
9
Pushdown Automata- Definitions – Moves – Instantaneous descriptions – Deterministic
pushdown automata – Equivalence of Pushdown automata and CFL - pumping lemma for CFL –
problems based on pumping Lemma.
A→aA|BaC|aaa
B→bBb|a
9 C→CA|AC
S→ BaB
A→ aA|aaa
B→bBb|a
22
When is Push Down Automata (PDA) said to C504.3 BTL 1
be deterministic? NOV/DEC 2016
2. S→aSb|ab
C504.3 BTL 1
L = {wwR | W in (a+b)*)} MAY/JUNE
2013,NOV/DEC 2013, MAY/JUNE 2016
9
Definitions of Turing machines – Models – Computable languages and functions –Techniques
for Turing machine construction – Multi head and Multi tape Turing Machines - The Halting
problem –Partial Solvability – Problems about Turing machine- Chomskian hierarchy of
languages.
S→a
Q – {q0,q1,q2}
∑ - {a,b}
10 Г – (a,b,B}
q0 – Initial state
q2 - Final state
δ(q0,a) = (q1,a,R)
δ(q1,a) = (q1,a,R)
δ(q1,b) = (q1,b,R)
δ(q1,B) = (q2,B,R)
q0 – Initial state
B ε Г – Blank Symbols
F - Final state
PART - A
S. Question Course Outcome Blooms
No. Taxanomy
Level
we say a problem is decidable? Give an example of
1 undecidable problem. NOV/DEC 2012
C504.5 BTL 1
Refer notes