Urgent.News

What's breaking now, across thousands of outlets.

Tech

NP-overrated

Article URL: https://gruhn.me/blog/2026-08-13/ Comments URL: https://news.ycombinator.com/item?id=49291268 Points: 235 # Comments: 164

NP-hard problems have earned an overly negative reputation in academia. Many believe they are practically unsolvable due to their immense complexity. However, in real-world applications, these problems often prove much more manageable than theory suggests.

Experts argue that the worst-case scenarios seldom occur in practice. For instance, package installation and type checking may appear slow, but catastrophic failures are rare in their careers. Similarly, optimization problems, typically classified under NP-hard, can be approached with heuristics without sacrificing optimal solutions.

In fact, advancements in algorithms have led to significant speedups over the past few decades. There has been a staggering 450-billion-fold improvement in processing power from 1991 to 2015. Even complex problems like SAT, a subset of NP-hard problems, have become relatively easy with improved algorithms.

However, the authors caution against potential worst-case scenarios. They advise implementing timeouts and error messages to handle these unpredictable situations. Despite the theoretical challenges, practical solutions exist for most NP-hard problems, even at large scales.

Written by urgent.news from Hacker News Best's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at gruhn.me →

More in Tech

sqlite-utils 4.2

Release: sqlite-utils 4.2 Lots of improvements in this one relating to the table.transform() feature , which adds support for complex alter table operations by creating a fresh table, copying across…

More from Thursday 13 August →