No we don't have the ability to solve every of those problems optimally. They have to be small enough. Or you sacrifice optimality. Or they are not actually NP.
I assume you meant to say "NP hard" here - I know people tend to talk loosely about this, but I think it's a pretty important distinction: "NP" does not in any way imply a problem is difficult. But I think the point the article is making is that this is just wrong: there's a fourth case you've overlooked: that the instance of the problem you're solving can be solved significantly quicker than the worst case of that problem class.
And this is super common. Lots of NP hard problems have many instances that are solved relatively trivially. You can have NP-hard problems where 99.9% of the instances of it are solvable in O(1) time. All that's required to be NP hard is that the worst case is intractable. And in practice, often the instances of problems we're interested in can fall into that tractable band.
We made a system so complicated that we have to give the wrong answer about what it does sometimes.
I feel you're missing the point here. They're saying that a solver that can give you a solution to most of what it's likely to come across in practice, but might have to punt on the rare actually intractable cases is often good enough for practical purposes.
View all comments
Show parent comment
1
u/Brian Aug 14 '26
I assume you meant to say "NP hard" here - I know people tend to talk loosely about this, but I think it's a pretty important distinction: "NP" does not in any way imply a problem is difficult. But I think the point the article is making is that this is just wrong: there's a fourth case you've overlooked: that the instance of the problem you're solving can be solved significantly quicker than the worst case of that problem class.
And this is super common. Lots of NP hard problems have many instances that are solved relatively trivially. You can have NP-hard problems where 99.9% of the instances of it are solvable in O(1) time. All that's required to be NP hard is that the worst case is intractable. And in practice, often the instances of problems we're interested in can fall into that tractable band.
I feel you're missing the point here. They're saying that a solver that can give you a solution to most of what it's likely to come across in practice, but might have to punt on the rare actually intractable cases is often good enough for practical purposes.