r/SMBCComics • u/Ok_Sea6736 • 24d ago
SAT
https://www.smbc-comics.com/comic/satThis is the first comic in a while that I haven't understood. Anyone able to give me some context?
28
Upvotes
r/SMBCComics • u/Ok_Sea6736 • 24d ago
This is the first comic in a while that I haven't understood. Anyone able to give me some context?
17
u/AcellOfllSpades 24d ago
One of the most famous problems in computer science is the question of whether "P = NP". P and NP are classes of 'decision problems': we categorize problems by how hard it is to solve them. ("Hard" and "easy" in this comment are technical terms, with precise meanings that I won't go into.)
Problems in class P are the ones that are "easy to solve", in a sense. "What is the product of these two numbers?" is in P: there's a simple straightforward procedure to solve it, that you learned in grade school.
Problems in class NP are the ones that are "easy to check". A Sudoku puzzle might not be easy to solve, but if someone hands you an answer, it's easy to check whether it's correct: you just check that every row has 1-9, every column has 1-9, and every box has 1-9.
Any problem in class P is definitely in class NP as well: if someone hands you a solution, you can just "solve" the problem yourself, and check to see if their solution agrees with yours. So the important question is: are there problems in between, that are truly 'hard to solve'? Or is P secretly equal to NP, with nothing in between?
If we find out that P=NP, that means that Sudoku has an "easy" strategy to solve it, not just check the answer. You can imagine that this sort of thing would also be important for cryptography: "checking that a key works" is easy, and so if P=NP, that means that "finding the key that works" is also easy.
It's widely believed that P is not equal to NP, that some problems are truly easy-to-check but hard-to-solve... but despite decades of effort, we haven't found a proof for it.
SAT is one particular problem that is "NP-hard": if you can solve it "easily", you can solve every problem in NP easily. In other words, discovering an "easy" solution would let us solve every other NP problem "easily", from puzzles to cryptography to graph theory to route planning to scheduling...
The comic here is saying "yeah, SAT has an """easy""" solution -- according to the technical definition of """easy""" -- but it's so unimaginably, ridiculously slow that this solution couldn't be used even for the simplest real-world instances of the problem". It'd be a complete overturning of the general consensus that could theoretically lead to a breakthrough in a ton of different fields... but any attempt to actually use that "easy" solution would still exceed the lifetime of the universe by an inconceivable amount.
23
u/Eiim 24d ago
SAT here refers to Boolean satisfiability problems, which are a very fundamental type of problem in math with a lot of applications. It's also currently unknown whether it's possible to solve them in polynomial time, that is an amount of time proportional to na, where n is the number of inputs and a is a constant. This comic suggests that SAT could be solvable in polynomial time, but the exponent would be so large as to be completely impractical for any actual purposes. Tree(3) is a famously unfathomably large number, to the point that it would take a whole long explanation to even start to wrap your head around the scale of Tree(3).
8
u/Sowelu 24d ago
Dropped in to say the same thing (or, rather, to ask the same thing). Feel like we need an smbc equivalent to explainxkcd.
6
u/Aervanath 24d ago
I love Reddit. I didn't even know this sub existed, and someone has already asked the question I came here looking for the answer to.
2
u/Begle1 24d ago
What level of mathematics education would I need to attain for this joke to make sense?