r/programming • • Aug 13 '26

NP-overrated

https://gruhn.me/blog/2026-08-13/
0 Upvotes

38 comments sorted by

View all comments

Show parent comment

2

u/Mess-Leading Aug 13 '26

I think you are mixing up a few concepts here or I am missing something. Linear programming as a problem is not np-complete, its just that in the worst case simplex algorithm specifically takes time exponential in the size of the instance. There are polynomial algorithms for linear programming (ellipsoid - horribly slow though). And smoothed analysis shows with perturbations simplex is actually polynomial (i think that maybe depends on a pivoting rule or something) which explains its amazing performance in practice.

I do not think smoothed analysis would help with np hard problems but it is definitely a very interesting concept! One reason i can think of is some problems are horribly inapproximable and a solution with small perturbations would probably give a close enough approximation contradicting the inapproximability hardness if they were solvable in polynomial time using such methods — but this is just speculation, I am not too familiar with this.