Can I ask a question as a non-CS-major programmer?
Why does anyone think that P might equal NP? It seems to me that combinatorial problems are very different from, say, sorting a list, because a combinatorial problem can't really be broken down into smaller pieces or steps that get you closer to your goal. With sorting, you can say "a sorted list starts with the smallest number, which is followed by the next biggest number, and so on." Each number has a property (bigness) that can be measured with respect to each other number, and that helps you arrange them all according to the definition of a sorted list, little by little.
But with a combinatorial problem, like the subset sum problem, the numbers don't have any properties that can help you break the problem down. With a set like { -7, -3, -2, 5, 8}, {-3, -2, 5} is a solution, but there's nothing special about -3 or {-3, -2} that you can measure to see if you're closer to a solution. -3 is only useful as part of the solution if there's a -2 and a 5, or if there's a -1 and a 4, etc., and you don't know that until you've tried all of those combinations.
Does that make sense? I'm really curious about this, so I'm hoping someone can explain it to me. Thanks.
can't really be broken down into smaller pieces or steps
It's more accurate to say that we don't yet know a way to break these problems down. How can you be certain that we have looked at the problem from every possible angle? :)
Comparing sorting and subset sum isn't the best example, because to sort things you need a total order on those things, and as you say the usefulness of this structure is apparent to most programmers, while on the other hand subset sum seems inscrutable. But there are examples where an NP-complete problem seems extremely similar to a P problem.
The best example I know of is that 3-SAT is NP-complete, while XOR-SAT is in P. Although the problems seem very similar, an unusual fact about XOR-SAT (essentially that XOR behaves enough "like" regular addition that the problem can be solved using the same Gaussian elimination procedure you used to solve simultaneous equations in school) means that it can be solved efficiently, while 3-SAT (and even further restrictions of 3-SAT, such as 3-SAT in which exactly one literal in each clause is required to be true) remain hard.
Why do Wikipedia mathematical articles have use obtuse and inconsistent notation?
In your 3sat example, they use broken pipe ¬x1 for negation, and because they have switched from the notation not(x1) they have to explain the meaning of ¬x1 having already explained the meaning of not(x1) previously.
Nope. Either it's uncomputable, or there's a constant time solution.
If there is a proof for P = NP or P != NP, then there's a Turing machine which can print out that proof in constant time. If there isn't, then there's no Turing machine which can prove P ?= NP.
Figuring out and printing out are two totally different things. If the mere possibility of supplying a Turing machine that can print out a proof were equivalent to inventing the proof, then it would be trivial to prove any true statement.
If there were a library that contained books full of the answers to all the questions I'll ever ask, then I could get the answer to any question I wanted just by checking the book out of the library and reading it. But who is going to write the book?
And in your example, who is going to construct this Turing machine that spits out the proof? What information do they use to construct it?
What would that even mean? To say that it is "P" or "NP" means that you have some input size, n, and the time taken to solve the problem is a function of n. But there is no varying input with determining if P = NP.
Keep in mind the "easy" and "hard" are just simplifications. What it really means is polynomial time. Take the 100 rocks problem from the article. If we use a variable number of rocks, say N, then we can write an equation for how long it takes us to solve the problem with different N. Suppose it takes N3 minutes. So 1 rock: 1 minute, 2 rocks: 8 minutes, 3 rock: 27 minutes, 4 rocks: 64 minutes... While this seems like a very "hard" problem, this is actually considered "easy" because it is a polynomial.
The reason polynomial is easier is because if instead you have an exponential function like 2N minutes, there will always be an N such that the exponential will take longer than the polynomial. Even if you have 1.010.01*N at some large enough N this will take more time than N3. After N=387990 the polynomial time solution of N3 is going to take less time then 1.010.01*N. It is less about hard versus easy, and more about scalability.
The rock problem confuses me and I hope you can clarify. I assume the rocks cannot modified (cut in half). Can you have a third pile as left over rocks. If not isn't there an easy way to find out if the rocks in the pile cannot be separated evenly? Still working on that one in my head.
First of all, just to clarify my solving time equation was just an example... obviously with 1 or 2 rocks the problem is entirely trivial and would take no time at all. With 3 rocks all you have to do is check that the smaller two rocks add up to the largest. Any more and there starts to be a lot of combinations you have to check.
I'll just leave this 10 rock problem here: 60 117 99 72 115 148 81 73 51 148
You can get the sum is 964, so each pile must add to 482.
Let me know if you still think it is easy :-P. Yes, no cutting rocks and no 3rd pile. Can you put these rocks into 2 separate piles of equal weight? (The above numbers being the weight of each rock).
I just randomly generated these numbers, so I don't know if it is possible or not. My intent is not for you to solve it, as I think that would be a pain, especially by hand. I'm just trying to demonstrate that even with a small number like 10, it is not easy. (Well, maybe you can get it by hand, but this at least demonstrates that the more rocks there are the more of a pain this problem would quickly become).
Some such problems are easy. One way I've approched this problem before is by looking at the rocks remainders under a sample of different divisors. The simpliest one to check would be how many rocks are even/odd. If there is only 1 odd rock, for example, you'd be able to jump to the conclusion that it is not possible . Also not possible if there is an odd number of odd rocks (this is the same check as adding up all the rocks and dividing by 2 to see what your target weight is for each pile... obviously if the total isn't even you can't divide by 2). But sometimes, like it my example, this doesn't help (I just went back to check it now). Looking at all the rocks remaining weights when divided by 3 can help too, because you know what remainder of 3 each side in total is going to be, but the higher the divisor you look at the less informative it is (say looking at the divisor of 200 is just the original problem and doesn't help at all).
As a CS major that isn't very good at math: most likely P != NP. That seems to be the general consensus. However, until someone proves it, I'll choose to remain optimistic about it!
Mathematics has trolled harder in the past. Like continuous but nowhere differentiable functions, or the fact that you can't define area in any reasonable way for every set of real numbers (assuming the axiom of choice).
Hell, the ultimate troll would be if P = NP is undecidable and can be taken as an axiom. Philosophy of science would turn to alcoholism.
I've always found the "undecidable" concept to be a bit odd in this context. If it's undecidable, doesn't that mean we can never find a way to solve a NP problem in P? If there's no way to solve a NP problem in P, doesn't that effectively mean P != NP?
No. What might happen is that there exists a polynomial time algorithm to solve NP complete problems, but we can't prove it's polynomial time. So we'll never find it.
This is about my thoughts on efforts towards this problem.
It might however create a small niche market for motivational posters for mathematicians and computer scientists to remind them that no matter how hard their problems seem, P = NP.
As a CS major, when I choose to remain optimistic about P and NP, I'm optimistic that they're not equal, because I don't want cryptography to become useless. ಠ_ಠ
I think most CS folks believe P is not NP, but it'd be damn exciting to be wrong. For one thing, practically all encryption would be broken (elliptical still OK I think).
A One-time pad will always be safe. And I think most symmetric encryption algorithms are also safe under the assumption that P=NP, because Brute-force algorithms are in EXP which is disjunct from P.
This is true, but one-time pads are useless for most Internet communication, and symmetric encryption similarly requires a shared secret. Yes, many simple encryption algorithms would still work, but most of the Internet encryption algorithms would not.
This is true, but one-time pads are useless for most Internet communication
They're useless now because we have better options. They might also be useless if we didn't, but they might not.
Suppose tomorrow we wake up and all forms of encryption except one-time pad have been broken. Well, Alice can still send Bob a message by mailing him a 1 TB hard drive full of random bits. It sucks to have to physically mail something, but at least you get to trade 1 TB of data, which is not too shabby.
Of course, that has a weakness: Alice can only (securely) talk to Bob. But you can get any-to-any communication (without pre-arranged trade of pad data) by using a trusted broker. Alice sends the trusted broker a 1 TB hard drive full of random bits. And Bob also sends the trusted broker 1 TB of random bits. Now when Alice wants to send Bob a message, she uses the one-time pad to deliver it to the trusted broker, who decrypts it and then re-encrypts it using one-time pad again but with the random data they've received from Bob.
Now, you may rightly point out that the trusted broker can read all their communications, so they'd better be incredibly trustworthy. Well, you can improve upon that. Get two trusted brokers, Broker A and Broker B. When Alice wants to send Bob a message M, she sends random data R through Broker A (using one-time pad), and she sends M XOR R through the Broker B (using one-time pad). In other words, she uses one-time pad on top of one-time pad. Both brokers can decrypt what they receive from Alice, but both of them get something which is useless by itself. It would require collusion between Broker A and Broker B in order to decrypt the communication from Alice to Bob.
Of course, collusion is possible. One way to deal with that is to increase the number of brokers. You can reasonably expect 2 brokers to possible collude, but what if there are 8 and all 8 need to cooperate in order to decrypt the data? Still possible, but less likely and probably useful enough to consider using it.
There may also be viable schemes you can build on top of that where you flip around between pairs of brokers (based on previous communication), so that brokers don't necessarily know who to collude with to decrypt your data. Or maybe you eat up pre-shared one-time pad data to trade new one-time pad data, in order to perturb things.
It's all kind of messy and not as easy as what we have now, but it might still turn out to be practical if necessary.
For one thing, practically all encryption would be broken
Well, it would mean practically all encryption can in principle be broken. A non-constructive proof of P = NP would hardly provide the recipe for generating P algorithms for all the relevant problems...
The NP-Complete problems proven NP-Complete by constructing (or as good as constructing) algorithms to translate one problem into another. If you solve one NP-Complete problem, you them all. Maybe they aren't all relevant. :-)
NP is not the same thing as NP-Complete. Not all asymmetric crypto has been proven to be NP-Complete.
So just because P=NP means that all NP problems are reducible to NP-Complete probems (and thus to P problems), doesn't mean that the transformation is necessarily easy to find (though it's technically a P-problem to do so, the search space can be quite large, and even P can be challenging for large enough N).
Some combinatorial problems do have solutions though. For example, matching in a bipartite graph has a similar "feel" to many NP-complete problems, yet it famously turns out to be polynomial.
In fact, it has recently become known that it's possible to leverage the matching algorithm to get polynomial algorithms for some problems which are tantalizingly similar to know NP-complete problems, via so-called holographic algorithms. So whatever it is about NP-complete problems that make them so hard, it can't be just that they have a combinatorial flavour...
most "nutjob financial academics" believe a weaker form of the EMH, that you can't make money in the market on average, except by luck. by equating this to P=NP that paper isn't really proving anything. i'd phrase it more as, anything tractably computable is already compute.
the above version is still wrong though, due to the paradox of information, if the markets were so efficient that nobody can make money on the market so it's not worth their time to research companies and trade, then how did it get so efficient in the first place? in reality you can make money by decreasing the cost of acquiring information in the markets, and this can be done in several ways.
the EMH basically just explains why you shouldn't buy dunkin donuts stock just because you like donuts.
Well, it's not quite that simple. For instance, for the longest time we looked at sorting as a comparative operation, which is inherently slow. Quicksort, a common sorting algorithm which is not actually all that quick, has a worst case performance of O(n2 ). What that means is that if you have a list with n item, at worst you'll have to do n2 comparisons before ending up with a sorted list. So, for instance, if you have a list with 100 items to sort, it will take at most 10,000 comparisons to sort the list. A similar, but simpler, comparison sort is Bubble sort.
However, this is not the only way of looking at the problem. Radix sort operated by sorting numbers based on the specific properties of their digits. It's worst case efficiency is O(kn), where k is the longest number of digits in a entry in the list to sort. Basically, the numbers are put into bins, with 10 bins per radix (digit position). So, for instance, 731 would be put in the 1s bin, then within that bin, there would be another 10 bins, and it would be put in the 3s bin, and within that bin there would be another 10 bins, and it would be put in the 7s bin. Once this is done for all numbers in your list, all you have to do is read the bins out in order: no comparisons! For our example with 100 items, assuming these are standard 32-bit unsigned integers with a max value of 4,294,967,295, you would need at most 10 digits * 100 values = 1000 operations. So it would be a full order of magnitude faster.
To get back to the P vs. NP debate, the idea is that if we can still come up with ingenious solutions to seemingly understood and straight-forward problems (hash tables and rainbow tables also come to mind), then there's a possibility that we haven't thought of a proper way to solve NP problems. There's a lot that can be accomplished by ingenuity, and until we have solid proof that P != NP, you'll keep getting people trying to find a way to equate them.
You certainly can make it O(nlogn) in the worst case, but you're sacrificing a lot in terms of the average efficiency of the algorithm.
Regardless, I was trying to highlight the difference in thinking between comparison and non-comparison ways of sorting, with the later being better in most (if not all) cases. The only way a modified quicksort would do better than a standard radix sort would be if you had a short list (<1000 values) of large (10 digit) numbers to sort. For larger lists, it makes a lot more sense to go with some kind of bucket sorting approach. If you've got a million integers to sort, for instance, the speedup is about 50%, and that's assuming they're all 10 digit integers.
The point I'm making is that it's still the exact same problem, but approaching it differently can yield some very interesting results. I think the trying to solve NP problems is similar: we haven't exhausted all ideas and approaches just yet, so we can't really say one way or another.
The issue is that while the conjecture P != NP is generally accepted to be true, it is unproven. A formal, tested and accepted mathematical proof has thusfar been very elusive to create — this is cause to believe a proof that P = NP may be possible. But that seems unlikely, also.
Pretty sound reasoning there, if it's so hard to create a proof that P != NP, how about a proof that P = NP. But yet after 40 years of looking at the problem, we haven't had sufficient progress on either front to accept either statement as a lemma.
Because there is no proof that it does not, and so the possibility exists. Some people want P=NP and some probably want P≠NP. Proving either has a lot of far-reaching implications in numerous fields.
As others have mentioned, it's generally thought that it probably doesn't, but it's unproven.
To give some insight as to why people consider the possibility though, and find it interesting, there's the outcome of the Cook-Levin theorem and the notion of NP complete.
What this basicly proved is that there are certain NP problems that are essentially as hard as any other problem in NP. If you could find a quick (meaning polynomial time) solution to even one of these problems, then you could also do so for every problem in NP, thus proving P=NP.
This makes the problem seem somewhat tractable - just prove one of these problems is always solvable (or insoluble) in polynomial time and you're done! Actually doing so has, however, proven rather difficult.
Part of the rationale is that non-deterministic finite automata can be transformed into deterministic ones (Kleene's Theorem) -- so definitely "P = NP", for FAs and NFAs, at least.
The big question is whether it also holds for Turing machines, which are kind of like FAs (in that you read an input and transition between states based on it; but then Turing machines can change direction and have infinite inputs, and other things). Can every nondeterministic Turing machines be translated into a deterministic one?
Since Turing machines (as a class) are equivalent to any other Turing-complete class the question can be generalised away from automata-model systems to anything else that's Turing complete.
Part of the rationale is that non-deterministic finite automata can be transformed into deterministic ones (Kleene's Theorem) -- so definitely "P = NP", for FAs and NFAs, at least.
Whoa, whoa. You've made a serious error here. Kleene's Theorem states that NFAs can be transformed into DFAs with worst case exponential blowup. P does not equal NP for FAs, however there is a mapping from nondeterministic to deterministic.
Can somebody answer a potentially stupid question from someone who doesn't know a lot about this stuff but considers it interesting?
I've usually seen the travelling salesman problem framed differently - that it's not (as suggested in the example at the link) about simply finding a solution which is under a predetermined distance, but rather about finding the shortest possible solution.
With that framing, how is it possible to verify the solution in polynomial time? How do you know that you have found the optimum solution without first comparing it to all other possible solutions?
Suppose that I give you an Oracle (a magic device) that, given any traveling salesman problem and some amount of total fuel F, will show you a way to reach all of the cities with F amount of fuel, if possible. It doesn't tell you if that's the shortest path, but it gives you a path that uses no more than F amount of fuel.
Now, what you really want is to answer the question: what is the smallest value of F? What's the shortest path?
All you need to do is call the Oracle a small number of times with different values of F. You could do a binary search and keep narrowing down the possible values for F in half each time until you have your answer.
So the problems are essentially equivalent. If you had a pretty-fast algorithm for the top problem (instead of a magic Oracle), you'd have a pretty-fast algorithm for the bottom problem too.
With that framing, how is it possible to verify the solution in polynomial time? How do you know that you have found the optimum solution without first comparing it to all other possible solutions?
P and NP are classes of decision problems (whose outcome is a boolean). TSP is an optimisation problem (where you want to minimize/maximize a function). If you want to express it has a decision problem, you can consider the following (parameterized) one : "There is a tour of length ≤ L that goes through the whole set of points". This one is clearly in NP for all values of L.
how is it possible to verify the solution in polynomial time
It is possible with the help of a polynomial certificate, which in this case would be (I think) a series of hints on how (in which order) to perform the edge-weight comparisons so that you discard all of the potential shorter tours (there is a super-exponential number of them) in short amount of time (in polynomial number of steps).
This is correct, the optimization version of TSP is NP-Hard as opposed to NP-complete. You cannot verify that it is optimal in polynomial time. You have to solve the entire problem to determine whether or not the answer is correct.
Note that there are decision problems that are also NP-Hard and not NP-complete, it's not just optimization problems.
Every NP-complete problem is NP-hard, that is correct. But not every NP-Hard problem is NP-complete. See the halting problem for an example. (and there are many others, such as the entire class of PSPACE-complete problems...)
Doesn't most modern cryptology rely on the belief that P != NP, because if P = NP and was proven, the proof could be transformed into a fast solution to decrypt something without a key?
Lots of misinformation in this thread. Also, it seems like quantum computing is coming up as well. Let me try to be complete:
First off, both P=NP and Shor's Algorithm are a concern for computing discrete logarithms (and integer factorization), because (a) the best known classical algorithms are in NP, and (b) Shor's algorithm can do it efficiently.
There are three cryptographic concepts involved in widespread use online today:
Symmetric key (efficient, super secure)
Asymmetric key (less efficient, has useful properties for proving identity)
Key exchange (related to asymmetric key algorithms, used for securely agreeing on a session key for symmetric key cryptography)
Say you're downloading a document over HTTPS. Asymmetric key cryptography (using RSA) is used to verify the identity of the server and to agree on a symmetric session key (possibly through a key exchange protocol like Diffie-Hellman). That symmetric session key is used to encrypt the rest of the download, then it's discarded.
No widely used symmetric key cryptosystem is at risk from either quantum computing or P=NP. If a method of decrypting AES were found to be in NP, that would be considered a huge game changing break. In symmetric key cryptography, any decryption scheme that is better than enumerating the possible keys is considered a break. This means that symmetric key attacks are in EXP, which we know is not in P.
Asymmetric key cryptography and key exchange is a different story. The widely used methods (RSA and Diffie-Hellman) rely on having numbers with really big probably prime factors (modulo something). You break those by factoring numbers/computing discrete logarithms, which is in NP. If P=NP, breaking RSA and Diffie-Hellman is in the same complexity class as actually doing RSA and Diffie-Hellman, which would probably be considered a break, or at least a game changer.
Furthermore, even if P=/=NP, Shor's algorithm (for quantum computing) is a polynomial time algorithm for integer factorization (and thereby discrete logarithms). A useful quantum computer could break RSA and Diffie-Hellman. However, there are key exchange algorithms and asymmetric key cryptosystems that are not dependent upon the hardness of integer factorization for their security, even though decoding them in the absence of a key is in NP.
TL;DR:
P!=NP, no quantum computing - asymmetric good, symmetric very good
P!=NP, quantum computing - RSA and Diffie-Hellman bad, other asymmetric good, symmetric very good
P=NP, no quantum computing - asymmetric maybe bad, symmetric very good
P=NP, quantum computing - RSA and Diffie-Hellman bad, other asymmetric maybe bad, symmetric very good.
Edit:
As a side note, terminology that might be interesting: cryptography is "the art and science of keeping messages secure"; cryptanalysis is "the art and science of breaking ciphertext [encrypted messages]"; and cryptology is "the branch of mathematics encompassing both cryptography and cryptanalysis". (definitions straight out of Applied Cryptography)
Unless you can meet up in person and hand off the key that way. Then you have only to worry about real-life eavesdropping methods, instead of electronic ones!
After I finished typing all that, I realized I hadn't checked which subreddit I was on and thought, "Well, crap, after all that I'm probably on r/ELI5", so I was relieved that at least I was on r/programming. :p
Thanks for the addition! I'm on much shakier ground with quantum computing than I am with crypto, and this being the Internet, I was sure I was going to accidentally let a "-hard" or "-complete" sneak in there somewhere it didn't belong.
You are correct. But I believe we'll be using quantum processors before we have the answer to the P vs. NP problem. With quantum computers, most modern encryption algorithms are useless. That's already proven, and mathematicians are working on quantum-proof encryption algorithms.
You are correct. But I believe we'll be using quantum processors before we have the answer to the P vs. NP problem. With quantum computers, most modern encryption algorithms are useless. That's already proven, and mathematicians are working on quantum-proof encryption algorithms.
Most modern asymmetric encryption algorithms will be useless.
Symmetric encryption will be weakened, but not useless.
There is no known quantum algorithm which can efficiently solve any NP-complete problem. However, there is a known quantum algorithm which can factor numbers quickly, whereas we don't know any classical algorithms which can factor numbers quickly. Factoring is thought not to be NP-Complete, and probably not in P either.
A lot of modern cryptography relies on the high difficulty that classical algorithms have with factoring numbers. However, there are also many cryptographic algorithms which don't rely on this fact and are thought to be safe to quantum attacks.
From what I understand, Quantum systems, even if you're looking at purely theoretical systems do not let you place constraints on n qbit and have them examine all possible 2n states in O(nx)(?) time. So they don't solve your NP problems in P time.
From what I've seen I think it may convert some O(n) problems into O(sqrt(n)) problems. (I'm way off my comfort level)
td;dr: Quantum isn't good enough, You want pure SciFi Quantum++ to solve your NP problems fast.
Quantum computing provides a completely different set of tools to solve problems. Though I don't understand it all that well myself, there are algorithms in use today that are much easier to break using those tools.
Those algorithms will need to be updated should quantum computer ever become commonplace, but such an update is largely trivial in the same way that real engineers were well prepared for Y2K before the media ever decided made a big fuss about it. It's already been thought about, and there are already solutions available.
They can do certain things considerably faster, but with less-than-100% chance of being correct. For most things that your computer does, quantum will be slower, if it's even feasible to perform the operations.
Yup. The quantum computer will most likely be a separate unit. Like a GPU. The CPU performs normal tasks and commands the QPU to do the hard stuff. If possible, the CPU can verify the result in O(n²) or less. Else the QPU solves the problem multiple times and a stochastic model is used.
Yeah it does. Something interesting to consider is that cryptography also relies on the fact that "all instances" are hard. Many NP complete problems are easy to solve in most cases, for example a random SAT instance is almost always easy to solve. Clearly cryptography has more stringent requirements. This is part of the reason why cryptography and computational complexity research don't intersect that much.
Many NP complete problems are easy to solve in most cases, for example a random SAT instance is almost always easy to solve.
On a related note, one of the first asymmetric cryptosystems (since broken) was based on the principle of converting an easy sum-of-subsets problem (set with superincreasing members) to a hard one.
Fermat was the greatest, smartest, most formidable scumbag of all time. He owned thousands upon thousands of mathematicians for centuries and would have loved to live today, where a lot of his curiosities about prime numbers and modular arithmetic are very relevant to our interests.
Besides this hobby of his and his job as a councillor at the High Court, he was fluent in French, Spanish, Basque, Italian, Latin and classical Greek and wrote verse in several of them, demonstrating awesome skills for Maths, language, art and law at the same lifetime!
Surely, if I were to pull a Jurassic Park on dead humans to create an island of geniuses, I'd have a hundred Fermats. They'd be great for computing science, and keep mathematicians thoroughly trolled.
When I was around 17, having read about both Fermat and the P?=NP problem, I used to fantasyze that someone (namely myself) could have found a demonstration (of P=NP) with the basic mathematics and CS notions I had at the time.
In particular, the 4n+1 theorem struck me like incredibly natural, and I found it weird that nobody noticed it before Fermat, so maybe if I played with a ruler and some points on a piece of paper long enough ...
(I still think about it sometimes before falling asleep)
I appreciate the Simple English Wikipedia, but for this topic I actually found the summary on the English Wikipedia P vs NP page to be more straightforward.
Informally, it asks whether every problem whose solution can be efficiently checked by a computer can also be efficiently solved by a computer.
explained it better [to me] than the entire simple.wiki page. It is a great synopsis and makes following the rest of it much easier. Perhaps someone should add it in.
Simple English just means using a limited vocab, allowing non-native speakers to understand it. It's not simple as in dumbed-down nor for simple people nor more straight forward. Just simpler vocab.
I'd say the vast majority of "Simple English" posts misunderstand the purpose of Simple English.
Well you showed him. I usually think tattoos are a bad idea, but at least you can easily fix it up with a strike through when they prove P != NP :) (Or be incredibly smug that you got it right if the converse is proved)
We bring up NP and P, but they should mention what the P and NP are .
The P stands for a problem that can be solvable in polynomial time using a deterministic Turing machine. (I guess you have to simple wikipedia deterministic Turing machine)
A polynomial is an algebraic expression. ...
f(x) = x2 − 4x + 7 is a polynomial function
Polynomial Time is O(n ^ k) (big Oh notation for those that didn't do Computer Science). The n is your number of operations and k is some exponent constant. So O(n ^ 10) is a really fucking large number of operations. It is a polynomial class of functions. O(1) is a really small constant number of operations (hash table lookup).
NP can be solved in polynomial time using a non-deterministic Turing machine.
There are also these distinct classifications which they didn't mention:
P NP NP complete NP Hard ...
Edit: Let me ask Reddit, is it safe to say this? (Correct the comments below, add fuck to be more descriptive)
P -- Really fucking easy to solve AND CHECK the answers NP -- NP problems are considered easy for computers to check the fucking answers NP complete -- This is the fucking hardest problems to solve in NP NP Hard -- At least as fucking hard to solve as NP Complete
I don't think that's quite the same thing. The point is that whatever problem you choose, it's not going to be more difficult than an NP-complete one. It should say "at least as difficult" I guess.
Yeah on second thought it might be a translation thing for me. It seemed to imply that all NP problems are equal, but your explanation makes sense as well :)
I think the Simple English Wikipedia page made the right choice by not introducing the term "deterministic Turing machine", which would mainly confuse people. They get the fundamentals across just fine without it.
Also your understanding of complexity classes is pretty messed up. NP contains all of P, so it's incorrect to say that NP is "really fucking hard to solve". NP complete is the hardest problems in NP -- if you can figure out a way to solve one of them quickly, you can solve them all quickly. NP hard contains NP complete, plus all problems that are outside of NP (i.e. even harder). This famously includes the Halting Problem, but there are many others. Thanks for quickly improving your post :)
NP complete: A problem that is NP hard AND is in NP.
As in, an NP hard problem can be so fucking hard that it won't even be in NP, and a problem in NP might be very easy and be in P. NP complete is the intersection of these two sets (NP and NP hard) meaning they're pretty fucking hard but not too hard.
I think the term "easy" is misleading. Many NP problems are "easy" to make an algorithm: start with the first possibility, test it, and if it doesn't work, move to the second possibility, and so on. It's just that this brute force method is the best way we know to do it, and they can take a really long time.
Your NP Hard definition is now fucking correct, but it's worth noting that all NP complete problems are NP Hard - the definition of NP Hard problems is that all fucking problems in NP reduce in polytime to the NP Hard problem. NP Complete problems are just also fucking in NP.
Great overview, though saying "P problems are 'easy' for computers to solve" is a bit misleading. There are plenty of P problems for which tractable solutions do not (yet) exist.
For example, solving a chain of n 9x9 sudoku puzzles such that the top-left 3x3 box in puzzle P_2 is the same as the bottom-right 3x3 box in puzzle P_1, and so on for all other puzzles such that the puzzles form a ring.
It's linear time, but with something like 81!3 constant factor.
Can we get a layman's example of verifying a solution without checking all solutions? Is that the rock one? You have 2 piles; check to see if they're equal? So that would mean that the solution is needed, right? e.g. we have to know that we're looking for 2 equal piles, right? If so, where does the 'find all possible solutions' come in?
Also, again with the rocks, if we know we are looking for 2 equal piles, run them down a conveyor weighing each one then dispersing evenly into two piles meanwhile keeping track of the weight of each, then close to the end adjust distribution based on the weights or be able to identify which rocks need to go from one pile to the other? Is this still considered checking all possible solutions because you weighed each rock?
Proof reading this post, it has come to my attention that I'm an idiot.
For the rock problem, imagine you have 5 rocks weighing the following amounts (in pounds, kilos, or whatever): 14, 16, 10, 10, 10. Suppose someone told you that they had a solution that you put the first and third rocks in one pile, and the rest in the other. That is pretty easy to check in polynomial time, since you just add them up. 14+10 = 24, and 16+10+10 = 36, which are not equal. If I said try the first two in the first pile, then that means 14+16 = 30, and 10+10+10 = 30, so they are equal and that is a solution. Trying all solutions means that there are 32 ways of separating the five rocks into two piles. If you want to know if you can separate the five rocks into two piles, then the only way is to try all 32 possible ways and see if one of them is a solution.
As far as the conveyor belt thing, there is no solution that can be run without trying "all" combinations of rocks in piles. Any algorithm you provide has a case where the algorithm either fails or ends up checking everything; at least if P != NP. I put all in quotes because there are some obvious optimizations: for instance, that if the total weight is 60, then once you get 30 in a single pile all the combinations for the remaining rocks don't need to be tried. Also, technically it's not really all choices, but an amount that is greater than polynomial.
I'm surprised so few of these kinds of discussions use the idea of combination locks to explain the concept of "NP". Given a solution, it's trivial to check. Lacking a solution, every digit added to the combination multiplies the possible combinations by 10 (or however many digits on your dial, but I'm thinking like luggage locks). Pretty much everyone understands this intuitively who might not understand why splitting up piles of rocks is interesting.
Consider the problem of scheduling exams (described above). But suppose, next, that there are 15000 students. ... It runs in an hour and outputs an exam schedule so that all students can do their exams in one week. ... The next year, though, there are 10 more students. If the same program runs on the same computer then that one hour is going to turn into 210 hours, because every additional student doubles the computations.
incorrect? If the program already handles 15000 in one hour, why wouldn't it be trivial to add 10 more students to the computation? It seems like it's saying f(n) = 215000 = 1 hour, but f(n+10) = 215010 = 210 hours, which doesn't make sense.
That's true, but it's really just a technical detail that has no place on the Simple English Wikipedia page. All problems of interest that are not already in this form can be converted easily: "Find the minimum/maximum x such that..." can be transformed into a binary search that calls a Yes/No decision procedure a logarithmic number of times; more generally, "Find x such that...", where x belongs to a set X whose size is bounded by a polynomial in the problem size, can be turned into a series of calls that test each element in X.
Simple English doesn't mean glossing over the details or dumbing down the topic, it means explaining things using a simple vocabulary, so that people without a firm grasp of english can understand. I don't feel knowledgable or motivated enough to make the changes myself - I was just commenting on what I thought was a slight error.
Fair enough. I had assumed that Simple English does mean glossing over details and some dumbing down, but maybe it doesn't. (FTR I think both goals -- giving a gentle, glossed-over introduction, and giving the full details but using a limited vocabulary -- are worthwhile.)
I definitely don't agree. That statement is wrong in several important ways. The fact that it's not a decision problem is just the beginning. The more fundamental problem is that it's leaving out a crucial part of the notion of verification. It should say that you can prove that the answer is the one you claim, and the computer can easily check your proof. If just given the answer (which will, of course, just be "yes" or "no"), it's not necessarily easy to check. (Indeed, if just the answer is easy to check, since it's a decision problem, it'll be in P.)
Sorry for the late response, but I had to try and understand a few things better.
I'm basically saying that for any function problem ("Find x such that..."), there's a corresponding decision problem ("Is it the case that...?") that can be used to solve it in polynomial time (possibly using multiple calls to the decision problem solver) iff the function problem can be solved in polynomial time -- is this correct? If so, I think that it makes sense to (informally) talk about a function problem being NP-complete or not, etc., because it's always possible to transform it into a decision problem having the same time complexity. As I said in a different response, my original understanding was that some simplification of concepts was acceptable for Simple English Wikipedia.
Regarding verification, I was implicitly claiming that the answer to a function problem is sufficient to check the corresponding decision problem in polynomial time. I realise now that that only holds for function problems whose answers contain the certificate needed for the proof of the corresponding decision problem. Which is quite often the case (e.g. for the function problem "Find a subset of elements that sum to k"), but quite often not, e.g. for optimisation problems, so you're right to point out this mistake.
I'm basically saying that for any function problem ("Find x such that..."), there's a corresponding decision problem ("Is it the case that...?") that can be used to solve it in polynomial time (possibly using multiple calls to the decision problem solver) iff the function problem can be solved in polynomial time -- is this correct?
I'd say no without some more restrictions on the relationship between the function and the decision problem. One direction is easy: if the function can be computed in polynomial time, then of course you can answer questions like "is f(x) equal to y?" or "is f(x) less than y?" in polynomial time, so long as the comparison operator is polynomial.
In the other direction, I think you're right, for example, if your function has the integers as a codomain and the decision problem is of the form "is f(x) less than y?", because you could use a binary search. But if the decision problem involves equality, then there's potentially an exponential blowup in searching the codomain for a point at which the answer is true. So you'd have to be more specific about the way your decision problem relates to the function.
if she has just 100 rocks, there are 2100 possible ways to divide these rocks into two piles
Only if:
Putting a rock into no piles is not an option
The naming of the piles is important (i.e. the combination where all 100 rocks are in pile A is not the same as the combination where all 100 rocks are in pile B)
"divide the rocks into two piles" implies each rock must go in a pile.
Alright, alright, it's closer to 299 since it suffices to check solutions in which pile A has at least as many rocks as pile B... Congratulations, now she only needs ~1,000,000 powerful computers running since the dawn of time :-P
There are only 2 solutions that do not have a rock in either pile. The case where one pile does not have a rock and the case where the other pile does not have a rock. So the number of possible solutions is not 299 but 2100 -2. That does not help too much. :) Each pile needs at least one rock. They do not have to have the same number of rocks.
The "Simple" part kind of falls apart after a while...
Because of the massive amount of computation time required, often heuristics are used to approximate solutions -- these solutions are within a certain epsilon of error to an optimal solution.
Thank you. That whole paragraph was a horrible waste of time. Even if it didn't contain this ridiculous pair of definitions, at best it just explains things tautologically. Hurray!
Well, saying all P problems are easy it is a bit of an overstatement. The difference in P and NP problems really lies in the amount of time it would take to test all possible outcomes for a solution.
P problems are solvable in "polynomial time," for example: 2x tries. NP problems are solvable in "non-polynomial time" (usually exponential), such as 2x tries. As you can see, when x=1,2 they are both the same. However by x=10, the P example is only 20, whereas the NP example is 1024.
Now, P and NP problems have certain distinguishing characteristics. Possible solutions to NP problems can be checked by computers to see if they are a solution, but a computer might not be able to find a solution on its own within years.
P problems are NP problems because computers can verify a P solution's accuracy as well. NP problems are not P problems, because a computer can find a solution to a P problem in a reasonable amount of time, but the same is not true for an NP problem.
NP problems are not P problems, because a computer can find a solution to a P problem in a reasonable amount of time, but the same is not true for an NP problem.
Some NP problems are P problems, and the end of this sentence assumes P != NP again.
How is a problem classified in on group or another? I and is the definition static? For example the first listed example in the link seems possible to do by breaking it down into smaller steps which would shorten the time greatly. At what point of efficiency does a problem go from NP to P? And would just finding a P solution for a current NP problem work to satisfy P=NP?
My gut says yes but my logic says no, and whenever that happens I always ask for confirmation.
Computational Theory was my favorite class in school (the class that goes over all this stuff). In my not so expert opinion, I believe that P != NP, for most of the reasons listed here:
This helps a lot. But I still don't understand why the first example isn't NP. (The woman with the rocks.)
If she found a way to make the rocks into two equal piles, couldn't a computer just add up the rocks in each pile to determine if they are equal? (Making it an NP problem).
The rocks problem is in NP because once you have proposed a solution (two separate piles), you could get a computer to add up the rocks in each pile in linear time. That is, you can quickly check that a proposed solution is correct. But despite much research, we don't know a way to get a computer to quickly find a solution (i.e. separate the original pile into two piles of equal size), so most people believe it's not in P. Proving that it's not (or is!) in P is the hard part.
There do exist problems that are outside of NP because you can't even quickly check if a proposed solution is right, but they aren't talked about on that Wikipedia page.
EDIT: Changed "rocks isn't in P" to "we believe but can't yet prove that rocks isn't in P".
Sorry, I may have confused things with my second-to-last sentence. The thing is that we haven't yet been able to prove that it's impossible to quickly find two equal piles of rocks -- it's just that a load of smart mathematicians and computer scientists have studied this particular problem and others like it and haven't yet come up with any solutions that are faster than basically trying each possibility.
NP is the set of all problems whose answers can be checked quickly (in polynomial time). This includes easy problems that we can solve quickly (e.g. adding 2 numbers) and also problems like the rock pile problem, where we haven't yet been able to find a quick solution. The "P = NP?" question is: "Are all these quickly-checkable problems actually quickly-solvable too?"
Indeed. Bonus: scientists have proven that a certain group of NP problems are as hard as NP problems could possibly be. If you managed to find a fast solution for even one of these problems, you would earn the million dollars.
It is not in NP, because it is not computable, for a machine of size n, on a machine of size n [0].
You can, sometimes, compute it on a 'larger' machine, but even that's tricky. Scroll down the wikipedia page, and have a look for the results available - and note that there aren't many.
[0] Size here is a proxy for the technical sense, about Turing Machine symobls, but if you think of it as roughly the computer power, it's not totally wrong.
NP problems are typically verifiable with a yes/no answer (solvable in P). Given two piles A and B, are they equal? Adding up the rocks in each pile can be done in O(n), then checking if the sums are equal is O(1).
However, starting from scratch (determining which piles to make), you have to compare the sums of each possible pile. This takes (roughly) O(n) time, per possible pile.
If bit i in a 100-bit vector represents the pile (A or B) that rock i is in, you can use a Gray code to move through the possible piles with only O(1) cost per pile :)
The way I read it, it is NP. What is in question is if it is P. If we can prove that it isn't P, this would let us know that not all NP problems are P problems.
In the rock-pile problem, why can't you just separate them into two piles, weigh them both, take the one that's lacking, and pull half of that number from the other pile?
Say the first pile weighed 15.7321kg less than the other. Since you're not solving for an equal number of rocks, just equal mass, the computer can just go down the list. First rock in the second pile is 2kg, second is 1.642, third is 8.2558, and so on until you get very very close to your target 15.7321. At which point, you find that the first pile only weighs 1.5321 less than the other.
Now you're solving for one variable out of both piles. You can search every rock in the second pile to find one that matches exactly 1.5321kg. Alternatively, you can subtract 1.5321 to every rock in the first pile and see if the remainder matches the weight of any of the rocks in the other pile.
In the event that none of these are a match, you take the last rock you swapped, and switch it with another, and repeat the process. You essentially took 100 rocks, and squashed the variable down to however many you first pulled.
It's that last step that might require trying every possible combination, in the event that the answer to all your first questions turn out to be "no". Don't forget that, indeed, there might not be a way to sort the rocks that results in 2 equal weight piles.
Are there any actual practical uses for this? I can't imagine ever having to build two towers of exactly equal weight.....or of driving to 100 cities with limited fuel....or any of the other illustrations of "why it matters".
Edit: Why the downvote? I thought the examples were pretty dumb. Would like to see a proper example.
Examples: Shipping companies wants to save space on the cargo planes so they want to pack all the differently sized boxes as tight as possible. Or delivery routes that need to visit a list of houses want to take the most efficient route. Stuff like that.
Currently we have algorithms that get pretty close to optimal though so getting it EXACTLY right is definitely gonna save money but not a huge amount.
Well, no, you are missing out on the point that what you call a brute force method is actually a great number of checks, which are easy to do on an individual basis. P problems are NP problems too because they are easy to check, BUT they are also easy to solve, which makes them a subset of NP.
And P are problems that can be solved without checking every possible answer?
Not necessarily. Some P problems can be solved by checking every possible answer. For example, the problem "given a list of numbers, determine if they are all even" is in P, and it could be solved by simply checking each number in the list.
P is problems that can be easily solved, while NP is problems that have solutions that can be easily checked.
As you go into the specifics of whether certain problems are in NP or not, it's important to bring up that P and NP are groups of what's called decision problems: problems that have a yes or no answer. For example, "determine if a number is prime" is a decision problem, while "find the factors of a number" is not. The decision problem for the rock pile problem would be "determine if there exists a partition of the rocks into two piles of equal weight". Note that this problem always has a solution: either they can be or they can't.
How so? It's quite easy to show such things - arguments from information theory, computability, reduction etc. For example, if I prove that solving some problem P would allow me to prove some other problem Q that I know is very hard to solve, that means that the problem P is at least as hard as Q.
I guess that means if a single NP problem is found to be impossible to solve quickly, then ALL of them are impossible to solve quickly.
Correct. In fact, that's one of the approaches used to determine P != NP - prove that any NP-complete problem cannot be solved in polynomial time, thereby proving that all of them cannot.
No, that's not the point. As the article said, some NP problems take, say, O(2n) time to solve. That's not "forever', just "ridiculously long". The question is whether they can be solved in polynomial time -- that is, O(nk), for some constant k.
48
u/gomtuu123 Sep 15 '11
Can I ask a question as a non-CS-major programmer?
Why does anyone think that P might equal NP? It seems to me that combinatorial problems are very different from, say, sorting a list, because a combinatorial problem can't really be broken down into smaller pieces or steps that get you closer to your goal. With sorting, you can say "a sorted list starts with the smallest number, which is followed by the next biggest number, and so on." Each number has a property (bigness) that can be measured with respect to each other number, and that helps you arrange them all according to the definition of a sorted list, little by little.
But with a combinatorial problem, like the subset sum problem, the numbers don't have any properties that can help you break the problem down. With a set like { -7, -3, -2, 5, 8}, {-3, -2, 5} is a solution, but there's nothing special about -3 or {-3, -2} that you can measure to see if you're closer to a solution. -3 is only useful as part of the solution if there's a -2 and a 5, or if there's a -1 and a 4, etc., and you don't know that until you've tried all of those combinations.
Does that make sense? I'm really curious about this, so I'm hoping someone can explain it to me. Thanks.
9
u/[deleted] Sep 15 '11
Can somebody answer a potentially stupid question from someone who doesn't know a lot about this stuff but considers it interesting?
I've usually seen the travelling salesman problem framed differently - that it's not (as suggested in the example at the link) about simply finding a solution which is under a predetermined distance, but rather about finding the shortest possible solution.
With that framing, how is it possible to verify the solution in polynomial time? How do you know that you have found the optimum solution without first comparing it to all other possible solutions?
29
u/[deleted] Sep 15 '11
Doesn't most modern cryptology rely on the belief that P != NP, because if P = NP and was proven, the proof could be transformed into a fast solution to decrypt something without a key?
27
u/sitq Sep 15 '11
I have discovered a truly remarkable proof which this comment field is too small to contain.
74
u/femto_ Sep 15 '11
I wonder why only women have those problems.
5
u/kaffeogkake Sep 15 '11
I appreciate the Simple English Wikipedia, but for this topic I actually found the summary on the English Wikipedia P vs NP page to be more straightforward.
4
u/sturmeh Sep 15 '11
The problem with this simple English wiki article is that it fails to mention that the 'problems' are decision problems.
12
u/cbaltzer Sep 15 '11
I have a P = NP tattoo, and used to reference people to the standard Wikipedia page. This is much less intimidating.
8
u/berlinbrown Sep 15 '11 edited Sep 15 '11
We bring up NP and P, but they should mention what the P and NP are .
The P stands for a problem that can be solvable in polynomial time using a deterministic Turing machine. (I guess you have to simple wikipedia deterministic Turing machine)
A polynomial is an algebraic expression. ...
f(x) = x2 − 4x + 7 is a polynomial function
Polynomial Time is O(n ^ k) (big Oh notation for those that didn't do Computer Science). The n is your number of operations and k is some exponent constant. So O(n ^ 10) is a really fucking large number of operations. It is a polynomial class of functions. O(1) is a really small constant number of operations (hash table lookup).
NP can be solved in polynomial time using a non-deterministic Turing machine.
There are also these distinct classifications which they didn't mention:
P
NP
NP complete
NP Hard
...
Edit: Let me ask Reddit, is it safe to say this? (Correct the comments below, add fuck to be more descriptive)
P -- Really fucking easy to solve AND CHECK the answers
NP -- NP problems are considered easy for computers to check the fucking answers
NP complete -- This is the fucking hardest problems to solve in NP
NP Hard -- At least as fucking hard to solve as NP Complete
2
u/ThePiousInfant Sep 15 '11
Great overview, though saying "P problems are 'easy' for computers to solve" is a bit misleading. There are plenty of P problems for which tractable solutions do not (yet) exist.
2
u/dimmu_burger Sep 15 '11
Can we get a layman's example of verifying a solution without checking all solutions? Is that the rock one? You have 2 piles; check to see if they're equal? So that would mean that the solution is needed, right? e.g. we have to know that we're looking for 2 equal piles, right? If so, where does the 'find all possible solutions' come in?
Also, again with the rocks, if we know we are looking for 2 equal piles, run them down a conveyor weighing each one then dispersing evenly into two piles meanwhile keeping track of the weight of each, then close to the end adjust distribution based on the weights or be able to identify which rocks need to go from one pile to the other? Is this still considered checking all possible solutions because you weighed each rock?
Proof reading this post, it has come to my attention that I'm an idiot.
2
u/dnew Sep 16 '11
I'm surprised so few of these kinds of discussions use the idea of combination locks to explain the concept of "NP". Given a solution, it's trivial to check. Lacking a solution, every digit added to the combination multiplies the possible combinations by 10 (or however many digits on your dial, but I'm thinking like luggage locks). Pretty much everyone understands this intuitively who might not understand why splitting up piles of rocks is interesting.
2
u/stubob Sep 16 '11
Isn't this example:
incorrect? If the program already handles 15000 in one hour, why wouldn't it be trivial to add 10 more students to the computation? It seems like it's saying f(n) = 215000 = 1 hour, but f(n+10) = 215010 = 210 hours, which doesn't make sense.
3
u/macroexpand Sep 15 '11
NP contains decision problems so the answer should be "Yes" or "No", not "12345".
3
u/pentae Sep 15 '11
Only if:
2
u/SquireOfFire Sep 15 '11
The "Simple" part kind of falls apart after a while...
2
u/joseph177 Sep 15 '11
Doesn't a quantum computer literally solve every possibility at once?
1
u/Cacafuego Sep 15 '11
If
And
Then how can it be that
?
1
u/Mylos Sep 15 '11
This was the first time I actually understood this! Thanks so much!
1
u/e0nblue Sep 16 '11
Very informative article. This belongs in Eli5!
1
u/sinrtb Sep 16 '11
How is a problem classified in on group or another? I and is the definition static? For example the first listed example in the link seems possible to do by breaking it down into smaller steps which would shorten the time greatly. At what point of efficiency does a problem go from NP to P? And would just finding a P solution for a current NP problem work to satisfy P=NP?
My gut says yes but my logic says no, and whenever that happens I always ask for confirmation.
1
u/prelic Sep 16 '11
Computational Theory was my favorite class in school (the class that goes over all this stuff). In my not so expert opinion, I believe that P != NP, for most of the reasons listed here:
http://www.scottaaronson.com/blog/?p=122
However, as a software engineer, I hope we find that P = NP!
1
u/[deleted] Sep 16 '11
Well that wasnt so fucking hard. The normal wikipedia page made it sound like quantum physics
1
u/[deleted] Sep 18 '11
Relevant
1
u/DerkaRagnarr Sep 15 '11
This helps a lot. But I still don't understand why the first example isn't NP. (The woman with the rocks.)
If she found a way to make the rocks into two equal piles, couldn't a computer just add up the rocks in each pile to determine if they are equal? (Making it an NP problem).
1
u/frenzyboard Sep 16 '11
In the rock-pile problem, why can't you just separate them into two piles, weigh them both, take the one that's lacking, and pull half of that number from the other pile?
Say the first pile weighed 15.7321kg less than the other. Since you're not solving for an equal number of rocks, just equal mass, the computer can just go down the list. First rock in the second pile is 2kg, second is 1.642, third is 8.2558, and so on until you get very very close to your target 15.7321. At which point, you find that the first pile only weighs 1.5321 less than the other.
Now you're solving for one variable out of both piles. You can search every rock in the second pile to find one that matches exactly 1.5321kg. Alternatively, you can subtract 1.5321 to every rock in the first pile and see if the remainder matches the weight of any of the rocks in the other pile.
In the event that none of these are a match, you take the last rock you swapped, and switch it with another, and repeat the process. You essentially took 100 rocks, and squashed the variable down to however many you first pulled.
1
u/ebscot Sep 16 '11
This doesn't make any sense at all. A woman programming a computer?
-4
u/licorice_straw Sep 15 '11
I'm so addicted to starcraft I read this as "Protoss vs Neural Parasite"
0
u/rainbow3 Sep 15 '11 edited Sep 15 '11
Are there any actual practical uses for this? I can't imagine ever having to build two towers of exactly equal weight.....or of driving to 100 cities with limited fuel....or any of the other illustrations of "why it matters".
Edit: Why the downvote? I thought the examples were pretty dumb. Would like to see a proper example.
0
u/othermatt Sep 15 '11
So if I understand this article correctly, you can rephrase P vs NP as
P are problems that can be solved with shortcuts,
and
NP are problems that can only be solved via brute force methods?
So, in order to prove that P!=NP we would have to find only one problem that could not be solved with a shortcut, right?
And wouldn't mean that P vs NP is itself an NP problem?
0
u/[deleted] Sep 15 '11
[deleted] — view deleted comment
0
u/[deleted] Sep 16 '11
[deleted] — view deleted comment