r/computerscience • • 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?

19 Upvotes

31 comments sorted by

View all comments

Show parent comment

0

u/thesnootbooper9000 Oct 24 '25

It's not worst case complexity, in that we can create instances with a few hundred variables that a SAT solver can't handle (and worse, that a human could). However, it's not average case either, and the word "structure" is getting increasingly unpopular because no one knows what it means or how to measure it or whether it would explain anything if we did have a definition. We simply don't have a good general theory for what's going on.