Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about decision problems that can be solved on nondeterministic Turing machines in time polynomial in the length of the input.
3
votes
Proving that Max Weighted Independent Set is in NP
$NP$ however is a class of decision problems, so the only valid outputs are Yes and No. … It should be easier to see that this version is in $NP$. …
4
votes
Execution time of NP and NP-Complete algorithms
So we can't have an $\mathrm{NP}$-complete algorithm, only an $\mathrm{NP}$-complete problem. … On the flip side, we can have an algorithm for an $\mathrm{NP}$ problem that is not the one that shows that the problem is in $\mathrm{NP}$. …
3
votes
Accepted
Proof that this problem is in NP
To prove containment in NP (in this manner) you need (as you mention):
A witness. This is just a "string" that proves an instance is a Yes-instance. So it can just be the solution. … For NP, we have the additional restriction that the verifier has to run in deterministic polynomial time.
So for this problem we can represent a solution as a collection of sets of boxes. …
6
votes
Accepted
Using coloring optimization or coloring decision to solve coloring search
Given a graph $G$, we want to do two things:
Find the smallest $k$ such that $G$ is $k$-colourable,
Given such a $k$, find a colouring of $G$ with $k$ colours.
If we have an oracle for the decisio …
9
votes
Accepted
Why is Steiner Tree trivially in NP?
What is normally meant in cases like this is
there is a simple, obvious algorithm which demonstrates that the problem is in $\mathcal{NP}$,
with an implicit
but we don't have enough space, … Before returning to the Steiner Tree problem, recall the two common definitions of $\mathcal{NP}$ membership:
A problem is in $\mathcal{NP}$ if, given the input and a solution, we can check that the …
2
votes
Wheel subgraph problem
Of course you have to show that the problem is in NP, but from other posts I gather that's no issue.
The sticking point lies with the reduction from an NP-hard problem. … Hamiltonian Cycle is NP-hard, we map that to a subproblem of the Wheel Subgraph Problem (where $n=k$), so this is also NP-hard, and hence the Wheel Subgraph Problem is in general NP-hard (as one of its …
3
votes
Accepted
Do problems in P only reduce to NP and coNP problems?
Every $\mathsf{NP}$-complete problem is polynomial-time many-one reducible to every other $\mathsf{NP}$-complete problem, so the two reducibility conditions hold trivially. … If $\mathsf{P} \neq \mathsf{NP}$, then $B$ can't be in $\mathsf{P}$, and if $\mathsf{NP} \neq co\mathsf{NP}$, then $C$ can't be in $co\mathsf{NP}$. …
4
votes
Accepted
Direct reduction from Near-Clique to Clique
Let $(G,k)$ be an instance of Near-Clique, construct an instance $(G',k')$ of Clique as follows.
For each $uv \notin E(G)$, add to $G'$ a subgraph corresponding to $(N(u)\cap N(v))$, i.e.,
for eac …
5
votes
Is there a more up-to-date / wider-scope version of the 'Compendium of NP Optimization Probl...
I know of no compendium that is completely satisfactory in any regard. It seems to be too much of a thankless task maintaining these things, thus I suspect that broad answer to your question is, unfor …
15
votes
Accepted
Why are NP-complete problems so different in terms of their approximation?
One reason that we see different approximation complexities for NP-complete problems is that the necessary conditions for NP-complete constitute a very coarse grained measure of a problem's complexity. … You may be familiar with the basic definition of a problem $\Pi$ being NP-complete:
$\Pi$ is in NP, and
For every other problem $\Xi$ in NP, we can turn an instance $x$ of $\Xi$ into an instance $y$ …
6
votes
Why do we prove X is in NP to prove it is NP-complete?
Recall that for a problem $\Pi$ to be $\mathsf{NP}$-complete we need the following:
$\Pi \in \mathsf{NP}$. … However we know unconditionally that $\mathsf{NP}\neq \mathsf{NEXP}$, so SUCCINCT 3-SAT is not in $\mathsf{NP}$. …
3
votes
What is a Turing Machine in class coNP
The easiest way (for me) to understand co-NP is as the class of problems where certificates for "No" answers can be quickly verified (i.e. certificates of non-membership). … So if we look at NP as a class of nondeterministic Turing Machines which quickly (in polynomial time) determine that their input satisfies some property $\Pi$, co-NP is the class of nondeterministic Turing …
15
votes
Accepted
Problem A is polynomially reducible to problem B... what can we say about A and B?
NP-completeness is NP-hardness, plus the additional property that the problem is in NP. So saying problem A is NP-complete means problem A is NP-hard and A is in NP. … us whether B is in NP or not. …
6
votes
Is every problem in NP solvable?
Working from the "machine" definition (that a problem is in $\mathcal{NP}$ if and only if it can be decided by a non-deterministic Turing Machine in polynomial time), we can take a similar approach as … Given a problem $P \in \mathcal{NP}$, there is, by definition, a non-deterministic Turing Machine $M_{P}$ that correctly decides whether $x \in P$ or not in time bounded by $|x|^{c}$ for every $x \in \ …
6
votes
Accepted
Reduction from Vertex Cover to an Independent Set problem
Although it's split into lots of classes, the $W$-hierachy bears a practical relationship to $FPT$ in a similar manner to that of $NP$ to $P$, in that if a problem is $W[t]$-hard for some $t$, then it … has no $FPT$ algorithm unless $W[t] = FPT$, and we conjecture that $FPT \subset W[1]$ for similar reasons to $P \subset NP$. …