17
Reducibility 1

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

Embed Size (px)

Citation preview

Page 1: 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

1

Reducibility

Page 2: 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

2

Text book Pages 187– 199

Page 3: 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

3

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.

Page 4: 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

4

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.

Page 5: 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

5

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.

Page 6: 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

6

UNDECIDABLE PROBLEMS FROMLANGUAGE THEORY

Page 7: 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

7

UNDECIDABLE PROBLEMS FROMLANGUAGE THEORY

PROOF IDEA

Page 8: 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

8

UNDECIDABLE PROBLEMS FROMLANGUAGE THEORY

PROOF IDEA

Page 9: 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

9

UNDECIDABLE PROBLEMS FROMLANGUAGE THEORY

Page 10: 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

10

UNDECIDABLE PROBLEMS FROMLANGUAGE THEORY

Page 11: 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

11

Page 12: 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

12

UNDECIDABLE PROBLEMS FROMLANGUAGE THEORY

• context-free language can be shown to be undecidable with similar proofs.

Page 13: 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

13

REDUCTIONS VIA COMPUTATION HISTORIES (read only)

Page 14: 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

14

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

Page 15: 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

15

Collection of dominos - match

• a collection of dominos looks like

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

Page 16: 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

16

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.

Page 17: 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

17

Match may not be possible

• cannot contain a match because every top string is longer than the corresponding bottom string