r/SMBCComics • • 24d ago

SAT

https://www.smbc-comics.com/comic/sat

This is the first comic in a while that I haven't understood. Anyone able to give me some context?

28 Upvotes

17 comments sorted by

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.

1

u/Ok_Sea6736 23d ago

Thank you -- seeing "SAT" refer to the boolean satisfiability problem was what I was missing!

4

u/No_Beat_5994 24d ago

Thank you very much for the thorough explanation!

1

u/z-null 22d ago

If this actually happened it would necessitate some work on reddefinining things.

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).

3

u/phyzome 24d ago

Thank you!

I feel like he could have gone with BB(9) or something instead of Tree(3) but then it would have been too readily understandable.

3

u/CharlieVermin 20d ago

Unfathomably large numbers are second nature to us, but the average person probably only knows BB(9) and...

I may not be enough of an expert to continue this joke. The largest numbers I know are "googolplex" and "something something arrows".

1

u/Eiim 20d ago

Graham's Number would be the obvious second I think, maybe googolplex for the of course.

2

u/CharlieVermin 20d ago

"Tree(3) Tree(3) Tree(3)" would also be a good transcription of the crickets you may hear after attempting to tell this joke.

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.

7

u/HappyFailure 24d ago

Zach skeeted about this one a while back: I've done it. The joke with the smallest possible audience.

Comments were way over my head, so I can't even explain what people there thought it meant.

5

u/Eiim 24d ago

Maybe I'm biased lol but I feel like this isn't the smallest possible audience, you just need some intermediate pop math knowledge to pull this one off. None of the concepts here are really too niche. If it had an intersection with like, advanced biology or something, then we'd be talking.

5

u/Eiim 24d ago

Not super maintained last I knew but https://smbc-wiki.com/index.php/Main_Page

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?

1

u/EebstertheGreat 23d ago
  1. Read an article on Friedman's finite form of Kruskal's tree theorem
  2. Read an article on P vs. NP

Should take maybe half an hour, less if you don't care about the details. You can skip (1) if you are willing to accept that TREE(3) is just a really, really big integer.