THEORY OF COMPUTATION

Similar documents
A R "! I,,, !~ii ii! A ow ' r.-ii ' i ' JA' V5, 9. MiN, ;

Excel Formulas & Functions

Language properties and Grammar of Parallel and Series Parallel Languages

COMPUTATIONAL COMPLEXITY OF LEFT-ASSOCIATIVE GRAMMAR

Kendriya Vidyalaya Sangathan

Guide to Teaching Computer Science

MMOG Subscription Business Models: Table of Contents

Informatics 2A: Language Complexity and the. Inf2A: Chomsky Hierarchy

Self Study Report Computer Science

Enumeration of Context-Free Languages and Related Structures

Dialogue Live Clientside

GACE Computer Science Assessment Test at a Glance

A General Class of Noncontext Free Grammars Generating Context Free Languages

Instrumentation, Control & Automation Staffing. Maintenance Benchmarking Study

Lecture Notes on Mathematical Olympiad Courses

Grammars & Parsing, Part 1:

MAHATMA GANDHI KASHI VIDYAPITH Deptt. of Library and Information Science B.Lib. I.Sc. Syllabus

International Series in Operations Research & Management Science

The Strong Minimalist Thesis and Bounded Optimality

HDR Presentation of Thesis Procedures pro-030 Version: 2.01

THE PROMOTION OF SOCIAL AWARENESS

CHALLENGES FACING DEVELOPMENT OF STRATEGIC PLANS IN PUBLIC SECONDARY SCHOOLS IN MWINGI CENTRAL DISTRICT, KENYA

Erkki Mäkinen State change languages as homomorphic images of Szilard languages

IMPROVING STUDENTS SPEAKING SKILL THROUGH

CS 1103 Computer Science I Honors. Fall Instructor Muller. Syllabus

A Version Space Approach to Learning Context-free Grammars

SkillPort Quick Start Guide 7.0

Knowledge management styles and performance: a knowledge space model from both theoretical and empirical perspectives

Advanced Grammar in Use

Practical Research Planning and Design Paul D. Leedy Jeanne Ellis Ormrod Tenth Edition

Parsing of part-of-speech tagged Assamese Texts

"f TOPIC =T COMP COMP... OBJ

Quick Start Guide 7.0

CS 598 Natural Language Processing

K-12 PROFESSIONAL DEVELOPMENT

Constructing a support system for self-learning playing the piano at the beginning stage

University of Groningen. Systemen, planning, netwerken Bosman, Aart

INDIAN STATISTICAL INSTITUTE 203, BARRACKPORE TRUNK ROAD KOLKATA

THE ALLEGORY OF THE CATS By David J. LeMaster

How do adults reason about their opponent? Typologies of players in a turn-taking game

Chinese Language Parsing with Maximum-Entropy-Inspired Parser

McGraw-Hill Connect and Create Built by Blackboard. Release Notes. Version 2.3 for Blackboard Learn 9.1

THE INFLUENCE OF COOPERATIVE WRITING TECHNIQUE TO TEACH WRITING SKILL VIEWED FROM STUDENTS CREATIVITY

Lecture 1: Machine Learning Basics

Code of Practice on Freedom of Speech

Guidelines for Writing an Internship Report

Module 12. Machine Learning. Version 2 CSE IIT, Kharagpur

Compositional Semantics

IT Students Workshop within Strategic Partnership of Leibniz University and Peter the Great St. Petersburg Polytechnic University

Lecture 10: Reinforcement Learning

GRAMMAR IN CONTEXT 2 PDF

Statewide Framework Document for:

MASTER OF SCIENCE (M.S.) MAJOR IN COMPUTER SCIENCE

Instructor Experience and Qualifications Professor of Business at NDNU; Over twenty-five years of experience in teaching undergraduate students.

STATUS OF OPAC AND WEB OPAC IN LAW UNIVERSITY LIBRARIES IN SOUTH INDIA

Submission of a Doctoral Thesis as a Series of Publications

SCT Banner Student Fee Assessment Training Workbook October 2005 Release 7.2

Syntax Parsing 1. Grammars and parsing 2. Top-down and bottom-up parsing 3. Chart parsers 4. Bottom-up chart parsing 5. The Earley Algorithm

To link to this article: PLEASE SCROLL DOWN FOR ARTICLE

We are strong in research and particularly noted in software engineering, information security and privacy, and humane gaming.

On the Polynomial Degree of Minterm-Cyclic Functions

Heritage Korean Stage 6 Syllabus Preliminary and HSC Courses

leading people through change

Natural Language Processing. George Konidaris

Perspectives of Information Systems

AUTONOMY. in the Law

THE UNITED REPUBLIC OF TANZANIA MINISTRY OF EDUCATION, SCIENCE, TECHNOLOGY AND VOCATIONAL TRAINING CURRICULUM FOR BASIC EDUCATION STANDARD I AND II

University Faculty Details Page on DU Web-site

Course Syllabus for Math

Pragmatic Use Case Writing

Business Finance in New Zealand 2004

Marketing Management

Knowledge-Based - Systems

TABLE OF CONTENTS TABLE OF CONTENTS COVER PAGE HALAMAN PENGESAHAN PERNYATAAN NASKAH SOAL TUGAS AKHIR ACKNOWLEDGEMENT FOREWORD

CURRICULUM VITAE. To develop expertise in Graph Theory and expand my knowledge by doing Research in the same.

PeopleSoft Human Capital Management 9.2 (through Update Image 23) Hardware and Software Requirements

Conducting the Reference Interview:

21st CENTURY SKILLS IN 21-MINUTE LESSONS. Using Technology, Information, and Media

Course Content Concepts

ACADEMIC POLICIES AND PROCEDURES

School of Innovative Technologies and Engineering

EDEXCEL FUNCTIONAL SKILLS PILOT TEACHER S NOTES. Maths Level 2. Chapter 4. Working with measures

Rules of Procedure for Approval of Law Schools

Diagnostic Test. Middle School Mathematics

Presentation Advice for your Professional Review

Guidelines for Incorporating Publication into a Thesis. September, 2015

CS 101 Computer Science I Fall Instructor Muller. Syllabus

A THESIS. By: IRENE BRAINNITA OKTARIN S

Communication and Cybernetics 17

Date : Controller of Examinations Principal Wednesday Saturday Wednesday

IMPROVING STUDENTS READING COMPREHENSION BY IMPLEMENTING RECIPROCAL TEACHING (A

SAMPLE AFFILIATION AGREEMENT

IMPROVING STUDENTS WRITING SKILL USING PAIR CHECK METHOD AT THE SECOND GRADE STUDENTS OF SMP MUHAMMADIYAH 3 JETIS IN THE ACADEMIC YEAR OF 2015/2016.

RANKING AND UNRANKING LEFT SZILARD LANGUAGES. Erkki Mäkinen DEPARTMENT OF COMPUTER SCIENCE UNIVERSITY OF TAMPERE REPORT A ER E P S I M S

CPMT 1303 Introduction to Computer Technology COURSE SYLLABUS

ADMISSION NOTICE - UNIVERSITY OF CALCUTTA

MBA 5652, Research Methods Course Syllabus. Course Description. Course Material(s) Course Learning Outcomes. Credits.

CPMT 1347 Computer System Peripherals COURSE SYLLABUS

Writing Research Articles

Testing A Moving Target: How Do We Test Machine Learning Systems? Peter Varhol Technology Strategy Research, USA

Transcription:

THEORY OF COMPUTATION

THEORY OF COMPUTATION For B.E. (IT, CS), MCA, BSC, BCA, MSC and Other Computer Courses By Dr. Poonam Sinha Head (IT/MCA), BUIT, Barkatullah University Bhopal (MP) Sunita Gond Lecturer, (IT/MCA) Deptt. BUIT, Barkatullah University Bhopal (MP) Apurva Saxena Lecturer, (IT/MCA) Deptt. BUIT, Barkatullah University Bhopal (MP) UNIVERSITY SCIENCE PRESS (An Imprint of Laxmi Publications (P) Ltd.) BANGALORE CHENNAI COCHIN GUWAHATI HYDERABAD JALANDHAR KOLKATA LUCKNOW MUMBAI RANCHI NEW DELHI INDIA USA GHANA KENYA

THEORY OF COMPUTATION Copyright by Laxmi Publications (P) Ltd. All rights reserved including those of translation into other languages. In accordance with the Copyright (Amendment) Act, 2012, no part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise. Any such act or scanning, uploading, and or electronic sharing of any part of this book without the permission of the publisher constitutes unlawful piracy and theft of the copyright holder s intellectual property. If you would like to use material from the book (other than for review purposes), prior written permission must be obtained from the publishers. Printed and bound in India Typeset at Excellent Graphics, Delhi First Edition: 2015 UTC-9647-195-THEORY OF COMPUTATION-SIN ISBN 978-93-83828-25-8 Limits of Liability/Disclaimer of Warranty: The publisher and the author make no representation or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties. The advice, strategies, and activities contained herein may not be suitable for every situation. In performing activities adult supervision must be sought. Likewise, common sense and care are essential to the conduct of any and all activities, whether described in this book or otherwise. Neither the publisher nor the author shall be liable or assumes any responsibility for any injuries or damages arising herefrom. The fact that an organization or Website if referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Website may provide or recommendations it may make. Further, readers must be aware that the Internet Websites listed in this work may have changed or disappeared between when this work was written and when it is read. All trademarks, logos or any other mark such as Vibgyor, USP, Amanda, Golden Bells, Firewall Media, Mercury, Trinity, Laxmi appearing in this work are trademarks and intellectual property owned by or licensed to Laxmi Publications, its subsidiaries or affiliates. Notwithstanding this disclaimer, all other names and marks mentioned in this work are the trade names, trademarks or service marks of their respective owners. Published in India by & Bangalore 080-26 75 69 30 & Chennai 044-24 34 47 26, 24 35 95 07 & Cochin 0484-237 70 04, 405 13 03 & Guwahati 0361-254 36 69, 251 38 81 & Hyderabad 040-27 55 53 83, 27 55 53 93 & Jalandhar 0181-222 12 72 & Kolkata 033-22 27 43 84 & Lucknow 0522-220 99 16 & Mumbai 022-24 91 54 15, 24 92 78 69 & Ranchi 0651-220 44 64 113, GOLDEN HOUSE, DARYAGANJ, NEW DELHI - 110002, INDIA Telephone : 91-11-4353 2500, 4353 2501 Fax : 91-11-2325 2572, 4353 2528 C www.laxmipublications.com info@laxmipublications.com Printed at: Branches

Dedicated to All Beloved Readers, Friends and Family Members

CONTENT ONTENTS Preface Acknowledgements Syllabuses of Various Universities vii viii ix 1. Introduction of Automata Theory... 1 1.1. Formal Language... 1 1.2. Mathematics Preliminaries... 1 1.3. Relations and Functions... 2 1.4. Graphs... 3 1.5. Trees... 5 1.6. Alphabet... 6 1.7. Strings... 6 1.8. Principle of Induction... 7 1.9. Propositional Logic (Zero Order Logic)... 9 1.10. Predicate Logic (First Order Logic)... 10 2. Automata... 13 2.1. Automata and Definition... 13 2.2. Description... 13 2.3. Finite Automata/Finite State Machine (FSM)... 14 2.4. Equivalence of DFA and NFA... 18 2.5. Finite Automata with Null String or NFA with ε Moves to NFA without ε... 20 2.6. Minimisation of Finite State Machine or My-Hill-Nerode Algorithm... 22 2.7. FSM with Output... 24 2.8. Regular Expression... 27 2.9. Regular Grammar... 29 2.10. Pumping Lemma for Regular Grammar... 30 3. Formal Language... 33 3.1. Definition and Description... 33 3.2. Phase Structured Grammar or Chomsky Classification of Languages/ Chomsky Hierarchy... 33 3.3. Properties of Families of Languages... 34 ( vii )

( viii ) 4. Regular Expression... 38 4.1. Finite Automata... 38 4.2. Equivalence of Finite Automata and Regular Expression... 38 4.3. Equivalence of Two-Way Finite Automata... 39 5. Context Free Grammar... 42 5.1. Grammar and Context Free Language... 42 5.2. Derivation Tree (Parse Tree)... 43 5.3. Unrestricted Grammar... 43 5.4. Ambiguous Context Free Language... 45 5.5. Simplification of Context Free Grammars... 45 5.6. Normal Form of CFG... 48 6. Pushdown Automata... 50 6.1. Pushdown Automata... 50 6.2. Nondeterministic Pushdown Automata... 53 6.3. Pushdown Automata and Context Free Grammar... 54 6.4. Two-way Pushdown Automaton... 55 6.5. Parsing... 58 6.6. Pumping Lemma for CFG... 61 6.7. Context Free Language... 62 6.8. Pumping Lemma for CFL (Context Free Language)... 62 7. Turing Machine... 64 7.1. Introduction... 64 7.2. Model of Turing Machine... 64 7.3. Languages Accepted by Turing Machine... 65 7.4. Universal Turing Machine... 66 7.5. Determinism in Turing Machine... 66 7.6. Non-determinism in Turing Machine... 66 8. Types of Turing Machine... 67 8.1. Introduction... 67 8.2. Halting Problem of Turing Machine... 68 8.3. Post Correspondence Problem... 68

( ix ) 9. Computability... 69 9.1. Introduction to Complexity Theory... 69 9.2. Introduction to Undecidability Recursively Enumerable Sets... 71 10. Context Sensitive Language... 73 10.1. Context Sensitive Language... 73 10.2. Primitive Recursive Functions... 74 10.3. Linear Bounded Automata... 74 10.4. Types of Grammar and its Hierarchy... 76 Appendix... 77 Solved Examples... 116 Important University Solved Problems... 126 Objective Type Questions... 137 Question Papers... 146 Index... 205

PREF REFACE We are highly delighted to place the book title Theory of Computation in the hands of one esteemed readers. This book has been written for B.E. (IT & CS), MCA, BSc, BCA, MSc and other computer programmes students keeping in view the following special points : Conceptual clarity and practical orientation. To learn the basic concept used in the design and analysis of Theory of Computation. Introduces the principles of Theory of Computation. Provides various methods and techniques suitable for a variety of applications. Covers all aspects of automata. Covers abundance of examples and their solutions. We have put our sincere efforts and knowledge to make you understand the subject matter in simplest and easiest way. Valuable suggestions are always welcome. We have considered the syllabus of Barkatullah University, RGPV, Delhi University and Devi Ahilya University and tried to simplify language of other books. Authors ( xi )

ACKNO CKNOWLEDGEMENT WLEDGEMENTS We take this opportunity to expresses our gratitude and thanks to the collegues for their valuable technical suggestions and constant encouragement, without which this book would not come into existence. We are grateful to our family members for inspiring us for this project. We deeply express our heartful thanks to the publishers for publishing this book in such a beautiful get-up and well in time. Authors ( xii )

SYLLABUSES OF VARIOUS UNIVERSITIES BARKATULLAH UNIVERSITY (Theory of Computation) Unit I Introduction to Theory of Computation and Finite Automata. Mathematical Preliminaries and Notation : Sets, functions and relations, Graphs and Trees, Proof Techniques, Basic concepts, Languages, Grammars, automatas, deterministic finite accepters, Deterministic accepters and Transition Graphs, Languages, Non deterministic finite accepters, definition of a NDFA, Equivalence of DFA and NDFA, Reduction of the Number of states in finite automata. Unit II Grammars and Languages. Regular expression, Regular Grammar, Regular languages, closure properties of Regular languages, Context free grammars, Simplification of Context free grammars and Normal forms, Properties of context free languages. Unit III Pushdown Automata. Non deterministic pushdown automata : Definition of a pushdown automata, The language accepted by a pushdown automata, Pushdown automata and context free languages, Pushdown automata for context free languages, CFG s for PDA, Deterministic Pushdown automata and Deterministic Context free languages, Grammars and Deterministic context free languages. Unit IV Turing Machines. The Standard Turing Machine : Definition of a Turing Machine, Turing Machines as language accepters, and Turing Machines as Transducers. Combining Turing Machines for complicated tasks, Turing thesis, other models of Turing Machines. Unit V Computability. Limits of algorithmic computation, Some Problems that can not be solved by Turing Machines, Computability and Decidability, the Turing Machine Halting Problem, Reducing one Undecidable Problem to another, Undecidable Problems for Recursively Enumerable languages, The post correspondence problem: Indecidable problems for context free languages, Recursive function, Primitives recursive functions, Ackermanris functions, recursive functions, Post Systems : Rewriting systems : Matrix grammars, Markov Algorithms. ( xiii )

Theory Of Computation 40% OFF Publisher : Laxmi Publications ISBN : 9789383828258 Author : Poonam Sinha Type the URL : http://www.kopykitab.com/product/11683 Get this ebook