Documentation

Complexitylib.Classes.NP

NP, coNP, and NPSPACE #

This file defines NP (nondeterministic polynomial time), coNP, and NPSPACE (nondeterministic polynomial space) in terms of the base classes NTIME and NSPACE.

NP is the class of languages decidable by a nondeterministic TM in polynomial time: NP = ⋃_k NTIME(n^k).

Equations
Instances For

    coNP is the class of languages whose complements are in NP.

    Equations
    Instances For

      NPSPACE is the class of languages decidable by a nondeterministic TM using polynomial auxiliary space: NPSPACE = ⋃_k NSPACE(n^k).

      Equations
      Instances For