Nepedia
Back to Discover
Independent Reader
🔢

NP-hardness

math Maturity 11-13 Next article →

Some puzzles are very tough to solve. In math, we call these NP-hard problems.

P np np-complete np-hard
P np np-complete np-hard

These problems are at least as hard as the hardest tasks in a group called NP. If you could solve one NP-hard problem quickly, you could solve all NP problems quickly. Most experts think this is not possible. They believe these problems take a very long time to finish.

There are many kinds of NP-hard problems. One is the traveling salesman problem. It asks for the best route through many stops. Another is the subset sum problem. It asks if a group of numbers can add up to zero.

Some NP-hard problems are even harder than NP. The halting problem is one example. It asks if a computer program will ever stop running. This problem is so hard it might never be solved.

We still use these hard problems every day. They help us with planning and scheduling. They also help us with cryptography, which is a way to hide secrets.

P np np-complete np-hard
P np np-complete np-hard
P np np-complete np-hard
P np np-complete np-hard

This diagram shows how these groups of problems fit together.

179 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:P np np-complete np-hard.svg
P np np-complete np-hard.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.