1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.

Slides:



Advertisements
Similar presentations
Formal Models of Computation Part III Computability & Complexity
Advertisements

INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
The Recursion Theorem Sipser – pages Self replication Living things are machines Living things can self-reproduce Machines cannot self reproduce.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen Department of Computer Science University of Texas-Pan American.
1 CSC3130 Formal Languages and Automata Theory Tutorial 9 Undecidable Problem KN Hung SHB 1026.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Decidable A problem P is decidable if it can be solved by a Turing machine T that always halt. (We say that P has an effective algorithm.) Note that the.
Reducibility 2 Theorem 5.1 HALT TM is undecidable.
CS355 – The Mathematics and Theory of Computer Science Reductions.
January 5, 2015CS21 Lecture 11 CS21 Decidability and Tractability Lecture 1 January 5, 2015.
Complexity 7-1 Complexity Andrei Bulatov Complexity of Problems.
Computability and Complexity 5-1 Classifying Problems Computability and Complexity Andrei Bulatov.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
Reducibility Sipser 5.1 (pages ). CS 311 Fall Reducibility.
Reducibility Sipser 5.1 (pages ).
1 Introduction to Computability Theory Lecture13: Mapping Reductions Prof. Amos Israeli.
Fall 2004COMP 3351 Undecidable problems for Recursively enumerable languages continued…
CPSC 411, Fall 2008: Set 12 1 CPSC 411 Design and Analysis of Algorithms Set 12: Undecidability Prof. Jennifer Welch Fall 2008.
Reducibility A reduction is a way of converting one problem into another problem in such a way that a solution to the second problem can be used to solve.
Costas Busch - RPI1 Undecidable problems for Recursively enumerable languages continued…
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Fall 2006Costas Busch - RPI1 The Post Correspondence Problem.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 1 Introduction Jan Maluszynski, IDA, 2007
CHAPTER 4 Decidability Contents Decidable Languages
Fall 2004COMP 3351 Reducibility. Fall 2004COMP 3352 Problem is reduced to problem If we can solve problem then we can solve problem.
1 Decidability continued. 2 Undecidable Problems Halting Problem: Does machine halt on input ? State-entry Problem: Does machine enter state halt on input.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 5 Reducibility Contents Undecidable Problems from Language Theory.
Algorithmic Problems in Algebraic Structures Undecidability Paul Bell Supervisor: Dr. Igor Potapov Department of Computer Science
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
CS5371 Theory of Computation Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)
Decidability A decision problem is a problem with a YES/NO answer. We have seen decision problems for - regular languages: - context free languages: [Sections.
CS355 – Theory of Computation Dr. Aidan Mooney, September 2006 National University of Ireland, Maynooth Department of Computer Science.
Welcome to Honors Intro to CS Theory Introduction to CS Theory (Honors & Traditional): - formalization of computation - various models of computation (increasing.
The Recursion Theorem Pages 217– ADVANCED TOPICS IN C O M P U T A B I L I T Y THEORY.
Welcome to Honors Intro to CS Theory Introduction to CS Theory (Honors & Traditional): - formalization of computation - various models of computation (increasing.
Reducibility 1. 2 Text book Pages 187– 199 Reducibility A reduction is a way of converting one problem to another problem in such a way that a solution.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
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.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 7 Undecidability cont. Jan Maluszynski, IDA, 2007
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
Turing -Recognizable vs. -Decidable
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 7 Time Complexity Some slides are in courtesy.
CSCI 2670 Introduction to Theory of Computing October 13, 2005.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability Some slides are in courtesy.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Undecidable.
Costas Busch - LSU1 The Post Correspondence Problem.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 5 Reducibility Some slides are in courtesy.
CS 154 Formal Languages and Computability April 28 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
February 1, 2016CS21 Lecture 121 CS21 Decidability and Tractability Lecture 12 February 1, 2016.
Introduction to the Theory of Computation
CSCI 2670 Introduction to Theory of Computing
Busch Complexity Lectures: Reductions
FORMAL LANGUAGES AND AUTOMATA THEORY
Reductions.
Undecidable Problems Costas Busch - LSU.
Reductions Costas Busch - LSU.
Intro to Theory of Computation
HIERARCHY THEOREMS Hu Rui Prof. Takahashi laboratory
Reducibility The Chinese University of Hong Kong Fall 2010
Jaya Krishna, M.Tech, Assistant Professor
CSCI 2670 Introduction to Theory of Computing
The Post Correspondence Problem
Undecidable problems:
Computability and Complexity
Reducability Sipser, pages
More undecidable languages
Decidability continued….
Presentation transcript:

1Computer Sciences Department

Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department

Reducibility 4 Text book Pages 187– 199

 Reduction  Proof : Undecidable Computer Sciences Dep55artment5 Objectives

Reducibility  A reduction is a way of converting one problem to another problem in such a way that a solution to the second problem can be used to solve the first problem.  Example: find your way around a new city – using a map.  Reducibility always involves two problems, which we call A and B. If A reduces to B, we can use a solution to B to solve A. 6

Examples of Reducibility  Sorting a list of numbers (ascending or descending) reduces to the pair of problems:  Find the smallest number in a list.  Swap two numbers in a list. 7

Reducibility (cont’d)  Reducibility also occurs in mathematical problems.  For example, the problem of measuring the area of a rectangle reduces to the problem of measuring its length and width. 8

 How could we reduce the problem of finding the area of the hexagon to simpler problems? Computer Sciences Department9 Geometric Example 1- partition the hexagon into a collection of rectangles and triangles. 2- find the areas of rectangles and triangles.

Reducibility (cont’d)  Reducibility plays an important role in classifying problems by decidability and later in complexity theory as well.  When A is reducible to B, solving A cannot be harder than solving B because a solution to B gives a solution to A.  In terms of computability theory, if A is reducible to B and B is decidable, A also is decidable.  If A is undecidable and reducible to B, B is undecidable. 10

 Theorem  If A is reducible to B and B is decidable, then A is decidable  Proof.  Let R be a Turing machine that reduces A to B.  Let D B be a decider of B. Computer Sciences Department11 Reducibility and Decidability

If A is undecidable and A is reducible to B, then B is undecidable. ??????????? Computer Sciences Department12 Theorem

UNDECIDABLE PROBLEMS FROM LANGUAGE THEORY 13 Define the language HALT TM to be

UNDECIDABLE PROBLEMS FROM LANGUAGE THEORY 14 PROOF IDEA

 Proof:  reduce A TM to HALT TM.  Suppose that HALT TM is decidable.  Let D H be a decider for HALT TM.  build a decider D A for A TM. Computer Sciences Department15 Explanation - A TM

UNDECIDABLE PROBLEMS FROM LANGUAGE THEORY 16 PROOF IDEA Define the language E TM to be

Computer Sciences Department17 Explanation - E TM Let CONVERT be a Turing machine that will read the pair and construct the Turing machine M w. Proof

UNDECIDABLE PROBLEMS FROM LANGUAGE THEORY 18

UNDECIDABLE PROBLEMS FROM LANGUAGE THEORY 19

20

Computer Sciences Department21

UNDECIDABLE PROBLEMS FROM LANGUAGE THEORY  context-free language can be shown to be undecidable with similar proofs. 22

Thus, we could build a decider for all previous (E TM, Regular TM,…..etc, which we know to be impossible. Computer Sciences Department23 Build = Impossible

REDUCTIONS VIA COMPUTATION HISTORIES (read only) 24

A SIMPLE UNDECIDABLE PROBLEM  The phenomenon of undecidability is not confined to problems concerning automata  a collection of dominos, each containing two strings, one on each side. An individual domino looks like 25

Collection of dominos - match  a collection of dominos looks like 26 The task is to make a list of these dominos (repetitions permitted) so that the string we get by reading off the symbols on the top is the same as the string of symbols on the bottom. This list is called a match

Match may be possible  Reading off the top string we get abcaaabc, which is the same as reading off the bottom. We can also depict this match by deforming the dominos so that the corresponding symbols from top and bottom line up. 27

Match may not be possible  cannot contain a match because every top string is longer than the corresponding bottom string 28