Re: NP-complete and NP-Hard?
- From: torbenm@xxxxxxxxxxxxx (Torben Ægidius Mogensen)
- Date: 21 Jun 2005 12:23:10 +0200
yijun_lily@xxxxxxxxx writes:
> I don't quite understand NP-Complete and NP-Hard problem, eventhough I
> read some books about algorithm. Can anybody tell me about them?
>
> Is NP-complete and NP-Hard problem a problem that can't be solved in
> polynomial time (i.e.)?
In simple terms, a nondeterministic machine can spawn a new machine
every time it needs to make a choice, so after n choices, there can be
2^n machines. These machines can not communicate, but if any one
stops with an answer to the problem they are given, we say the problem
is solved.
NP is the class of problems that can be solved in polynomial time (in
terms of input size) on such a nondeterministic machine.
If you use a deterministic machine to simulate a nondeterministic
machine, you need to simulate all the spawned new machines on the same
machine. Since the number of machines can increase exponentially,
such simulation takes exponential time. However, this doesn't imply
that you need exponential time to solve an NP problem - there might be
a deterministic program that can solve the problem in another way.
This is the essense of the P = NP problem: Are there NP problems that
can not be solved in polynomial time on a deterministic computer?
This is as yet unanswered, though many suspect that P != NP.
A problem being NP-complete means that the problem can be solved in NP
and, furthermore, that any NP problem can be translated into this
problem in polynomial time. So if any one NP-complete problem can be
solved in polynomial time, all can.
NP-hard means that you need at least NP to solve the problem, but
maybe more. It means that any NP problem can be translated to this
problem, but the converse may not be true.
So NP-complete \subseteq NP \subseteq NP-hard.
Many interesting problems, including code breaking, is in NP, so it is
interesting to study efficient ways of solving these.
Torben
.
- Follow-Ups:
- Re: NP-complete and NP-Hard?
- From: Bryan Olson
- Re: NP-complete and NP-Hard?
- From: Bart Demoen
- Re: NP-complete and NP-Hard?
- References:
- NP-complete and NP-Hard?
- From: yijun_lily
- NP-complete and NP-Hard?
- Prev by Date: Re: F.Y.I. - Revised paper "P=NP: LP Formulation of the TSP"
- Next by Date: Re: NP-complete and NP-Hard?
- Previous by thread: Re: NP-complete and NP-Hard?
- Next by thread: Re: NP-complete and NP-Hard?
- Index(es):
Relevant Pages
|
Loading