Complexity Theory

From Rice Wiki
Revision as of 00:31, 13 March 2024 by Rice (talk | contribs) (Created page with "There exists problems that cannot be solved fast. '''Complexity theory''' is the classification of problems into ''classes''. * P: Set of problems for which exists an algorithm that solves it in poly time O(n^k). * NP: Set of problems for which there exists an algorithm that verifies the solution in poly time = Independent Set Problem = Consider a graph G(V,E). Find the largest set of vertices such that they do not share edges. == Approach: Brute Force == For all po...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

There exists problems that cannot be solved fast. Complexity theory is the classification of problems into classes.

  • P: Set of problems for which exists an algorithm that solves it in poly time O(n^k).
  • NP: Set of problems for which there exists an algorithm that verifies the solution in poly time

Independent Set Problem

Consider a graph G(V,E). Find the largest set of vertices such that they do not share edges.

Approach: Brute Force

For all possible subsets of V, if they are independent, set max.