Docsity

Polynomial Time Reductions - Lecture Notes | CSCI 2400, Study notes of Computer Science

Partial preview of the text

Download Polynomial Time Reductions - Lecture Notes | CSCI 2400 and more Study notes Computer Science in PDF only on Docsity!

Polynomial Time Reductions

Polynomial Computable function :

f

For any computes

in polynomial time

f ( w )

w

Language A is polynomial time reducible

to

language B if there is a polynomial

computable function such that:

f

w ๏ƒŽ A ๏ƒ› f ( w )๏ƒŽ B

3CNF formula:

( ) ( ) ( ) ( )

1 2 3 3 5 6 3 6 4 4 5 6

x ๏ƒš x ๏ƒš x ๏ƒ™ x ๏ƒš x ๏ƒš x ๏ƒ™ x ๏ƒš x ๏ƒš x ๏ƒ™ x ๏ƒš x ๏ƒš x

Each clause has three literals

3SAT ={ : is a satisfiable

3CNF formula}

w w

Language:

Clique:

A 5-clique

LIQUE = { : contains a -clique}

๏€ผ G , k ๏€พ

G

k

NP-Completeness

A problem is NP-complete if:

It is in NP

Every NP problem is reduced to it

(in polynomial time)

Observation:

If we can solve any NP-complete problem

in Deterministic Polynomial Time (P time)

then we know:

P ๏€ฝ NP

Cookโ€™s Theorem:

The satisfiability problem is NP-complete

Proof:

Convert a Non-Deterministic Turing Machine

to a Boolean expression

in conjunctive normal form

Other NP-Complete Problems:

The Traveling Salesperson Problem

Vertex cover

Hamiltonian Path

All the above are reduced

to the satisfiability problem