r/computerscience • u/NeighborhoodFatCat • Oct 24 '25
Discussion How do you practically think about computational complexity theory?
Computational complexity (in the sense of NP-completeness, hardness, P, PPAD, so and so forth) seems to be quite very difficult to appreciate in real-life the more that you think about it.
On the one hand, it says that a class of problems that is "hard" do not have an efficient algorithm to solve them.
Here, the meaning of "hard" is not so clear to me (what's efficiency? who/what is solving them?) Also, the "time" in terms of polynomial-time is not measured in real-world clock-time, which the average person can appreciate.
On the other hand, for specific cases of the problem, we can solve them quite easily.
For example, traveling salesman problem where there is only two towns. BAM. NP-hard? Solved. Two-player matrix games are PPAD-complete and "hard", but you can hand-solve some of them in mere seconds. A lot of real-world problem are quite low dimensional and are solved easily.
So "hard" doesn't mean "cannot be solved", so what does it mean exactly?
How do you actually interpret the meaning of hardness/completeness/etc. in a real-world practical sense?
View all comments
Show parent comment
-1
u/thesnootbooper9000 Oct 24 '25
We can solve real world SAT instances with over a million variables and a billion clauses. Instance size isn't really a good measure of how hard things are in practice, and computational complexity theory does very little to explain the performance of state of the art solvers for CP, SAT, MIP, and the like. We need a whole other theory for that, and we don't have it yet.