Nepedia
Back to Discover
Independent Reader
🔢

P (complexity)

math Maturity 11-13 Next article →

Computers solve many types of puzzles. Some puzzles are easy to solve. We call these "efficient" problems. This means a computer can solve them in a reasonable amount of time.

Complexity-classes-polynomial
Complexity-classes-polynomial

In math, we call this group of problems P. A problem is in P if it can be solved in "polynomial time." This is a way to measure how long a task takes. As the task gets bigger, the time it takes does not grow too fast.

Complexity subsets pspace
Complexity subsets pspace

Many real tasks are in P. For example, finding if a number is prime is in P. This was shown in 2002. Other tasks like finding a "maximum matching" are also in P.

Randomised Complexity Classes 2
Randomised Complexity Classes 2

Scientists use P to group different kinds of problems. P is a part of a larger group called NP. We do not know if P and NP are the same. Most experts think they are different. We also know that P is smaller than a group called EXPTIME. Problems in EXPTIME take much longer to solve. P helps us understand what computers can do well.

175 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:Complexity subsets pspace.svg
Complexity subsets pspace.svg
File:Complexity-classes-polynomial.svg
Complexity-classes-polynomial.svg
File:Randomised Complexity Classes 2.svg
Randomised Complexity Classes 2.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.