Types of Complexity Classes
Types of Complexity Classes
not yet found, the problems are divided into classes known
as Complexity Classes.
In complexity theory, a Complexity Class is a set of problems with
related complexity.
These classes help scientists to group problems based on how much
time and space they require to solve problems and verify the
solutions.
It is the branch of the theory of computation that deals with the
resources required to solve a problem.
The common resources are time and space, meaning how much time
the algorithm takes to solve a problem and the corresponding
memory usage.
The time complexity of an algorithm is used to describe the
number of steps required to solve a problem, but it can also be
used to describe how long it takes to verify the answer.
The space complexity of an algorithm describes how much
memory is required for the algorithm to operate.
1. P Class
2. NP Class
3. NP-hard
4. NP-complete
P Class
NP Class
Features:
The solutions of the NP class are hard to find since they are being
solved by a non-deterministic machine but the solutions are easy to
verify.
Problems of NP can be verified by a Turing machine in polynomial
time.
NP-hard class
Features:
1. Halting problem.
2. Qualified Boolean formulas.
3. No Hamiltonian cycle.
NP-complete class
Features:
1. Hamiltonian Cycle.
2. Satisfiability.
3. Vertex cover.
Complexity
Characteristic feature
Class