Randomness is a powerful tool in algorithm design. Often, it is much easier to prove that a "good" solution exists by showing that a random choice succeeds with high probability than it is to find that solution directly. However, in many practical and theoretical contexts—ranging from distributed systems to online optimization—we require deterministic guarantees. The method of conditional expectations (also known as the method of conditional probabilities) provides a systematic way to convert these probabilistic existence proofs into constructive, deterministic algorithms.
The Intuition of the Average
The core logic of this method rests on a simple observation: if the average value of a set of outcomes is $X$, then there must be at least one specific outcome that is at least as good as $X$.
In algorithmic terms, if a randomized process yields a "good" result on average, we can find a specific, deterministic path to that result by making choices one by one. At each step, we calculate the "expected goodness" of our final result given the choices we have already made. By always picking the next choice that maximizes this conditional expectation, we ensure that the final deterministic outcome is at least as good as the original randomized average.
Sequential Decision Making
To implement this, researchers often use a pessimistic estimator—a function that tracks the "risk" or "cost" of our current path. As Keren Censor-Hillel et al. demonstrate in Derandomizing local distributed algorithms under bandwidth restrictions, this involves making sequential choices such that the probability of success remains at least as high as its initial expected value.
This sequential narrowing is visible across several domains:
- Combinatorial Optimization: Jingyang Zhao 0001 et al. use this technique in The Linear Distance Traveling Tournament Problem Allows an EPTAS to replace random labeling with deterministic assignments that preserve approximation ratios.
- Online Decision Making: In Online Sampling and Decision Making with Low Entropy, MohammadTaghi Hajiaghayi et al. minimize a pessimistic estimator at each step to reduce the amount of entropy required for optimal selection.
- Complexity Theory: Peter Dixon et al. describe a similar reduction in Complete Problems for Multi-Pseudodeterministic Computations, where a $k$-pseudodeterministic algorithm is iteratively refined into a $(k-1)$-pseudodeterministic one, eventually converging on a single deterministic output.
From Existence to Construction
One of the most significant uses of this method is transforming non-constructive existence proofs into efficient algorithms. For example, Éva Tardos provides deterministic polynomial-time algorithms for the metric labeling problem by derandomizing randomized approximation schemes. Similarly, Shai Gutner uses the method in Balanced Families of Perfect Hash Functions and Their Applications to explicitly construct hash families that were previously only known to exist via probabilistic arguments.
In game theory, the authors of Polynomial-time computation of exact correlated equilibrium in compact games apply these techniques to compute rational correlated equilibria. By using conditional probabilities, they transform existence proofs into a "purified" separation oracle, making the computation of equilibria practical for large-scale games.
Preserving Performance Guarantees
A key advantage of this approach is that it often preserves the performance guarantees of the original randomized algorithm. In the context of online algorithms, where decisions must be made without knowing the future, Baruch Awerbuch et al. show in The online set cover problem that a potential function analysis can remove the need for random choices while maintaining a near-optimal competitive ratio.
This theme is echoed by Nikhil Bansal et al. in A 2-Competitive Algorithm For Online Convex Optimization With Switching Costs, where they convert randomized strategies into deterministic ones without compromising the algorithm's robustness. By replacing randomized components with deterministic approximations—a strategy Maximilian Probst et al. call a "compositional approach" in Derandomizing Directed Random Walks in Almost-Linear Time—researchers can build complex deterministic systems that inherit the efficiency and elegance of their randomized predecessors.
Key Foundational Work
Approximation algorithms for classification problems with pairwise relationships (2002) — contributed 2 concept elements to this direction.
The online set cover problem (2003) — contributed 1 concept elements to this direction.