Zero-error randomized decision trees and expected query cost #
A randomized decision tree μ (RandomizedDecisionTree) draws a deterministic decision tree and
runs it. Its expected cost on an input x is the expected number of queries the drawn tree makes
on x (RandomizedDecisionTree.expectedCost). The zero-error (Las Vegas) randomized decision
tree complexity R₀(f) is the least c such that some randomized decision tree that is always
correct (μ.Computes 0 f) makes at most c queries in expectation on every input
(QueryComplexity.zeroErrorComplexity) [BdW02], [MR95].
This differs from QueryComplexity.randomizedComplexity 0 f, which charges the worst case over the
coins and equals the deterministic complexity D(f). Expected cost can be much smaller: for the
complete binary AND–OR tree on n = 4 ^ k leaves D = n while R₀ ≤ n ^ (log₄ 3)
(CslibFrontier.Computability.QueryComplexity.AndOrTree.Randomized). Always R₀(f) ≤ D(f)
(QueryComplexity.zeroErrorComplexity_le_complexity).
The uniform mixture of a finite family of trees (RandomizedDecisionTree.uniformMixture) draws a
member of the family uniformly; its expected cost is the average of the costs
(RandomizedDecisionTree.expectedCost_uniformMixture). This describes a randomized algorithm whose
coin tosses select a deterministic tree.
Main definitions #
Cslib.RandomizedDecisionTree.expectedCost: the expected number of queries on an input.Cslib.RandomizedDecisionTree.uniformMixture: the uniform mixture of a finite family of trees.Cslib.QueryComplexity.zeroErrorComplexity: the zero-error randomized complexityR₀(f).
Main results #
Cslib.RandomizedDecisionTree.expectedCost_uniformMixture: the expected cost of a uniform mixture is the average cost.Cslib.RandomizedDecisionTree.errorProb_uniformMixture: the error probability of a uniform mixture is the fraction of wrong members.Cslib.RandomizedDecisionTree.computes_uniformMixture: a mixture of correct trees is always correct.Cslib.QueryComplexity.zeroErrorComplexity_le: an always-correct randomized tree boundsR₀.Cslib.QueryComplexity.zeroErrorComplexity_le_complexity:R₀(f) ≤ D(f).Cslib.QueryComplexity.one_le_zeroErrorComplexity:1 ≤ R₀(f)for nonconstantf.
References #
The expected number of queries that the tree drawn from μ makes on the input x.
Express expected cost as the finite weighted sum over the sampled trees.
Sampling an index and running its associated tree averages the costs over the indices.
A deterministic tree makes its own number of queries.
The expected cost is at most the depth, the worst case over the inputs and the coins.
The uniform mixture of a finite family g of decision trees: draw c uniformly from C and
run g c.
Every tree that the uniform mixture can draw is a member of the family.
The uniform mixture of trees computing f computes f with error 0.
The expected cost of the uniform mixture of g is the average over c of the cost of
g c.
The error probability of the uniform mixture of g on x is the fraction of the members of
the family that answer wrongly on x.
The zero-error (Las Vegas) randomized decision tree complexity R₀(f): the least c such
that some randomized decision tree computing f with error 0 makes at most c queries in
expectation on every input. The finite coordinate space guarantees a correct deterministic tree,
so the feasible set is nonempty.
An always-correct randomized decision tree making at most c queries in expectation on every
input bounds R₀(f) by c.
A lower bound valid for every feasible randomized expected-cost bound also bounds R₀.
Randomness with zero error does not hurt: R₀(f) ≤ D(f).
A nonconstant function needs at least one query in expectation: 1 ≤ R₀(f). Every tree
computing f is a node, so it makes at least one query on every input.