News for hackers. Stuff that matters.
Re:P ≠ NP by carnevalem on Sunday August 08, 2010 @03:58PM (#1586007)
I hear this statement frequently when P = NP is discussed, but as someone not involved in computer science I have a hard time understanding it.

Could you explain what some of those consequences be? Does P = NP really need to be proved to achieve those practical consequences? Can't it just be assumed to be true and then see what the result is?

Re:P ≠ NP by abstractbill on Sunday August 08, 2010 @04:14PM (#1586048)
Intuitively:

NP questions take a long time to answer.

P questions take much less time.

The statement "P = NP" means that any NP question can be transformed into a P question. Answering the P question gives you an answer to the NP question.

So, if P = NP, then we can answer questions that we thought were slow, much more quickly than we would have thought possible.

Proving P = NP would (presumably) give you that method for transforming NP problems into P problems. So you would suddenly be able to figure things out easily that currently are hard and take a lot of computing power.

It's often assumed that P = NP would make cryptographic problems much easier to break, but apparently that's not really the case: http://world.std.com/~reinhold/p=np.txt

Re:P ≠ NP by miloshh on Sunday August 08, 2010 @04:39PM (#1586108)
Yeah, the common complaint against "P=NP would break cryptography" is "but what if the polynomial algorithm for (say) SAT is n^10000?". That is not very likely, in my opinion. Even though "polynomial" is not equivalent to "efficient", in practice all problems that have a polynomial algorithm also have an efficient algorithm.
Re:P ≠ NP by dfox on Sunday August 08, 2010 @08:59PM (#1586644)
There are many problems that have polynomial algorithm, that is not especially fast for practical problems (matrix multiplication comes to mind for example, for which there isn't even any proof that fastest known algorithm is in fact optimal)
Re:P ≠ NP by miloshh on Sunday August 08, 2010 @09:28PM (#1586696)
That's not a very good example - square matrix multiplication is O(n^1.5) (where n is the input size) and extremely fast in practice.

(Though, as you say, there could still be an O(n) algorithm - this is not known).

What I said is true even for linear programming (a P-complete problem) - it has polynomial and efficient algorithms - though the latter are actually not polynomial in the worst case. :)

Re:P ≠ NP by slug on Monday August 09, 2010 @03:59PM (#1589156)
Can you give a reference for a matrix multiplication algorithm which is O(n^1.5) ? thanks.
Re:P ≠ NP by miloshh on Monday August 09, 2010 @09:39PM (#1590154)
Note that I defined n as the input size...
Re:P ≠ NP by ramidarigaz on Sunday August 08, 2010 @04:10PM (#1586035)
If P = NP were proved to be true, it would tell us that there are solutions to a certain class of problems. Assuming it's true doesn't give us those solutions.

Wikipedia should answer most of your questions regarding the consequences:

http://en.wikipedia.org/wiki/P_%3D_NP#Consequences_of_proof

Re:P ≠ NP by nkassis on Sunday August 08, 2010 @05:16PM (#1586179)
To be a little more precise, proving P=NP would mean that there are algorithms to solve those problems that take polynomial time (can be calculated with a polynomial).

NP problems can be solved, it's just slow (think brute force method, running through all the possibilities).

Re:P ≠ NP by jules on Sunday August 08, 2010 @07:38PM (#1586499)
Not true. A polynomial time algorithm for NP complete programs is known (if P=NP that is). You just need to prove P=NP to prove that it is polynomial time.

http://en.wikipedia.org/wiki/P_versus_NP_problem#Polynomial-...

Re:P ≠ NP by lulin on Sunday August 08, 2010 @04:11PM (#1586036)
If I remember correctly, any proof of P = NP would be have to be constructive, so it would immediately give us a fast algorithm for ALL NP-complete problems, as they can all be reduced to each other.
Re:P ≠ NP by faboo on Sunday August 08, 2010 @09:53PM (#1586745)
It isn't actually _necessary_ for a P=NP proof to be constructive. A constructive proof would probably be easier to reason through, but it is prossible to prove the existence of an algorithm without providing one.
Re:P ≠ NP by btilly on Sunday August 08, 2010 @10:33PM (#1586828)
Not so. Pure existence proofs can be non-constructive.

The first historical example of an important proof which was non-constructive was Hilbert's Basis Theorem in 1888, which solved a famous problem posed by Paul Gordon. It is now viewed as in some sense being the first salvo in the debate over constructivism in the 20th century. See http://en.wikipedia.org/wiki/David_Hilbert#The_finiteness_th... for more.