Advanced Topic 35 of 51 Theory & Discrete Math
Class P
Problems solvable in polynomial time.
How it works
P contains decision problems solvable by a deterministic TM in polynomial time, considered "efficiently solvable": sorting, shortest paths, primality (AKS).
Where it is used
Tractable problems.
Common pitfall
An O(n^100) algorithm is in P but impractical.
Where it fits in the course
Class P is topic 35 of 51 in Theory & Discrete Math, rated Advanced. It follows Complexity Classes. The next topic is Class NP.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Theory & Discrete Math quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Theory & Discrete Math quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Class P?
Problems solvable in polynomial time. It belongs to Theory & Discrete Math and is an advanced-level topic.
Where do people use Class P?
Tractable problems.
What is the most common mistake with Class P?
An O(n^100) algorithm is in P but impractical.
What should I learn before this topic?
Start with Complexity Classes, the topic just before it in Theory & Discrete Math.
How can I practice it?
Answer the mini quiz in the interactive lesson, then take the Theory & Discrete Math quiz.
Is Class P hard to learn?
It is an Advanced topic. Expect to read the explanation more than once and to connect it with earlier topics. Working through a small example by hand helps most.
How long does it take to learn Class P?
Most learners can read the explanation and finish the interactive lesson in under an hour. Fluency comes from applying the idea, so plan a few short practice sessions with the quiz.
Which topics are related to Class P?
Complexity Classes, Class NP, Rice's Theorem are closely connected. The full list is in the related topics section of this page.
What should I study after Class P?
Continue with Class NP, the next topic in Theory & Discrete Math.
Related topics
- Complexity Classes (Theory & Discrete Math)
- Class NP (Theory & Discrete Math)
- Rice's Theorem (Theory & Discrete Math)
- NP-Completeness (Theory & Discrete Math)