Nepedia
Back to Discover
Independent Reader
🔢

NP (complexity)

math Maturity 11-13 Next article →

Some math puzzles are very hard to solve. But they are easy to check. We call these types of problems NP.

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

Think about a pile of numbers. You want to find a few that add up to zero. Finding them might take a long time. But if a friend gives you a list, you can check it fast. You just add the numbers together. This fast check is called a verifier. It uses a proof to show the answer is "yes."

Some problems are in a group called P. These are problems that are easy to solve from the start. Every P problem is also in NP. This is because if you can solve it, you can also check it.

Complexity-classes-polynomial
Complexity-classes-polynomial

The hardest problems in NP are called NP-complete. They are like the masters of the group. If you find a fast way to solve one, you can solve all NP problems. Scientists still do not know if P and NP are the same. This is a huge mystery in computer science.

Complexity subsets pspace
Complexity subsets pspace
172 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.