Skip to main content
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
Results tagged with
Search options answers only not deleted user 121717

Questions about decision problems that can be solved on nondeterministic Turing machines in time polynomial in the length of the input.

2 votes

Suppose we know for certain that P = NP. Can we say that NP = co-NP?

Yes, $NP=P=co-P=co-NP$ Where $P=co-P$ since $P$ is closed under complement (the TMs are deterministic and always halt, simply swap "reject" with "accept") …
nir shahar's user avatar
  • 11.7k
2 votes
Accepted

polynomial reduction within Np

Yes: we know that being in $NP$ is equivalent to having a polynomial verifier. Let $M$ be the verifier of $B$ (getting an input $x$ and a witness $w$), and let $f$ be the reduction function. … M(f(x),w) \iff f(x)\in B\iff x\in A$, and thus $M'$ is a verifier for $A$, hence $A\in NP$ …
nir shahar's user avatar
  • 11.7k
4 votes
Accepted

Easy proof for $Primes \in NP$

As you have stated, $Composites\in NP$ and $\overline{Primes}=Composites$. Hence, what you proved is that $Primes\in co-NP$. …
nir shahar's user avatar
  • 11.7k
0 votes

Proof of Co-Problem being in NP if Problem is in NP using negated output

The problem with your proof is the fact that a TM for $NP$ would be non-deterministic. … If not, try to think of $NP$ as polynomial verifiable languages, i.e languages with a machine $M(x,w)$ where $w$ is a "witness" describing the $\exists$, and then calling a routine for an NP problem means …
nir shahar's user avatar
  • 11.7k
0 votes
Accepted

If $S\in\left(NP\bigcup coNP\right)$ then $\overline{S}\in NP\bigcap coNP$?

There is a distinction between $S\in (NP\cup co-NP)$, and $S\in (NP\lor co-NP):=\{A\cup B|A\in NP, B\in co-NP\}$ You assumed both are the same, however the first talks about $S$ being in either $NP$ or … If $NP\neq co-NP$, then there is some $L\in NP\setminus co-NP$ (or the other way around), which means that $L\in (NP\cup co-NP)$ but $\overline{L}\notin (NP\cap co-NP)$ (since $L\notin NP$ then $\overline …
nir shahar's user avatar
  • 11.7k
1 vote
Accepted

If problem A reduces to an NP-Complete problem B, can we say that A is in NP?

Being in $NP-complete$ is equivalent to being in both classes: NP NP-hard In particular, $B\in NP$. … Now, $A\in NP$ since $A\le_p B$ and $NP$ is closed under poly-time reductions (you can easily see how to create a non-deterministic poly-time TM for $A$ given the reduction $f$ and a TM for $B$) …
nir shahar's user avatar
  • 11.7k
0 votes

NP Reduction - Dominating set to SAT

Take a look at the Cook Levin theorem, that shows a reduction from any $NP$ problem to $SAT$. Since $Dominating-Set\in NP$, this is a reduction $Dominating-Set\le_p SAT$. …
nir shahar's user avatar
  • 11.7k
2 votes

Problems Solvable in Poly time but not verifiable in Poly time

The verification algorithm will just use the solving algorithm and will ignore the verification "proof" it gets. I.e, a verifier is a TM $V(x,w)$, such that $x\in L\iff \exists w, |w|\text{ is polynom …
nir shahar's user avatar
  • 11.7k
0 votes
Accepted

How to reduce the hamiltonian path problem to 1/2 hamiltonian path problem

Double the graph size: make two clones of the input $G_1,G_2$ and now create the (not connected) graph $\hat G$ that will consist of the two clones $G_1,G_2$. Now a half-hamiltonian path in $\hat G$ i …
nir shahar's user avatar
  • 11.7k
2 votes

NP problem: certificate concept clarification

The second approach is technically the correct interperation. When we say "a verifier gets a certificate $c$ that looks like [...] and computes something", then we actually mean that this verifier che …
nir shahar's user avatar
  • 11.7k
1 vote

Really confused

What would happen if $P=NP$? Clearly $P$-complete $=P$, and hence also $NP$-complete = $NP$. This means that every language in $NP$ would also be in $NP$-complete. … So finding a language that isn't $NP$-complete, means that we must have $P\neq NP$ …
nir shahar's user avatar
  • 11.7k
2 votes

Tic-Tac-Toe in PSPACE

An $n\times n$ grid takes $n^2$ memory cells. You don't need to remember the "history" of the game, as it is irrelevant.
nir shahar's user avatar
  • 11.7k
1 vote

Relationship between NP and CoNP

$P$ is closed under complement. The rest is up to you.
nir shahar's user avatar
  • 11.7k
0 votes
Accepted

How to prove P = NP if problem Π ϵ NP-complete and Problem complement Πc ϵ NP?

Proving $NP=co-NP$ doesn't necessarily mean that $P=NP$. Although, the other way around is correct: Assume $P=NP$, then $co-NP=co-P=P=NP$. …
nir shahar's user avatar
  • 11.7k
0 votes

Are the following assertions true if P != NP?

Take a look at the definition of NP-complete, it might help. How fast can we compute $MST^*$? Try to use this in conjunction with the assumption you made. …
nir shahar's user avatar
  • 11.7k

15 30 50 per page