Professional Documents
Culture Documents
ITT307 - Ktu Qbank
ITT307 - Ktu Qbank
ITT307 - Ktu Qbank
Preamble: The course is considered as a core subject in the area of computer science. This
course introduces the formal languages and automata theory which includes various formal
languages, strings, finite automaton, grammar, regular expression, pushdown automaton;
Linear bounded automata and variants of Turing machine. Not only do they form basic
models of computation, they are also the foundation of many branches of computer science,
e.g. compilers, NLP, Program verification, Complexity theory. The properties of various
automata will be studied and various rigorous techniques for analyzing and comparing them
will be discussed, by using both formalism and examples.
Prerequisite: The students are expected to have basic knowledge in Set theory, Functions
and Relations.
Course Outcomes: After the completion of the course the student will be able to
CO Bloom’s
Course Outcomes (CO)
No. Category Level
CO Understand the formal language hierarchy and its Level 2:
1 applications in the field of computation. Understand
CO Construct automaton for any given regular language and
Level 3: Apply
2 find its equivalent regular expressions.
CO Design a context free grammar for any given context free
Level 3: Apply
3 language.
CO Construct Turing machines and understand their
Level 3: Apply
4 capability.
CO Analyze P,NP class and various undecidable problems.
Level 4: Analyze
5
Mapping of course outcomes with program outcomes:
PO PO PO PO PO PO PO PO PO PO PO PO
1 2 3 4 5 6 7 8 9 10 11 12
CO 3 2 2
1
CO 3 1 3
2
CO 1 3 2 1
3
CO 3 2 1 2
4
CO 3 3 3
5
3/2/1: High/Medium/Low
INFORMATION TECHNOLOGY
Assessment Pattern
Continuous Assessment
End Semester
Bloom’s Category Tests
Examination
1 2
BL 1: Remember 10 10 20
BL 2: Understand 30 30 60
BL 3: Apply 10 5 15
BL 4: Analyse 5 5
BL 5: Evaluate
BL 6: Create
Mark distribution
Total ESE
CIE ESE
Marks Duration
Attendance : 10 marks
Continuous Assessment Test (2 numbers) : 25 marks
Assignment/Quiz/Course project : 15 marks
End Semester Examination Pattern: There will be two parts; Part A and Part B. Part A
contains 10 questions with 2 questions from each module, having 3 marks for each question.
Students should answer all questions. Part B contains 2 questions from each module of which
student should answer any one. Each question can have maximum 2 sub-divisions and carry
14 marks.
2. Which Normal form representation of CFG will you prefer in converting CFG to
NPDA? Why?
3. Can we construct a deterministic PDA for the language wwR . Justify your answer and
also design a NPDA machine for the above language.
PART A
(10*3=30)
(Each Question carries 3 Marks)
6. Design ε -NFA for the set of strings consisting of zero or more a’s followed by zero or
more b’s followed by zero or more c’s. Try to use ε transitions to simplify your
design.
7. Show that the language L={ 0 i 1 i | i is an integer and i>=1} is not regular using
Pumping Lemma.
8. Explain Closure properties of CFL.
9. Define CFG. Give CFG generating the set of palindromes over alphabet {a,b}.
10. Define PushDown Automata.
PART B (5*14=70)
11. State and prove the equivalence theorem between DFA and NFA.
OR
12. Construct a Moore machine that takes a set of all strings over { a, b } as input and
prints ‘1’ as output for every occurrence of ‘ ab ’ as a substring.
OR
14. State and prove myhill nerode theorem. Also minimize a dfa for any regular language.
15. Obtain CFG for the language " Set of all palindromes". Discuss it.
OR
16. Can we construct a deterministic PDA for the language wwR . Justify your answer.
Also design a NPDA machine for the above language.
S->AB / a
A-> BC / b
B-> aC / B
C->aB/ C
OR
INFORMATION TECHNOLOGY
18. Discuss about Turing Machine Halting Problem with a suitable example.
OR
20. Design a Turing Machine, which can compute the second complement of a given
binary number.
Syllabus
Text Books
Reference Books
*********