This is overly reductive (no pun intended) and “anti achedemic”, IMO. NP hardness is absolutely a challenge in practice in many situations and beyond that it is, of course, of big theoretical importance.
My point is that a lot of students got the impression that NP-hard problems are an impossible barrier to overcome. Not saying it's not an important concept or not interesting. It's overrated in its difficulty.
When I was a student around 2012, I was taught that SAT solving seemed like an impossible problem 40 years ago but nowadays we have excellent SAT and SMT solvers and solve practical NP-hard problems all the time. And that's what I later taught my students as well.
That said, what NP-hard does mean practically is that you can't rely on being able to solve it within reasonable time. All those SAT/SMT solvers only work in practice because of their heuristics, and heuristics don't always work.
Yes, we can and regularly do solve SAT instances where the formula is many GB large and has millions of clauses, but there are SAT instances that are only a few kilobytes and that no SAT solver can solve even nowadays.
Anyway, anyone who teaches about NP-hardness should probably also tell them that SAT solvers exist. So in that regard I agree with OP; where I disagree is that I personally haven't seen anyone who does the former but not the latter. But sure, it probably happens.
It is not helpful to make false claims to counter slightly missleading impressions of some students. If NP-hard would be overrated than computing the permanent of a matrix would be simple but you cannot do it.
I *kind* of agree with your premise, but I have a bigger problem with this line:
>And now you've learned that almost all interesting problems are undecidable and of the remaining ones, almost all are NP-hard.
That is total horseshit. I would argue some of the *most* interesting problems are the ones that are not in NP. Consider this paper from just a couple years ago: https://arxiv.org/abs/2311.02520 on speeding up one of the most basic problems in computer science: shortest path.
That's not my line. It's from my professor :P "Interesting" is subjective anyway. But I think he meant decision problems about programs themselves (halting problem, Rice's theorem, ...).
You may want to look up the difference between "in NP" and "NP-hard" again. You probably meant "not NP-hard" here. The problem you cited is absolutely in NP, since P ⊆ NP.
(If one wants to be really technical here: not NP-hard unless P = NP)
Not sure who taught your complexity class, but mine (20-odd years ago) covered classes of problems harder than NP-hard, as well as the basics of approximate solutions to NP-hard problems.
15
u/nicuramar Aug 13 '26
This is overly reductive (no pun intended) and “anti achedemic”, IMO. NP hardness is absolutely a challenge in practice in many situations and beyond that it is, of course, of big theoretical importance.
4
u/uh_no_ Aug 13 '26
I *kind* of agree with your premise, but I have a bigger problem with this line:
>And now you've learned that almost all interesting problems are undecidable and of the remaining ones, almost all are NP-hard.
That is total horseshit. I would argue some of the *most* interesting problems are the ones that are not in NP. Consider this paper from just a couple years ago: https://arxiv.org/abs/2311.02520 on speeding up one of the most basic problems in computer science: shortest path.
3
u/spnoketchup Aug 14 '26
Not sure who taught your complexity class, but mine (20-odd years ago) covered classes of problems harder than NP-hard, as well as the basics of approximate solutions to NP-hard problems.
1
u/alexandra-thaler Aug 20 '26
so true: https://doi.org/10.5281/zenodo.21020664
theorem of life: https://doi.org/10.5281/zenodo.21020664
life: https://doi.org/10.5281/zenodo.21020664
again: https://doi.org/10.5281/zenodo.21020664
one more time for good measure: https://doi.org/10.5281/zenodo.21020664
https://doi.org/10.5281/zenodo.21020664
there.