SlideShare a Scribd company logo
Reg. No. :
B.E. / B.Tech. DEGREE EXAMINATION, APRIL / MAY 2017
Fifth Semester
Computer Science and Engineering
CS6503 THEORY OF COMPUTATION
(Regulation 2013)
Time : Three hours Maximum : 100 marks
Answer ALL Questions
Part A – (𝟏𝟎 × 𝟐 = 𝟐𝟎 marks)
1. Generate NFA- € to represent a*b | c.
2. Show whether a language L = { 0n 12n | n > 0} is regular or not using pumping lemma.
3. Give language of regular expression a? (a / b)*.
4. Generate CFG for a signed integer constant in C language.
5. Construct a rightmost derivation of ( a + b ) * c for using the grammar, and also state that
whether a given grammar is ambiguous one or not E-> E+E /E*E/(E)/id.
6. Differentiate PDA acceptance by empty stack method with acceptance by the final sate
method.
7. Write short note on Chomsky hierarchy of languages.
8. What is halting problem?
9. What is primitive recursive function?
10. Define NP completeness.
Part B – (5 × 𝟏𝟔 = 𝟖𝟎 marks)
11 (a) Construct NFA with epsilon for the RE = (𝑎/𝑏 )*𝑎𝑏 and convert into DFA and further
find the minimized DFA.
Or
(b) Prove for every 𝑛 >= 1 by mathematical induction ∑ 𝑖3
= {𝑛(𝑛 + 1)/2}2𝑛
1 .
12 (a) Given the CFG G, find CFG G’ in CNF generating the language L(G) – {^}.
S → AACD
A → aAb | ^
C → aC | a
D → aDa | bDb | ^
Or
(b) Concert the following grammar G into Greibach Normal Form (GNF).
S → XA | BB
B → b | SB
X → b
A → a
QuestionPaper Code : 71684
13 (a) (i) Construct a Deterministic Push down Automata for even length palindrome.
(ii) Prove – If PDA P is constructed from CFG G by the above construction, then
𝑁(𝑃) = 𝐿(𝐺).
Or
(b) Convert the following CFG to PDA and verify for (a+b) and a++.
I → a | b | Ia | Ib | I0 | I1
E → I | E+E | E*E| (E)
14 (a) Construct a Turing Machine to reverse the given string.
Or
(b) Explain Multi tape and Multi head Turing Machine with suitable example.
15 (a) Explain recursive and recursively enumerable languages with suitable example.
Or
(b) Explain tractable and intractable problem with suitable example.
All the Best – No substitute for hard work.
Mr. G. Appasami SET, NET, GATE, M.Sc., M.C.A.,M.Phil., M.Tech.,(P.hd.), MISTE, MIETE, AMIE, MCSI, MIAE, MIACSIT,
MASCAP, MIARCS, MISIAM, MISCE, MIMS, MISCA, MISAET, PGDTS, PGDBA, PGDHN, PGDST, (AP / CSE / DRPEC).

More Related Content

DOC
Model toc
PDF
Cs6503 theory of computation may june 2016 be cse anna university question paper
PDF
Cs6503 theory of computation november december 2015 be cse anna university q...
PDF
Cs2303 theory of computation november december 2015
DOCX
Cs6503 theory of computation november december 2016
DOCX
CS2303 Theory of computation April may 2015
PDF
Cs2303 theory of computation all anna University question papers
PDF
Cs2303 theory of computation may june 2016
Model toc
Cs6503 theory of computation may june 2016 be cse anna university question paper
Cs6503 theory of computation november december 2015 be cse anna university q...
Cs2303 theory of computation november december 2015
Cs6503 theory of computation november december 2016
CS2303 Theory of computation April may 2015
Cs2303 theory of computation all anna University question papers
Cs2303 theory of computation may june 2016

What's hot (20)

DOCX
Cs6660 compiler design may june 2017 answer key
DOCX
Cs6660 compiler design november december 2016 Answer key
PDF
PDF
Problem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
PDF
A Graph-based Cross-lingual Projection Approach for Spoken Language Understan...
PDF
Shape Safety in Tensor Programming is Easy for a Theorem Prover -SBTB 2021
PDF
Concurrent Argumentation with Time: an Overview
PPT
Cs105 l15-bucket radix
PDF
Automatic variational inference with latent categorical variables
PDF
Variational inference using implicit distributions
PPT
History of c++
PPTX
Theory of Automata and formal languages Unit 5
PDF
Prepostinfix
PDF
COA-QUESTION-BANK.pdf
PDF
PPT
History of c++
PPTX
CNF & Leftmost Derivation - Theory of Computation
DOCX
Ch 6 qbank
PPTX
Graph coloring using backtracking
PPTX
Dag representation of basic blocks
Cs6660 compiler design may june 2017 answer key
Cs6660 compiler design november december 2016 Answer key
Problem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
A Graph-based Cross-lingual Projection Approach for Spoken Language Understan...
Shape Safety in Tensor Programming is Easy for a Theorem Prover -SBTB 2021
Concurrent Argumentation with Time: an Overview
Cs105 l15-bucket radix
Automatic variational inference with latent categorical variables
Variational inference using implicit distributions
History of c++
Theory of Automata and formal languages Unit 5
Prepostinfix
COA-QUESTION-BANK.pdf
History of c++
CNF & Leftmost Derivation - Theory of Computation
Ch 6 qbank
Graph coloring using backtracking
Dag representation of basic blocks
Ad

Similar to Cs6503 theory of computation april may 2017 (20)

PDF
TOC_Solutions-Adi.pdf
PDF
TOC_Solutions-Adi.pdf
PDF
TOC Solutions-Adi.pdf
PDF
TOC question bank.pdf
DOCX
V cse cs6503 model qb1 1
PDF
3rd Semester Computer Science and Engineering (ACU-2022) Question papers
PDF
Automata And Compiler Design
PDF
3rd Semester Computer Science and Engineering (ACU) Question papers
PPTX
Context-free Language, Grammar and Push Down Automata
PDF
Cs gate-2011
PDF
Cs gate-2011
PDF
Fffgggggfffffffggggggggggggggggggile.pdf
PDF
Revision1 C programming
PPT
Context Free Languages by S.Mandal-1.ppt
PDF
Mcs 10 104 compiler design dec 2014
PDF
17432 object oriented programming
PDF
3rd Semester Computer Science and Engineering (ACU) Question papers
PDF
Ec2203 digital electronics questions anna university by www.annaunivedu.org
PPTX
Bsc math previous exam quetions
PDF
Model answer of exam TC_spring 2013
TOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdf
TOC Solutions-Adi.pdf
TOC question bank.pdf
V cse cs6503 model qb1 1
3rd Semester Computer Science and Engineering (ACU-2022) Question papers
Automata And Compiler Design
3rd Semester Computer Science and Engineering (ACU) Question papers
Context-free Language, Grammar and Push Down Automata
Cs gate-2011
Cs gate-2011
Fffgggggfffffffggggggggggggggggggile.pdf
Revision1 C programming
Context Free Languages by S.Mandal-1.ppt
Mcs 10 104 compiler design dec 2014
17432 object oriented programming
3rd Semester Computer Science and Engineering (ACU) Question papers
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Bsc math previous exam quetions
Model answer of exam TC_spring 2013
Ad

More from appasami (17)

PPTX
Data visualization using python
PDF
Cs6503 theory of computation book notes
DOCX
Cs6660 compiler design may june 2016 Answer Key
PDF
CS2303 theory of computation Toc answer key november december 2014
PDF
CS6702 graph theory and applications notes pdf book
DOCX
Cs6402 design and analysis of algorithms impartant part b questions appasami
DOCX
Cs6702 graph theory and applications question bank
PDF
Cs6702 graph theory and applications Anna University question paper apr may 2...
DOC
Cs6503 theory of computation lesson plan
DOCX
Cs6503 theory of computation syllabus
DOC
Cs6503 theory of computation index page
PDF
Cs6702 graph theory and applications 2 marks questions and answers
PDF
Cs6402 design and analysis of algorithms may june 2016 answer key
DOCX
Cs6702 graph theory and applications syllabus
DOC
Cs6702 graph theory and applications title index page
DOC
Cs6702 graph theory and applications lesson plan
PDF
Computer organization-and-architecture-questions-and-answers
Data visualization using python
Cs6503 theory of computation book notes
Cs6660 compiler design may june 2016 Answer Key
CS2303 theory of computation Toc answer key november december 2014
CS6702 graph theory and applications notes pdf book
Cs6402 design and analysis of algorithms impartant part b questions appasami
Cs6702 graph theory and applications question bank
Cs6702 graph theory and applications Anna University question paper apr may 2...
Cs6503 theory of computation lesson plan
Cs6503 theory of computation syllabus
Cs6503 theory of computation index page
Cs6702 graph theory and applications 2 marks questions and answers
Cs6402 design and analysis of algorithms may june 2016 answer key
Cs6702 graph theory and applications syllabus
Cs6702 graph theory and applications title index page
Cs6702 graph theory and applications lesson plan
Computer organization-and-architecture-questions-and-answers

Recently uploaded (20)

DOCX
573137875-Attendance-Management-System-original
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Geodesy 1.pptx...............................................
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Well-logging-methods_new................
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Construction Project Organization Group 2.pptx
PDF
Digital Logic Computer Design lecture notes
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
web development for engineering and engineering
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
OOP with Java - Java Introduction (Basics)
PPT
Mechanical Engineering MATERIALS Selection
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
573137875-Attendance-Management-System-original
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Embodied AI: Ushering in the Next Era of Intelligent Systems
Geodesy 1.pptx...............................................
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Well-logging-methods_new................
additive manufacturing of ss316l using mig welding
Construction Project Organization Group 2.pptx
Digital Logic Computer Design lecture notes
Internet of Things (IOT) - A guide to understanding
web development for engineering and engineering
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
OOP with Java - Java Introduction (Basics)
Mechanical Engineering MATERIALS Selection
CYBER-CRIMES AND SECURITY A guide to understanding
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...

Cs6503 theory of computation april may 2017

  • 1. Reg. No. : B.E. / B.Tech. DEGREE EXAMINATION, APRIL / MAY 2017 Fifth Semester Computer Science and Engineering CS6503 THEORY OF COMPUTATION (Regulation 2013) Time : Three hours Maximum : 100 marks Answer ALL Questions Part A – (𝟏𝟎 × 𝟐 = 𝟐𝟎 marks) 1. Generate NFA- € to represent a*b | c. 2. Show whether a language L = { 0n 12n | n > 0} is regular or not using pumping lemma. 3. Give language of regular expression a? (a / b)*. 4. Generate CFG for a signed integer constant in C language. 5. Construct a rightmost derivation of ( a + b ) * c for using the grammar, and also state that whether a given grammar is ambiguous one or not E-> E+E /E*E/(E)/id. 6. Differentiate PDA acceptance by empty stack method with acceptance by the final sate method. 7. Write short note on Chomsky hierarchy of languages. 8. What is halting problem? 9. What is primitive recursive function? 10. Define NP completeness. Part B – (5 × 𝟏𝟔 = 𝟖𝟎 marks) 11 (a) Construct NFA with epsilon for the RE = (𝑎/𝑏 )*𝑎𝑏 and convert into DFA and further find the minimized DFA. Or (b) Prove for every 𝑛 >= 1 by mathematical induction ∑ 𝑖3 = {𝑛(𝑛 + 1)/2}2𝑛 1 . 12 (a) Given the CFG G, find CFG G’ in CNF generating the language L(G) – {^}. S → AACD A → aAb | ^ C → aC | a D → aDa | bDb | ^ Or (b) Concert the following grammar G into Greibach Normal Form (GNF). S → XA | BB B → b | SB X → b A → a QuestionPaper Code : 71684
  • 2. 13 (a) (i) Construct a Deterministic Push down Automata for even length palindrome. (ii) Prove – If PDA P is constructed from CFG G by the above construction, then 𝑁(𝑃) = 𝐿(𝐺). Or (b) Convert the following CFG to PDA and verify for (a+b) and a++. I → a | b | Ia | Ib | I0 | I1 E → I | E+E | E*E| (E) 14 (a) Construct a Turing Machine to reverse the given string. Or (b) Explain Multi tape and Multi head Turing Machine with suitable example. 15 (a) Explain recursive and recursively enumerable languages with suitable example. Or (b) Explain tractable and intractable problem with suitable example. All the Best – No substitute for hard work. Mr. G. Appasami SET, NET, GATE, M.Sc., M.C.A.,M.Phil., M.Tech.,(P.hd.), MISTE, MIETE, AMIE, MCSI, MIAE, MIACSIT, MASCAP, MIARCS, MISIAM, MISCE, MIMS, MISCA, MISAET, PGDTS, PGDBA, PGDHN, PGDST, (AP / CSE / DRPEC).