By John E. Hopcroft, Rajeev Motwani and Jeffrey D. Ullman

Slides:



Advertisements
Similar presentations
Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Advertisements

Simplifications of Context-Free Grammars
Variations of the Turing Machine
PDAs Accept Context-Free Languages
ALAK ROY. Assistant Professor Dept. of CSE NIT Agartala
AP STUDY SESSION 2.
1
1 Vorlesung Informatik 2 Algorithmen und Datenstrukturen (Parallel Algorithms) Robin Pomplun.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
UNITED NATIONS Shipment Details Report – January 2006.
RXQ Customer Enrollment Using a Registration Agent (RA) Process Flow Diagram (Move-In) Customer Supplier Customer authorizes Enrollment ( )
By John E. Hopcroft, Rajeev Motwani and Jeffrey D. Ullman
Source of slides: Introduction to Automata Theory, Languages and Computation.
David Burdett May 11, 2004 Package Binding for WS CDL.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
Custom Statutory Programs Chapter 3. Customary Statutory Programs and Titles 3-2 Objectives Add Local Statutory Programs Create Customer Application For.
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt BlendsDigraphsShort.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Break Time Remaining 10:00.
Chapter 11: Models of Computation
Turing Machines.
PP Test Review Sections 6-1 to 6-6
Bright Futures Guidelines Priorities and Screening Tables
EIS Bridge Tool and Staging Tables September 1, 2009 Instructor: Way Poteat Slide: 1.
Bellwork Do the following problem on a ½ sheet of paper and turn in.
XML and Databases Exercise Session 3 (courtesy of Ghislain Fourny/ETH)
Exarte Bezoek aan de Mediacampus Bachelor in de grafische en digitale media April 2014.
VOORBLAD.
How to convert a left linear grammar to a right linear grammar
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
© 2012 National Heart Foundation of Australia. Slide 2.
Adding Up In Chunks.
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
Subtraction: Adding UP
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
Analyzing Genes and Genomes
1 Let’s Recapitulate. 2 Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
Converting a Fraction to %
Clock will move after 1 minute
Intracellular Compartments and Transport
PSSA Preparation.
Essential Cell Biology
Introduction to Computability Theory
Immunobiology: The Immune System in Health & Disease Sixth Edition
Physics for Scientists & Engineers, 3rd Edition
Energy Generation in Mitochondria and Chlorplasts
Murach’s OS/390 and z/OS JCLChapter 16, Slide 1 © 2002, Mike Murach & Associates, Inc.
1 Decidability continued…. 2 Theorem: For a recursively enumerable language it is undecidable to determine whether is finite Proof: We will reduce the.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
The Pumping Lemma for CFL’s
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
CSCI 2670 Introduction to Theory of Computing
Formal Languages, Automata and Models of Computation
Presentation transcript:

By John E. Hopcroft, Rajeev Motwani and Jeffrey D. Ullman Theory of Computation Decidability Recursive and Recursively Enumerable Languages Source of Slides: Introduction to Automata Theory, Languages, and Computation By John E. Hopcroft, Rajeev Motwani and Jeffrey D. Ullman And Introduction to Languages and The Theory of Computation by J. C. Martin Prof. Muhammad Saeed

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Basic Mathematical Definitions Numbers: N = natural numbers = {1, 2, 3, …} Z = integers = {…, -2, -1, 0, 1, 2, …} Q = rational numbers ( expressed in ratios, 1/5, 3/7, 2/9 etc.) R = real numbers ( floating point, 1.5, 2.5674 etc. ) C = complex numbers (2+5i, 27- 3i etc. ) Countable Set: A set is countable if there is a one-to-one correspondence between the set and N, the natural numbers. It can be enumerated. { a, b, c, d, e, ……… } N, Z and Q are countable. R and C are uncountable. 1 2 3 4 5 Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Rational Numbers, Q are countable 1/1 1/2 1/3 1/4 1/5 1/6 … 2/1 2/2 2/3 2/4 2/5 2/6 … 3/1 3/2 3/3 3/4 3/5 3/6 … 4/1 4/2 4/3 4/4 4/5 4/6 … 5/1 … ……. Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Uncountable Set: Cantor’s Diagonalization s1 = (0, 0, 0, 0, 0, 0, 0, ...) s2 = (1, 1, 1, 1, 1, 1, 1, ...) s3 = (0, 1, 0, 1, 0, 1, 0, ...) s4 = (1, 0, 1, 0, 1, 0, 1, ...) s5 = (1, 1, 0, 1, 0, 1, 1, ...) s6 = (0, 0, 1, 1, 0, 1, 1, ...) s7 = (1, 0, 0, 0, 1, 0, 0, ...) ………. s0 = (1, 0, 1, 1, 1, 0, 1, ...) Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability R is uncountable Proof: Suppose R is countable List R according to the bijection f: n f(n) _ 1 3.14159… 2 5.55555… 3 0.12345… 4 0.50000… … Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability R is uncountable Proof: Suppose R is countable List R according to the bijection f: n f(n) _ 1 3.14159… 2 5.55555… 3 0.12345… 4 0.50000… … set x = 0.a1a2a3a4… where digit ai ≠ ith digit after decimal point of f(i) (not 0, 9) e.g. x = 0.2312… x cannot be in the list! Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Turing Machine Decidability Turing decidability L is Turing decidable (or just decidable) if there exists a Turing machine M that accepts all strings in L and rejects all strings not in L. Note that by rejection we mean that the machine halts after a finite number of steps and announces that the input string is not acceptable. Acceptance, as usual, also requires a decision after a finite number of steps. Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Decidability Turing Recognizability L is Turing recognizable if there is a Turing machine M that recognizes L, that is, M should accept all strings in L and M should not accept any strings not in L. This is not the same as decidability because recognizability does not require that M actually reject strings not in L. M may reject some strings not in L but it is also possible that M will simply "remain undecided" on some strings not in L; for such strings, M's computation never halts. Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Recursion and Recursive Functions Enumerable Sets Recursively Enumerable Languages Resursive Languages Non-Recursively Enumerable Languages Dept. of Computer Science & IT, FUUAST Theory of Computation

decidable  RE  all languages Decidability decidable all languages regular languages context free languages RE decidable  RE  all languages Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability A language is recursively enumerable if some Turing machine accepts it.   Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability A language is recursive if some Turing machine accepts it and halts on any input string. OR A language is recursive if there is a membership algorithm for it.   Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability A language is recursively enumerable if and only if there is an enumeration procedure for it. If a language L is recursive then there is an enumeration procedure for it Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Theorem: S is an infinite countable set, the powerset 2s of S is uncountable Since S is countable, we can write S = { s1 , s2 , s3 , s4 , …….. } where S consists of s1 , s2 , s3 , s4 , ….. elements and the powerset 2s is of the form: { {s1}, {s2 }, … {s1 , s2 }, ….. {s1 , s2 , s3 , s4 } … } Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability String Encoding: Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Coding Turing Machines Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability   Transition Rules are: Coding Code for M Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Diagonalization Language: Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Theorem: Ld is not a recursively enumerable language. That is there is no Turing Machine that accepts Ld Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability   Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability   Fig. 10 Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability   Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Decidable Languages about DFA Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Halting and Acceptance Problems: Acceptance Problem: Does a Turing machine accept an input string? ATM is recursively enumerable. Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation END Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation

Dept. of Computer Science & IT, FUUAST Theory of Computation Decidability Dept. of Computer Science & IT, FUUAST Theory of Computation