r/AskComputerScience • u/Fantastic-Manner-229 • May 19 '26
P vs NP is OG OP of comp sci
Some smug told me P vs NP is OG OP of comp sci....... how is that ? what even does it mean...... ? how can something be both og and op........ was he messing with me ?
0
Upvotes
6
u/lfdfq May 19 '26
It's not clear what part you want help with, do you not know what P vs NP is, or are you confused by your friend's remark? If the latter, you should just ask them what they meant.
4
u/iamconfusion1996 May 19 '26
Sounds like a prompt i'd put in an LLM
3
u/Beregolas May 19 '26
I have to admit that I have no idea what you mean by OG OP of computer science... If you can explain, someone might be able to help you with your confusion
1
u/cormack_gv May 19 '26
Maybe they said OG UP, which would mean original unsolved problem.
P = NP is indeed an unsolved problem.
Basically, NP is any problem for which you can verify the answer in polynomial time (e.g. quadratic, cubic, and n^k where k is a constant.). P is any problem that you can solve in polynomial time.
It is unknown whether there are problems that are NP but not P. There is a whole class of problems called NP-complete that are known to be NP, and if any one of them can be solved in P, they all can.
1
u/dmazzoni May 19 '26
P vs NP is the biggest unsolved problem in theoretical computer science. It’s actually a really fascinating problem if you haven’t learned about it.
It basically says that there’s this whole class of problems, the NP problems, that nobody has ever found an efficient way to solve. They range from finding the best path through a network of cities (traveling salesman) to optimizing the shape of an airplane wing to cracking some forms of cryptography.
But here’s the crazy part….if anybody could ever find an efficient algorithm to solve ANY of them, then there would be an efficient algorithm to solve ALL of them! It would upend the whole world by cracking secret codes and solving massively challenging problems.
Of course, maybe the answer is that it’s impossible…and yet for more than 50 years nobody has been able to prove it!
Computer science is a relatively young field of science so this is basically the oldest problem in computer science that is still unsolved.
OG means “original gangster”, some people use it as slang for something genuine from an earlier era.
Not sure about OP. Original problem? Open problem? UP for unsolved problem?
Either way the meaning is clear. It’s not just an unsolved problem, it’s THE unsolved problem.
1
u/Most_Double_3559 May 19 '26
Op being paid by the '.' lol
1
u/knouqs May 19 '26
The slang really is inappropriate here.
If you think of P versus NP as "OG", OK, it's true that the history of P versus NP is rich in computer science. The idea that a solution is tractable (in P space) means it can be computed within a "reasonable" time, though what we think of as reasonable is not what a computer does. An NP-complete problem, however, can be proven that it is NP-complete by converting the problem to a known NP-complete problem.
As far as it being overpowered, well, the reduction process is really interesting, and even the proofs for problems like 3-SAT are fascinating and a bit of a mind-bending exercise. Once you see how many problems are actually in NP, you get a better appreciation for the clever approximations of solutions for NP-complete problems.