complexity classes

12
Complexity Classes Chapter 8 (Abbreviated)

Upload: fedora

Post on 14-Jan-2016

48 views

Category:

Documents


0 download

DESCRIPTION

Complexity Classes. Chapter 8 (Abbreviated). Overview. Problems are classified according to the resources they use on computing machines (serial or parallel) Serial models are RAM and Turing machines Parallel models are the circuit and PRAM Terms of discussion are first defined - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Complexity Classes

Complexity ClassesChapter 8 (Abbreviated)

Page 2: Complexity Classes

Overview

Problems are classified according to the resources they use on computing machines (serial or parallel)

Serial models are RAM and Turing machines

Parallel models are the circuit and PRAM

Terms of discussion are first defined Tasks that are well-defined Resource measures Machine models

Serial complexity classes are discussed P-complete problems NP-complete problems PSPACE-complete problems

Page 3: Complexity Classes

Languages and Problems

Page 4: Complexity Classes

Resource Bounds

“Feasible” problems are defined currently as those problems which can be solved with a deterministic TM in polynomial time known as the serial computation thesis

Problems can be classified according to their use and requirement of resources, r(n)

Resource bounds expressed in terms of these functions:

Page 5: Complexity Classes

Serial Computational Models

Random-Access Machine: this flavor allows for words that have potentially unbounded length

Page 6: Complexity Classes

Serial Computational Models (cont.)

Turing Machine: will use deterministic (DTM) and non-deterministic (NDTM) versions, as well as multi-tape flavors of each

A non-deterministic, single-tape Turing machine

Page 7: Complexity Classes

Classification ofDecision Problems

Problems in P are currently defined as “feasible” problems

Page 8: Complexity Classes

Classification ofDecision Problems (cont.)

Is this last result evidence that P NP?

Page 9: Complexity Classes

Reductions

Generalize the notion of reductions to include bounds on resources needed and preservation of complexity class

Define new notation and terminology to include these notions:

Page 10: Complexity Classes

Hard and Complete Problems Define the notions of “hard” and “complete” problems for

different complexity classes

The following result follows naturally from our definitions:

Page 11: Complexity Classes

P-Complete Problems These problems are P-Complete (there are hundreds of others):

Page 12: Complexity Classes

NP-Complete Problems These problems are NP-Complete (there are literally

thousands of others):