©Brooks/Cole, 2003 Chapter 17 Theory of Computation.

Slides:



Advertisements
Similar presentations
Chapter 11: Models of Computation
Advertisements

Copyright © 2012 Pearson Education, Inc. Chapter 12: Theory of Computation Computer Science: An Overview Eleventh Edition by J. Glenn Brookshear.
CS 345: Chapter 9 Algorithmic Universality and Its Robustness
Turing Machine Read/Write – Move Left/Right BB Read/Write Head State Qi.
CS 461 – Oct. 21 Begin chapter 3 We need a better (more encompassing) model of computation. Ex. { 1 n 2 n 3 n } couldn’t be accepted by PDA. –How could.
©Brooks/Cole, 2001 Chapter 9 Pointers. ©Brooks/Cole, 2001 Figure 9-1.
Prof. Busch - LSU1 Decidable Languages. Prof. Busch - LSU2 Recall that: A language is Turing-Acceptable if there is a Turing machine that accepts Also.
©Brooks/Cole, 2001 Chapter 9 Pointers. ©Brooks/Cole, 2001 Figure 9-1.
©Brooks/Cole, 2001 Chapter 2 Introduction to The C Language.
©Brooks/Cole, 2001 Chapter 13 Binary Files. ©Brooks/Cole, 2001 Figure 13-1.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Turing Machines.
November 1, 2004Introduction to Computer Security ©2004 Matt Bishop Slide #3-1 Chapter 3: Foundational Results Overview Harrison-Ruzzo-Ullman result –Corollaries.
©Brooks/Cole, 2001 Chapter 8 Arrays. ©Brooks/Cole, 2001 Figure 8-1.
Fall 2004COMP 3351 Reducibility. Fall 2004COMP 3352 Problem is reduced to problem If we can solve problem then we can solve problem.
©Brooks/Cole, 2001 Chapter 7 Text Files. ©Brooks/Cole, 2001 Figure 7-1.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
©Brooks/Cole, 2001 Chapter 3 Structure of a C Program.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 5 Reducibility Contents Undecidable Problems from Language Theory.
©Brooks/Cole, 2001 Chapter 10 Pointer Applications.
Fall 2005Costas Busch - RPI1 Recursively Enumerable and Recursive Languages.
©Brooks/Cole, 2001 Chapter 11 Strings. ©Brooks/Cole, 2001 Figure 11-1.
1 Reducibility. 2 Problem is reduced to problem If we can solve problem then we can solve problem.
©Brooks/Cole, 2001 Chapter 4 Functions. ©Brooks/Cole, 2001 Figure 4-1.
More Theory of Computing
Unsolvability and Infeasibility. Computability (Solvable) A problem is computable if it is possible to write a computer program to solve it. Can all problems.
1 The Halting Problem and Decidability How powerful is a TM? Any program in a high level language can be simulated by a TM. Any algorithmic procedure carried.
1 Theory: Models of Computation  Readings:  Chapter 11 & Chapter 3.6 of [SG]  Content:  What is a Model  Model of Computation  Model of a Computing.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Theory of Computation, NTUEE Theory of Computation Lecture 04 Undecidability Part of the materials are from Courtesy of Prof. Peter J. Downey Department.
Basics of Computation Theory. What is "abstraction"? Abstraction unifies multiple and different objects into one concept  describes the common properties.
©Brooks/Cole, 2003 Chapter 17 Theory of Computation.
Chapter 11 Theory of Computation. © 2005 Pearson Addison-Wesley. All rights reserved 11-2 Chapter 11: Theory of Computation 11.1 Functions and Their Computation.
Computer Science 101 Theory of Computing. Computer Science is... The study of algorithms, with respect to –their formal properties –their linguistic realizations.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
D E C I D A B I L I T Y 1. 2 Objectives To investigate the power of algorithms to solve problems. To explore the limits of algorithmic solvability. To.
Computation Motivating questions: What does “computation” mean? What are the similarities and differences between computation in computers and in natural.
Fundamentals of Informatics Lecture 12 The Halting Problem Bas Luttik.
Chapter 11 Theory of Computation © 2007 Pearson Addison-Wesley. All rights reserved.
1 Introduction to Turing Machines
Chapter 12 Theory of Computation Introduction to CS 1 st Semester, 2014 Sanghyun Park.
Theory of Computation Foundations of Computer Science  Cengage Learning.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 5 Reducibility Some slides are in courtesy.
Undecidability and The Halting Problem
Chapter 9 Turing Machines What would happen if we change the stack in Pushdown Automata into some other storage device? Truing Machines, which maintains.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
The Church-Turing Thesis Chapter Are We Done? FSM  PDA  Turing machine Is this the end of the line? There are still problems we cannot solve:
Decidability.
Theory of Computation. Introduction We study this course in order to answer the following questions: What are the fundamental capabilities and limitations.
Chapter 12: Theory of Computation
Chapter 12: Theory of Computation
Busch Complexity Lectures: Reductions
Reductions.
Chapter 11 Theory of Computation © 2007 Pearson Addison-Wesley.
Reductions Costas Busch - LSU.
Ch. 11 Theory of Computation
Modeling Computation:
Chapter 9 TURING MACHINES.
Chapter 12: Theory of Computation
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
Turing acceptable languages and Enumerators
Chapter 3: The CHURCH-Turing thesis
By John E. Hopcroft, Rajeev Motwani and Jeffrey D. Ullman
Decidable Languages Costas Busch - LSU.
Turing acceptable languages and Enumerators
Chapter 17 Theory of Computation.
Presentation transcript:

©Brooks/Cole, 2003 Chapter 17 Theory of Computation

©Brooks/Cole, 2003 Understand how a simple language with limited statements can solve any problem. Understand how the Turing machine can solve any problem that can be solved by a computer. Understand the Godel number and its importance in the theory of computation. After reading this chapter, the reader should be able to: O BJECTIVES Understand the halting problem as an example of a large set of problems that cannot be solved by a computer.

©Brooks/Cole, 2003 SIMPLE LANGUAGE 17.1

©Brooks/Cole, 2003 Figure 17-1 Statements in simple language

©Brooks/Cole, 2003 TURING MACHINE 17.2

©Brooks/Cole, 2003 Figure 17-2 Turing machine

©Brooks/Cole, 2003 Figure 17-3 Tape

©Brooks/Cole, 2003 Figure 17-4 Transition state

©Brooks/Cole, 2003 Table 17.1Transitional table Current State Current State A B C D Write Write # & 1 same as read blank 1 same as read 1 New State New State B C A B D B D Read Read or blank # or & 1 not 1 1 not 1 not a blank blank Move Move    

©Brooks/Cole, 2003 Figure 17-5 Transition diagram for incr x

©Brooks/Cole, 2003 Table 17.2Transitional table for incr x statement Current State Current State StartIncr Forward Added Backward Write Write # 1 1 & same as read # New State New State Forward Added Backward StopIncr Read Read # 1 & any not # # Move Move  

©Brooks/Cole, 2003 Figure 17-6 Steps in incr x statement

©Brooks/Cole, 2003 Figure 17-7 Transition diagram for decr x

©Brooks/Cole, 2003 Table 17.3Transitional table for decr x statement Current State Current State StartDecr Forward Delete Backward Write Write # 1 blank & same as read # New State New State Forward Delete Backward StopDecr Read Read # 1 & 1 not # # Move Move  

©Brooks/Cole, 2003 Figure 17-8 Transition diagram for the loop statement

©Brooks/Cole, 2003 Table 17.4Transitional table for the loop statement Current State Current State StartLoop Check Forward … EndProcess Backward Read Read # not 1 1 not & & … any not # # Move Move    none …  none New State New State Check StopLoop Forward StartProcess … Backward Check Write Write # same as read 1 same as read & … same as read #

©Brooks/Cole, 2003 GODELNUMBERSGODELNUMBERS 17.2

Table 17.5Code for symbols used in the Simple Language Symbol Hex Code Hex Code Hex Code Hex Code Symbol incr decr while { } x Hex Code Hex Code A B C D E F

©Brooks/Cole, 2003 HALTINGPROBLEMHALTINGPROBLEM 17.3

Can you write a program that tests whether or not any program, represented by its Godel number, will terminate? A Classical Programming Question:

©Brooks/Cole, 2003 Figure 17-9 Step 1 in proof

©Brooks/Cole, 2003 Figure Step 2 in proof

©Brooks/Cole, 2003 Figure Step 3 in proof

©Brooks/Cole, 2003 SOLVABLE AND UNSOLVABLE PROBLEMS SOLVABLE AND UNSOLVABLE PROBLEMS 17.5

©Brooks/Cole, 2003 Figure Taxonomy of problems