Documentation

CslibFrontier.Computability.QueryComplexity.Randomized.Nisan

Lower bounds on randomized decision tree complexity #

Block sensitivity and approximate degree bound randomized decision tree complexity below, so deterministic and bounded-error randomized decision tree complexity are polynomially related [Nis91a].

Block sensitivity (QueryComplexity.one_sub_two_mul_mul_blockSensitivity_le_randomizedComplexity). Let μ compute f with error ε, and let x have b = bs(f) pairwise disjoint sensitive blocks B₁, …, B_b. A tree t that queries no variable of Bⱼ on input x reaches the same leaf on x and on x with Bⱼ flipped, while f differs there, so t errs on one of the two inputs. The blocks are disjoint, so t queries variables of at most depth t of them, and errs on x or on x with Bⱼ flipped for every other block. Averaging over t drawn from μ, b ≤ depth μ + ∑ⱼ (ε + ε), that is (1 - 2ε) bs(f) ≤ R_ε(f); for ε = 1/3, bs(f) ≤ 3 R(f). With D(f) ≤ bs(f)³ [BBC+01] this gives D(f) ≤ 27 R(f)³. The argument counts the queries a tree executes on the input x, so it bounds executed queries, not only structural depth. Majority has block sensitivity ⌊n/2⌋ + 1, so deciding it with error 1/3 executes at least (⌊n/2⌋ + 1) / 3 probes on some input and coin outcome, a linear lower bound Goldreich, Exercise 10.8.

Approximate degree (QueryComplexity.approxDegree_le_randomizedComplexity). The probability that a tree drawn from μ outputs 1 on x is an average of functions of degree at most the depth of μ (DecisionTree.comp_eval_mem_lowDegree), so has degree at most depth μ, and it is within ε of f when μ computes f with error ε. So adeg_ε(f) ≤ R_ε(f) [BdW02].

Main results #

References #

Nisan's bound on executed queries: if μ computes f with error ε, then on some input x some tree t that μ can draw executes at least (1 - 2ε) bs(f) queries, (1 - 2ε) bs(f) ≤ t.cost x. The bound is on the queries made on x, counting repeated queries, not on the structural depth of the trees.

Nisan's bound for one randomized decision tree: if μ computes f with error ε, then (1 - 2ε) bs(f) ≤ depth μ.

theorem Cslib.RandomizedDecisionTree.Computes.exists_div_two_add_one_le_three_mul_cost_majority {n : ℕ} {μ : RandomizedDecisionTree (Fin n) Bool} (hn : 1 ≤ n) (h : μ.Computes (1 / 3) (majority n)) :
∃ (x : Fin n → Bool), ∃ t ∈ μ.support, n / 2 + 1 ≤ 3 * t.cost x

Deciding majority requires linearly many probes (Goldreich, Exercise 10.8, draft r5.pdf p. 498): if μ computes majority n with error at most 1/3 on every input, for n ≥ 1, then on some input x some tree t that μ can draw executes at least (⌊n/2⌋ + 1) / 3 probes, ⌊n/2⌋ + 1 ≤ 3 · t.cost x. A randomized decision tree is the direct-access model with adaptive probes, the tree drawn by the coins; t.cost x counts the probes executed on x, repeated probes included, and each probe takes time. majority n accepts strings with at least ⌈n/2⌉ ones, the convention of the exercise's guideline; for strict majority (threshold n (n / 2 + 1)) the same bound follows in the same way from QueryComplexity.blockSensitivity_threshold.

The proof composes Nisan's bound on executed probes (Computes.exists_one_sub_two_mul_mul_blockSensitivity_le_cost) with bs(MAJ_n) ≥ s(MAJ_n) = ⌊n/2⌋ + 1. It does not follow the exercise's guideline, which bounds the statistical distance between the restrictions to the probed positions of uniform strings with ⌊n/2⌋ and ⌊n/2⌋ + 1 zeros.

A randomized decision tree computing f with error ε gives a real function of degree at most its depth within ε of f: the probability that the tree drawn outputs 1.

Nisan's bound: (1 - 2ε) bs(f) ≤ R_ε(f) for ε ≥ 0.

Nisan's bound for bounded error: bs(f) ≤ 3 R(f), for R = R_{1/3}.

Deciding majority with error 1/3 has randomized query complexity at least (⌊n/2⌋ + 1) / 3, for n ≥ 1: the complexity form of RandomizedDecisionTree.Computes.exists_div_two_add_one_le_three_mul_cost_majority.

Approximate degree is at most randomized complexity: adeg_ε(f) ≤ R_ε(f).

(1 - 2ε)³ D(f) ≤ R_ε(f)³ for ε ≥ 0, from D(f) ≤ bs(f)³ and Nisan's bound.

Deterministic and randomized decision tree complexity are polynomially related [Nis91a]: D(f) ≤ 27 R(f)³ for the bounded-error randomized complexity R = R_{1/3}, from bs(f) ≤ 3 R(f) and D(f) ≤ bs(f)³.