Documentation

CslibFrontier.Computability.Complexity.Classes.AverageCase.Distributional

Distributional problems and the classes AvgP, HeurP and DistNP #

A distributional problem L : Cslib.Complexity.DistProblem pairs a language of binary words with an ensemble (Cslib.Complexity.Ensemble) Bogdanov and Trevisan, §2.1. This file defines the deterministic average-case classes of Bogdanov and Trevisan, §2.2.

Conventions #

The source parameterizes a scheme by a failure bound δ > 0 and allows running time polynomial in n / δ. Here δ = 1/(k+1) with k written in unary, so "polynomial in n and k" is the same resource bound up to polynomial change. Schemes are total functions computed in polynomial time on all inputs, the standard convention after clocking. Correctness is required only on the support of the ensemble: an instance of probability zero carries no constraint, as in the source.

The source's AvgP is the errorless-heuristic class; Levin's original formulation through the moments E[t(x)^ε] of a running time is equivalent to it on instances of positive probability Bogdanov and Trevisan, Proposition 7, and is not formalized here.

Main definitions #

Main results #

References #

A distributional problem: a language of binary words together with an ensemble of distributions on instances Bogdanov and Trevisan, §2.1.

  • lang : Set (List Bool)

    The language to decide.

  • ens : Ensemble

    The distribution of instances of each length.

A is a polynomial-time errorless heuristic scheme for L Bogdanov and Trevisan, Definition 6, with failure bound δ = 1/(k+1) for the unary parameter k: on the support it never answers wrongly, and on every length it fails (outputs none) with probability at most 1/(k+1).

A is a polynomial-time heuristic scheme for L Bogdanov and Trevisan, Definition 11: on every length it answers wrongly with probability at most 1/(k+1) for the unary parameter k.

A is a polynomial-time errorless heuristic algorithm for L with failure probability δ Bogdanov and Trevisan, Definition 9.

A is a polynomial-time heuristic algorithm for L with error probability δ Bogdanov and Trevisan, Definition 10.

AvgP: distributional problems with a polynomial-time errorless heuristic scheme Bogdanov and Trevisan, Definition 8.

HeurP: distributional problems with a polynomial-time heuristic scheme Bogdanov and Trevisan, Definition 11.

Avg_δ P: distributional problems with a polynomial-time errorless heuristic algorithm of failure probability δ Bogdanov and Trevisan, Definition 9.

Heur_δ P: distributional problems with a polynomial-time heuristic algorithm of error probability δ Bogdanov and Trevisan, Definition 11.

DistNP: NP languages with polynomial-time computable ensembles Bogdanov and Trevisan, §2.1.

SampNP: NP languages with polynomial-time samplable ensembles Bogdanov and Trevisan, §2.1.

A language decidable in polynomial time is in AvgP under every ensemble.

Errorless heuristic schemes yield heuristic schemes: answer false on failure.

An errorless heuristic scheme run with confidence parameter q(n) on length n is an errorless heuristic algorithm with failure probability 1/(q(n)+1).

A heuristic scheme run with confidence parameter q(n) on length n is a heuristic algorithm with error probability 1/(q(n)+1).

Errorless heuristic algorithms yield heuristic algorithms with the same failure bound.