fbpx
Wikipedia

Yao's principle

In computational complexity theory, Yao's principle (also called Yao's minimax principle or Yao's lemma) is a way to prove lower bounds on the worst-case performance of randomized algorithms, by comparing them to deterministic (non-random) algorithms. It states that, for any randomized algorithm, there exists a probability distribution on inputs to the algorithm, so that the expected cost of the randomized algorithm on its worst-case input is at least as large as the cost of the best deterministic algorithm on a random input from this distribution. Thus, to establish a lower bound on the performance of randomized algorithms, it suffices to find an appropriate distribution of difficult inputs, and to prove that no deterministic algorithm can perform well against that distribution. This principle is named after Andrew Yao, who first proposed it.

Yao's principle may be interpreted in game theoretic terms, via a two-player zero-sum game in which one player, Alice, selects a deterministic algorithm, the other player, Bob, selects an input, and the payoff is the cost of the selected algorithm on the selected input. Any randomized algorithm R may be interpreted as a randomized choice among deterministic algorithms, and thus as a mixed strategy for Alice. Similarly, a non-random algorithm may be thought of as a pure strategy for Alice. By von Neumann's minimax theorem, Bob has a randomized strategy that performs at least as well against R as it does against the best pure strategy Alice might have chosen. The worst-case input against Alice's strategy has cost at least as large as Bob's randomly chosen input paired against Alice's strategy, which in turn has cost at least as large as Bob's randomly chosen input paired against any pure strategy.

Statement edit

The formulation below states the principle for Las Vegas randomized algorithms, i.e., distributions over deterministic algorithms that are correct on every input but have varying costs. It is straightforward to adapt the principle to Monte Carlo algorithms, i.e., distributions over deterministic algorithms that have bounded costs but can be incorrect on some inputs.

Consider a problem over the inputs  , and let   be the set of all possible deterministic algorithms that correctly solve the problem. For any algorithm   and input  , let   be the cost of algorithm   run on input  .

Let   be a probability distribution over the algorithms  , and let   denote a random algorithm chosen according to  . Let   be a probability distribution over the inputs  , and let   denote a random input chosen according to  . Then,

 

That is, the worst-case expected cost of the randomized algorithm is at least the expected cost of the best deterministic algorithm against input distribution  .

Proof edit

Let   and  . We have

 

As mentioned above, this theorem can also be seen as a very special case of the Minimax theorem.

See also edit

References edit

  • Borodin, Allan; El-Yaniv, Ran (2005), "8.3 Yao's principle: A technique for obtaining lower bounds", Online Computation and Competitive Analysis, Cambridge University Press, pp. 115–120, ISBN 9780521619462
  • Yao, Andrew (1977), "Probabilistic computations: Toward a unified measure of complexity", Proceedings of the 18th IEEE Symposium on Foundations of Computer Science (FOCS), pp. 222–227, doi:10.1109/SFCS.1977.24

External links edit

  • Fortnow, Lance (October 16, 2006), "Favorite theorems: Yao principle", Computational Complexity

principle, computational, complexity, theory, also, called, minimax, principle, lemma, prove, lower, bounds, worst, case, performance, randomized, algorithms, comparing, them, deterministic, random, algorithms, states, that, randomized, algorithm, there, exist. In computational complexity theory Yao s principle also called Yao s minimax principle or Yao s lemma is a way to prove lower bounds on the worst case performance of randomized algorithms by comparing them to deterministic non random algorithms It states that for any randomized algorithm there exists a probability distribution on inputs to the algorithm so that the expected cost of the randomized algorithm on its worst case input is at least as large as the cost of the best deterministic algorithm on a random input from this distribution Thus to establish a lower bound on the performance of randomized algorithms it suffices to find an appropriate distribution of difficult inputs and to prove that no deterministic algorithm can perform well against that distribution This principle is named after Andrew Yao who first proposed it Yao s principle may be interpreted in game theoretic terms via a two player zero sum game in which one player Alice selects a deterministic algorithm the other player Bob selects an input and the payoff is the cost of the selected algorithm on the selected input Any randomized algorithm R may be interpreted as a randomized choice among deterministic algorithms and thus as a mixed strategy for Alice Similarly a non random algorithm may be thought of as a pure strategy for Alice By von Neumann s minimax theorem Bob has a randomized strategy that performs at least as well against R as it does against the best pure strategy Alice might have chosen The worst case input against Alice s strategy has cost at least as large as Bob s randomly chosen input paired against Alice s strategy which in turn has cost at least as large as Bob s randomly chosen input paired against any pure strategy Contents 1 Statement 2 Proof 3 See also 4 References 5 External linksStatement editThe formulation below states the principle for Las Vegas randomized algorithms i e distributions over deterministic algorithms that are correct on every input but have varying costs It is straightforward to adapt the principle to Monte Carlo algorithms i e distributions over deterministic algorithms that have bounded costs but can be incorrect on some inputs Consider a problem over the inputs X displaystyle mathcal X nbsp and let A displaystyle mathcal A nbsp be the set of all possible deterministic algorithms that correctly solve the problem For any algorithm a A displaystyle a in mathcal A nbsp and input x X displaystyle x in mathcal X nbsp let c a x 0 displaystyle c a x geq 0 nbsp be the cost of algorithm a displaystyle a nbsp run on input x displaystyle x nbsp Let p displaystyle p nbsp be a probability distribution over the algorithms A displaystyle mathcal A nbsp and let A displaystyle A nbsp denote a random algorithm chosen according to p displaystyle p nbsp Let q displaystyle q nbsp be a probability distribution over the inputs X displaystyle mathcal X nbsp and let X displaystyle X nbsp denote a random input chosen according to q displaystyle q nbsp Then max x X E c A x min a A E c a X displaystyle underset x in mathcal X max mathbf E c A x geq underset a in mathcal A min mathbf E c a X nbsp That is the worst case expected cost of the randomized algorithm is at least the expected cost of the best deterministic algorithm against input distribution q displaystyle q nbsp Proof editLet C max x X E c A x displaystyle C underset x in mathcal X max mathbf E c A x nbsp and D min a A E c a X displaystyle D underset a in mathcal A min mathbf E c a X nbsp We haveC x q x C x q x E c A x x q x a p a c a x a p a x q x c a x a p a E c a X a p a D D displaystyle begin aligned C amp sum x q x C amp geq sum x q x mathbf E c A x amp sum x q x sum a p a c a x amp sum a p a sum x q x c a x amp sum a p a mathbf E c a X amp geq sum a p a D D end aligned nbsp As mentioned above this theorem can also be seen as a very special case of the Minimax theorem See also editRandomized algorithms as zero sum gamesReferences editBorodin Allan El Yaniv Ran 2005 8 3 Yao s principle A technique for obtaining lower bounds Online Computation and Competitive Analysis Cambridge University Press pp 115 120 ISBN 9780521619462 Yao Andrew 1977 Probabilistic computations Toward a unified measure of complexity Proceedings of the 18th IEEE Symposium on Foundations of Computer Science FOCS pp 222 227 doi 10 1109 SFCS 1977 24External links editFortnow Lance October 16 2006 Favorite theorems Yao principle Computational Complexity Retrieved from https en wikipedia org w index php title Yao 27s principle amp oldid 1117811362, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.