Professional Documents
Culture Documents
Curs2014 Partea3 Extra
Curs2014 Partea3 Extra
Curs2014 Partea3 Extra
2 1024 1048576 . . .
215
We dene the following
four families of languages:
(1)
= { has det.-space
complexity (), for some
polynomial ()}
(2)
= { has deterministic-time
complexity (), for some
polynomial ()}
(3)
= { has nondet.-space
complexity (), for some
polynomial ()}
(4)
= { has nondet.-time
complexity (), for some
polynomial ()}
We know that
and
Why?
216
We also know that
and
Why?
It has been proven that
and that
So, we have
217
Corresponding to these four families of lan-
guages, we have four classes of problems:
(1) PSPACE : the class of all problems that
can be solved in deterministic
polynomial space.
(2) P : the class of all problems that can be
solved in deterministic
polynomial time.
(3) NPSPACE : . . . in nondeterministic
polynomial space
(4) NP: . . . in nondeterministic
polynomial time.
=
problems decision problems languages
? =?
218
We dene a relation on problems (lan-
guages).
For
1
,
2
in
1
2
If
1
requires no more time than
2
to accept.
is transitive and reexive.
It is a pre-order.
is said to be NP-hard if
for all
in
.
is said to be NP-complete if it is also
in
.
A clear concept of NP-completness was
given by Steven Cook. He showed that satis-
ability problem is NP-complete.
219
SATISFIABILITY PROBLEM (SAT)
INSTANCE : A set of variables and a
collection of clauses over .
QUESTION : Is there a satisfying truth as-
signment for ?
SAT is NP-complete.
220