14

Possible Duplicate:
What are the consequences of factoring being NP-complete?

What notable reference works have covered this?

txwikinger
  • 803
  • 1
  • 11
  • 18
  • 7
    http://en.wikipedia.org/wiki/Integer_factorization – Aaron Sterling Aug 17 '10 at 15:50
  • No, it isn't, as detailed in Aaron's answer. However you may also be interested to know that the problem is contained in BQP, and there is a quantum algorithm for integer factorization which runs in time O(n^3) or less (depending on which multiplication algorithm is used to calculate the mod exponential). – Joe Fitzsimons Aug 17 '10 at 16:00
  • 5
    I think this may be a more suitable question if rephrased as: "What are the consequences of factoring being NP-complete?" But as stated, it's all answered on the wikipedia page (btw, first hit on google for "integer factorization"). – Moritz Aug 17 '10 at 16:12
  • 5
    I believe Moritz's comment here is insightful, txwikinger.

    Questions that, as asked, can be answered by a quick Wikipedia or Google search are outside the scope of this site (Disclaimer: This is my opinion, and appears to be the opinion of some others as well.). Variations on the theme that explicitly dig deeper into what is less readily available on the Internet already can be very useful however.

    – Daniel Apon Aug 17 '10 at 16:18
  • 1
    @Daniel Apon: Well, I take the advise, however, it does not make sense to make a proposal in which this exact question is voted as on-topic without any counter votes, and then say it is off-topic. Somewhere there has to be some sanity, that people know what this site is about! – txwikinger Aug 17 '10 at 16:31
  • 4
    Yes, I agree that it is a problem. Hopefully kinks like this will be ironed out as time passes. In general, though, I think the fear is that the site could degenerate to a place for students to ask homework questions if "less interesting" questions are allowed (for an appropriate interpretation of "less interesting"). One of the important goals is to promote advanced Q&A, since there has been a noticeable lack of this elsewhere for CS theory. – Daniel Apon Aug 17 '10 at 16:47
  • I was a student long time ago, when most people here have probably not even been born :D

    Anyway, joke aside. Taken what you said, it still does not resolve the issue, that the site was proposed on totally different terms than some people are pushing it now. We do not know if that is even a majority. You only need to have a gang of 5 to close questions. And it should also be considered if that way will lead to a long-term existence of this site. If the accepted audience shrinks to be too small, I doubt this site will ever leave the public beta.

    – txwikinger Aug 17 '10 at 16:50
  • I am closing this question as a duplicate of a question the OP has asked based on Moritz's comment above: What are the consequences of factoring being NP-complete? – Kaveh Feb 08 '11 at 09:49
  • @DanielApon searching for the term "integer factorization np complete" in Google brings up this page as a first result, for me now. And the linked duplicate doesn't answer this question. – Calmarius Jul 05 '15 at 20:46
  • @Calmarius I guess 5 years' time passing can do that. :) – Daniel Apon Jul 19 '15 at 20:40
  • RE @Calmarius "And the linked duplicate doesn't answer this question" -- The answer to the question "Is integer factorization NP-complete?" is: "We don't know, but it seems unlikely, as integer factorization being NP-complete implies other unlikely things." – Daniel Apon Jul 19 '15 at 21:05

1 Answers1

36

No, its not known to be NP-complete, and it would be very surprising if it were. This is because its decision version is known to be in $\text{NP} \cap \text{co-NP}$. (Decision version: Does $n$ have a prime factor $\lt k$?)

It is in NP, because a factor $p \lt k$ such that $p \mid n$ serves as a witness of a yes instance.

It is in co-NP because a prime factorization of $n$ with no factors $\lt k$ serves as a witness of a no instance. Prime factorizations are unique, and can be verified in polynomial time because testing for primality is in P.

Aryabhata
  • 1,855
  • 3
  • 21
  • 29
Aaron Roth
  • 9,870
  • 1
  • 43
  • 68
  • 3
    yes; apparently, Shor's algorithm can be used to solve it in polynomial time on a quantum computer, whereas iirc. most NP complete algorithms did not have P-time quantum versions. – gatoatigrado Aug 17 '10 at 15:54
  • 1
    wouldn't that be all not most NP complete algorithms do not have P-time quantum algorithms, give the NP complete reduction? – Simon Jul 15 '14 at 20:58
  • 7
    Can you explain why it will be "surprising" if $\text{NP}\subseteq \text{NP}\cap \text{co-NP}$? – Jus12 Sep 26 '16 at 17:10