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
-4
u/NeighborhoodFatCat Oct 24 '25
So time here means time-step of the algorithm routine. In other word, the algorithm updates once, then this time increment once, so and so forth. Has nothing to do with wall-clock time.
If a problem is hard, then it means all possible routines you can come up, time will grow in an exponential fashion in relation to the problem size, in other words, x axis is problem size, y axis is time and you should be able to fit an exponential curve through the times. Is that right?
Complexity theory ignores all possible hardware acceleration, multithreading, parallel workers, and quantum stuff, is that right?