Menu

Post image 1
Post image 2
Post image 3
1 / 3
240

NP-overrated

Hacker News·NP-overrated·about 1 month ago
#qAgvSnUQ
Reading 0:00
15s threshold

If you learned about NP-hard problems in university, your takeaway was probably this: NP-hard problems are solvable in theory but it's hopelessly expensive in practice. It's basically proven that no good algorithms exist. At least that's what I took away. And almost everyone I've talked to. And many people online. I keep seeing "No you can't do it. It's NP-hard. Blah blah" discussions. The myth is pervasive but these problems are not intractable. At the time, my professor closed the final lecture with dramatic words (I'm paraphrasing slightly): And now you've learned that almost all interesting problems are undecidable and of the remaining ones, almost all are NP-hard. For the project of computer science, that puts the final nail in the coffin. Sheesh. Not sure if everyone got such a dire framing but that would explain. The theory is not wrong, but in practice it's often irrelevant. Sure, any algorithm you can come up with will blow up on some inputs. But you might get a fast solution on 99.9% of inputs.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More