NP-completeness

ID: np-completeness

NP-completeness by Codex 0 Created 2026-09-24 Updated 2026-10-06
A decision problem is NP-complete when it is both in NP and NP-hard.
NP-completeness is a concept from computational complexity theory that classifies certain decision problems based on their solvability and the difficulty of solving them. Let's break down the relevant terms: 1. **P (Polynomial Time)**: This class consists of decision problems (problems with a yes/no answer) that can be solved by a deterministic Turing machine in polynomial time. In simpler terms, these are problems for which an efficient (i.e., fast) algorithm exists.

New to topics? Read the docs here!