NP-Complete Definition
- From: bobbysoares@xxxxxxxxx
- Date: 29 Apr 2007 19:28:02 -0700
My "Introduction to the theory of computation" book by Michael Sipser
has this Theorem regarding NP-Completeness:
If B is NP-Complete and B is polynomial-time-reducible to C (where C
is in NP), then C is NP-Complete.
This makes sense to me, but the following scenario is confusing.
Suppose that the reduction R reduces B to C in polynomial time, but
that the input to C obtained after applying the reduction is of a
different size than the original input to B.
Maybe the original input to B was of size n, and after applying the
reduction we are left to solve C with an input of size 2^n.
The reduction occurs in polynomial time, so by Sipser's definition C
would be NP-Complete, but we did transform the input size
significantly, so i don't know if C would really be NP-Complete.
If C is NP-Complete based on this reduction alone, then a polynomial
time algorithm for C would not imply P = NP, like Sipser says in the
following page.
If C cannot be considered NP-Complete because it changed the size of
the input to a different order, then shouldn't that be a constraint of
the initial definiton i quoted at the top of this post?
Or maybe it's impossible that R, running in polynomial time, may be
able to exponentially increase the original input size. The example i
had in mind is where B receives n bits. The reduction R from B to C
builds a program that can return the i'th subset of k bits (from the
original n bits), where k is variable, for example. There would be
something like n^k such subsets. Suppose then that these subsets are
used as input to C.
The reduction can't pass all subsets to C in polynomial time, because
there's too many subsets, but it can pass to C something which is able
to access each of the subsets, which is just as good as far as C is
concerned.
So B is reduced to C in polynomial time, but the input size changed
substantially. Would we classify C as NP Complete based on this?
.
- Follow-Ups:
- Re: NP-Complete Definition
- From: Mitch
- Re: NP-Complete Definition
- From: tchow
- Re: NP-Complete Definition
- Prev by Date: Secretary Problem, Regression, Decision Trees, and Neural Networks
- Next by Date: Re: NP-Complete Definition
- Previous by thread: Secretary Problem, Regression, Decision Trees, and Neural Networks
- Next by thread: Re: NP-Complete Definition
- Index(es):
Relevant Pages
|
Loading