Nepedia
Back to Discover
Developing Reader
🔢

NP (complexity)

math Maturity 11-13 Next article →

Some puzzles are hard to solve. But the answer is easy to check. This is called NP.

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

Imagine a big pile of numbers. You want to find a few that add to zero. This is a hard task. But if someone gives you the numbers, you can check them fast. You just add them up.

Some problems are in a group called P. These are easy to solve. All P problems are also in NP.

The hardest NP problems are called NP-complete. If you solve one, you solve them all.

Complexity-classes-polynomial
Complexity-classes-polynomial

Scientists still wonder if P and NP are the same. It is a big mystery.

106 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:P np np-complete np-hard.svg
P np np-complete np-hard.svg
File:Complexity subsets pspace.svg
Complexity subsets pspace.svg
File:Complexity-classes-polynomial.svg
Complexity-classes-polynomial.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.