<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tcs.nju.edu.cn/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=172.21.8.0%2F24</id>
	<title>TCS Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://tcs.nju.edu.cn/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=172.21.8.0%2F24"/>
	<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Special:Contributions/172.21.8.0/24"/>
	<updated>2026-09-15T15:56:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Existence,_the_probabilistic_method&amp;diff=3022</id>
		<title>Combinatorics (Fall 2010)/Existence, the probabilistic method</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Existence,_the_probabilistic_method&amp;diff=3022"/>
		<updated>2010-09-19T13:32:00Z</updated>

		<summary type="html">&lt;p&gt;172.21.8.48: /* Counting arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Counting arguments ==&lt;br /&gt;
;Circuit complexity&lt;br /&gt;
&lt;br /&gt;
This is a fundamental problem in in Computer Science.&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;boolean function&#039;&#039;&#039; is a function is the form &amp;lt;math&amp;gt;f:\{0,1\}^n\rightarrow \{0,1\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Formally, a boolean circuit is a directed acyclic graph. Nodes with indegree zero are input nodes, labeled &amp;lt;math&amp;gt;x_1, x_2, \ldots , x_n&amp;lt;/math&amp;gt;. A circuit has a unique node with outdegree zero, called the output node. Every other node is a gate. There are three types of gates: AND, OR (both with indegree two), and NOT (with indegree one).&lt;br /&gt;
&lt;br /&gt;
Computations in Turing machines can be simulated by circuits, and any boolean function in &#039;&#039;&#039;P&#039;&#039;&#039; can be computed by a circuit with polynomially many gates. Thus, if we can find a function in &#039;&#039;&#039;NP&#039;&#039;&#039; that cannot be computed by any circuit with polynomially many gates, then &#039;&#039;&#039;NP&#039;&#039;&#039;&amp;lt;math&amp;gt;\neq&amp;lt;/math&amp;gt;&#039;&#039;&#039;P&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The following theorem due to Shannon says that functions with exponentially large circuit complexity do exist.&lt;br /&gt;
&lt;br /&gt;
{{Theorem&lt;br /&gt;
|Theorem (Shannon 1949)|&lt;br /&gt;
:There is a boolean function &amp;lt;math&amp;gt;f:\{0,1\}^n\rightarrow \{0,1\}&amp;lt;/math&amp;gt; with circuit complexity greater than &amp;lt;math&amp;gt;\frac{2^n}{3n}&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
{{Proof| &lt;br /&gt;
We first count the number of boolean functions &amp;lt;math&amp;gt;f:\{0,1\}^n\rightarrow \{0,1\}&amp;lt;/math&amp;gt;. There are &amp;lt;math&amp;gt;2^{2^n}&amp;lt;/math&amp;gt; boolean functions &amp;lt;math&amp;gt;f:\{0,1\}^n\rightarrow \{0,1\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then we count the number of boolean circuit with fixed number of gates.&lt;br /&gt;
Fix an integer &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, we count the number of circuits with &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; gates. By the [http://en.wikipedia.org/wiki/De_Morgan&#039;s_laws De Morgan&#039;s laws], we can assume that all NOTs are pushed back to the inputs. Each gate has one of the two types (AND or OR), and has two inputs. Each of the inputs to a gate is either a constant 0 or 1, an input variable &amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt;, an inverted input variable &amp;lt;math&amp;gt;\neg x_i&amp;lt;/math&amp;gt;, or the output of another gate; thus, there are at most &amp;lt;math&amp;gt;2+2n+t-1&amp;lt;/math&amp;gt; possible gate inputs. It follows that the number of circuits with &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; gates is at most &amp;lt;math&amp;gt;2^t(t+2n+1)^{2t}&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;t=2^n/3n&amp;lt;/math&amp;gt;, then&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{2^t(t+2n+1)^{2t}}{2^{2^n}}=o(1)&amp;lt;1,&amp;lt;/math&amp;gt;      thus, &amp;lt;math&amp;gt;2^t(t+2n+1)^{2t} &amp;lt; 2^{2^n}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each boolean circuit computes one boolean function. Therefore, there must exist a boolean function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; which cannot be computed by any circuits with &amp;lt;math&amp;gt;2^n/3n&amp;lt;/math&amp;gt; gates.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Note that by Shannon&#039;s theorem, not only there exists a boolean function with exponentially large circuit complexity, but &#039;&#039;almost all&#039;&#039; boolean functions have exponentially large circuit complexity.&lt;br /&gt;
&lt;br /&gt;
=== Double counting ===&lt;br /&gt;
&lt;br /&gt;
{{Theorem|Handshaking Lemma|&lt;br /&gt;
:At a party, the number of guests who shake hands an odd number of times is even.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Theorem|Caylay&#039;s formula for trees|&lt;br /&gt;
: There are &amp;lt;math&amp;gt;n^{n-2}&amp;lt;/math&amp;gt; different trees on &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; distinct vertices.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== The Pigeonhole Principle ==&lt;br /&gt;
&lt;br /&gt;
== The Probabilistic Method ==&lt;br /&gt;
&lt;br /&gt;
Suppose we want prove the existence of mathematic objects with certain properties. One way to do so is to explicitly construct such an object. This kind of proofs can be interpreted as &#039;&#039;deterministic algorithms&#039;&#039; which find the object with desirable properties.&lt;br /&gt;
&lt;br /&gt;
The probabilistic method provides another way of proving the existence of objects: instead of explicitly constructing an object, we define a probability space of objects in which the probability is positive that a randomly selected object has the required property.&lt;br /&gt;
&lt;br /&gt;
The basic principle of the probabilistic method is very simple, and can be stated in intuitive ways:&lt;br /&gt;
*If an object chosen randomly from a universe satisfies a property with positive probability, then there must be an object in the universe that satisfies that property.&lt;br /&gt;
:For example, for a ball(the object) randomly chosen from a box(the universe) of balls, if the probability that the chosen ball is blue(the property) is &amp;gt;0, then there must be a blue ball in the box.&lt;br /&gt;
*Any random variable assumes at least one value that is no smaller than its expectation, and at least one value that is no greater than the expectation.&lt;br /&gt;
:For example, if we know the average height of the students in the class is &amp;lt;math&amp;gt;\ell&amp;lt;/math&amp;gt;, then we know there is a students whose height is at least &amp;lt;math&amp;gt;\ell&amp;lt;/math&amp;gt;, and there is a student whose height is at most &amp;lt;math&amp;gt;\ell&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Although the idea of  the probabilistic method is simple, it provides us a powerful tool for existential proof. In same cases, the proof itself is a &#039;&#039;randomized algorithm&#039;&#039;, and if we are lucky, the algorithm could be very efficient.&lt;br /&gt;
&lt;br /&gt;
=== Sampling ===&lt;br /&gt;
;Ramsey number&lt;br /&gt;
&lt;br /&gt;
Recall the Ramsey theorem which states that in a meeting of at least six people, there are either three people knowing each other or three people not knowing each other. In graph theoretical terms, this means that no matter how we color the edges of &amp;lt;math&amp;gt;K_6&amp;lt;/math&amp;gt; (the complete graph on six vertices), there must be a &#039;&#039;&#039;monochromatic&#039;&#039;&#039; &amp;lt;math&amp;gt;K_3&amp;lt;/math&amp;gt; (a triangle whose edges have the same color).&lt;br /&gt;
&lt;br /&gt;
Generally, the &#039;&#039;&#039;Ramsey number&#039;&#039;&#039; &amp;lt;math&amp;gt;R(k,\ell)&amp;lt;/math&amp;gt; is the smallest integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that in any two-coloring of the edges of a complete graph on &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; vertices &amp;lt;math&amp;gt;K_n&amp;lt;/math&amp;gt; by red and blue, either there is a red &amp;lt;math&amp;gt;K_k&amp;lt;/math&amp;gt; or there is a blue &amp;lt;math&amp;gt;K_\ell&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Ramsey showed in 1929 that &amp;lt;math&amp;gt;R(k,\ell)&amp;lt;/math&amp;gt; is finite for any &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\ell&amp;lt;/math&amp;gt;. It is extremely hard to compute the exact value of &amp;lt;math&amp;gt;R(k,\ell)&amp;lt;/math&amp;gt;. Here we give a lower bound of &amp;lt;math&amp;gt;R(k,k)&amp;lt;/math&amp;gt; by the probabilistic method.&lt;br /&gt;
&lt;br /&gt;
{{Theorem&lt;br /&gt;
|Theorem (Erdős 1947)|&lt;br /&gt;
:If &amp;lt;math&amp;gt;{n\choose k}\cdot 2^{1-{k\choose 2}}&amp;lt;1&amp;lt;/math&amp;gt; then it is possible to color the edges of &amp;lt;math&amp;gt;K_n&amp;lt;/math&amp;gt; with two colors so that there is no monochromatic &amp;lt;math&amp;gt;K_k&amp;lt;/math&amp;gt; subgraph.&lt;br /&gt;
}}&lt;br /&gt;
{{Proof| Consider a random two-coloring of edges of &amp;lt;math&amp;gt;K_n&amp;lt;/math&amp;gt; obtained as follows:&lt;br /&gt;
* For each edge of &amp;lt;math&amp;gt;K_n&amp;lt;/math&amp;gt;, independently flip a fair coin to decide the color of the edge.&lt;br /&gt;
&lt;br /&gt;
For any fixed set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; vertices, let &amp;lt;math&amp;gt;\mathcal{E}_S&amp;lt;/math&amp;gt; be the event that the &amp;lt;math&amp;gt;K_k&amp;lt;/math&amp;gt; subgraph induced by &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is monochromatic. There are &amp;lt;math&amp;gt;{k\choose 2}&amp;lt;/math&amp;gt; many edges in &amp;lt;math&amp;gt;K_k&amp;lt;/math&amp;gt;, therefore&lt;br /&gt;
:&amp;lt;math&amp;gt;\Pr[\mathcal{E}_S]=2\cdot 2^{-{k\choose 2}}=2^{1-{k\choose 2}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since there are &amp;lt;math&amp;gt;{n\choose k}&amp;lt;/math&amp;gt; possible choices of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;, by the union bound&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\Pr[\exists S, \mathcal{E}_S]\le {n\choose k}\cdot\Pr[\mathcal{E}_S]={n\choose k}\cdot 2^{1-{k\choose 2}}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Due to the assumption, &amp;lt;math&amp;gt;{n\choose k}\cdot 2^{1-{k\choose 2}}&amp;lt;1&amp;lt;/math&amp;gt;, thus there exists a two coloring that none of &amp;lt;math&amp;gt;\mathcal{E}_S&amp;lt;/math&amp;gt; occurs, which means  there is no monochromatic &amp;lt;math&amp;gt;K_k&amp;lt;/math&amp;gt; subgraph.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;k\ge 3&amp;lt;/math&amp;gt; and we take &amp;lt;math&amp;gt;n=\lfloor2^{k/2}\rfloor&amp;lt;/math&amp;gt;, then&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
{n\choose k}\cdot 2^{1-{k\choose 2}}&lt;br /&gt;
&amp;amp;&amp;lt;&lt;br /&gt;
\frac{n^k}{k!}\cdot\frac{2^{1+\frac{k}{2}}}{2^{k^2/2}}\\&lt;br /&gt;
&amp;amp;\le &lt;br /&gt;
\frac{2^{k^2/2}}{k!}\cdot\frac{2^{1+\frac{k}{2}}}{2^{k^2/2}}\\&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
\frac{2^{1+\frac{k}{2}}}{k!}\\&lt;br /&gt;
&amp;amp;&amp;lt;1.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
By the above theorem, there exists a two-coloring of &amp;lt;math&amp;gt;K_n&amp;lt;/math&amp;gt; that there is no monochromatic &amp;lt;math&amp;gt;K_k&amp;lt;/math&amp;gt;. Therefore, the Ramsey number &amp;lt;math&amp;gt;R(k,k)&amp;gt;\lfloor2^{k/2}\rfloor&amp;lt;/math&amp;gt; for all &amp;lt;math&amp;gt;k\ge 3&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note that for sufficiently large &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n= \lfloor 2^{k/2}\rfloor&amp;lt;/math&amp;gt;, then the probability that there exists a monochromatic &amp;lt;math&amp;gt;K_k&amp;lt;/math&amp;gt; is bounded by&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
{n\choose k}\cdot 2^{1-{k\choose 2}}&lt;br /&gt;
&amp;lt;&lt;br /&gt;
\frac{2^{1+\frac{k}{2}}}{k!}&lt;br /&gt;
\ll 1,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
which means that a random two-coloring of &amp;lt;math&amp;gt;K_n&amp;lt;/math&amp;gt; is very likely not to contain a monochromatic  &amp;lt;math&amp;gt;K_{2\log n}&amp;lt;/math&amp;gt;. This gives us a very simple randomized algorithm for finding a two-coloring of &amp;lt;math&amp;gt;K_n&amp;lt;/math&amp;gt; without monochromatic &amp;lt;math&amp;gt;K_{2\log n}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Linearity of expectation ===&lt;br /&gt;
&lt;br /&gt;
;Maximum cut&lt;br /&gt;
&lt;br /&gt;
Given an undirected graph &amp;lt;math&amp;gt;G(V,E)&amp;lt;/math&amp;gt;, a set &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; of edges of &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is called a &#039;&#039;&#039;cut&#039;&#039;&#039; if &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is disconnected after removing the edges in &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;. We can represent a cut by &amp;lt;math&amp;gt;c(S,T)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;(S,T)&amp;lt;/math&amp;gt; is a bipartition of the vertex set &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;c(S,T)=\{uv\in E\mid u\in S,v\in T\}&amp;lt;/math&amp;gt; is the set of edges crossing between &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We have seen how to compute min-cut: either by deterministic max-flow algorithm, or by Karger&#039;s randomized algorithm. On the other hand, max-cut is hard to compute, because it is &#039;&#039;&#039;NP-complete&#039;&#039;&#039;. Actually, the weighted version of max-cut is among the [http://en.wikipedia.org/wiki/Karp&#039;s_21_NP-complete_problems Karp&#039;s 21 NP-complete problems].&lt;br /&gt;
&lt;br /&gt;
We now show by the probabilistic method that a max-cut always has at least half the edges.&lt;br /&gt;
&lt;br /&gt;
{{Theorem&lt;br /&gt;
|Theorem|&lt;br /&gt;
:Given an undirected graph &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; vertices and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; edges, there is a cut of size at least &amp;lt;math&amp;gt;\frac{m}{2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
{{Proof| Enumerate the vertices in an arbitrary order. Partition the vertex set &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; into two disjoint sets &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt; as follows.&lt;br /&gt;
:For each vertex &amp;lt;math&amp;gt;v\in V&amp;lt;/math&amp;gt;,&lt;br /&gt;
:* independently choose one of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt; with equal probability, and let &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; join the chosen set.&lt;br /&gt;
&lt;br /&gt;
For each vertex &amp;lt;math&amp;gt;v\in V&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;X_v\in\{S,T\}&amp;lt;/math&amp;gt; be the random variable which represents the set that &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; joins. For each edge &amp;lt;math&amp;gt;uv\in E&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;Y_{uv}&amp;lt;/math&amp;gt; be the 0-1 random variable which indicates whether &amp;lt;math&amp;gt;uv&amp;lt;/math&amp;gt; crosses between &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;. Clearly,&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\Pr[Y_{uv}=1]=\Pr[X_u\neq X_v]=\frac{1}{2}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The size of &amp;lt;math&amp;gt;c(S,T)&amp;lt;/math&amp;gt; is given by &amp;lt;math&amp;gt;Y=\sum_{uv\in E}Y_{uv}&amp;lt;/math&amp;gt;. By the linearity of expectation,&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{E}[Y]=\sum_{uv\in E}\mathbf{E}[Y_{uv}]=\sum_{uv\in E}\Pr[Y_{uv}=1]=\frac{m}{2}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Therefore, there exist a bipartition &amp;lt;math&amp;gt;(S,T)&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;|c(S,T)|\ge\frac{m}{2}&amp;lt;/math&amp;gt;, i.e. there exists a cut of &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; which contains at least &amp;lt;math&amp;gt;\frac{m}{2}&amp;lt;/math&amp;gt; edges.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;Maximum satisfiability&lt;br /&gt;
&lt;br /&gt;
Suppose that we have a number of boolean variables &amp;lt;math&amp;gt;x_1,x_2,\ldots,\in\{\mathrm{true},\mathrm{false}\}&amp;lt;/math&amp;gt;. A &#039;&#039;&#039;literal&#039;&#039;&#039; is either a variable &amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; itself or its negation &amp;lt;math&amp;gt;\neg x_i&amp;lt;/math&amp;gt;. A logic expression is a &#039;&#039;&#039;conjunctive normal form (CNF)&#039;&#039;&#039; if it is written as the conjunction(AND) of a set of &#039;&#039;&#039;clauses&#039;&#039;&#039;, where each clause is a disjunction(OR) of literals. For example:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
(x_1\vee \neg x_2 \vee \neg x_3)\wedge (\neg x_1\vee \neg x_3)\wedge (x_1\vee x_2\vee x_4)\wedge (x_4\vee \neg x_3)\wedge (x_4\vee \neg x_1).&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The satisfiability (SAT) problem ask whether the CNF is satisfiable, i.e. there exists an assignment of variables to the values of true and false so that all clauses are true. The maximum satisfiability (MAXSAT) is the optimization version of SAT, which ask for an assignment that the number of satisfied clauses is maximized.&lt;br /&gt;
&lt;br /&gt;
SAT is the first problem known to be &#039;&#039;&#039;NP-complete&#039;&#039;&#039; (the Cook-Levin theorem). MAXSAT is also &#039;&#039;&#039;NP-complete&#039;&#039;&#039;. We then see that there always exists a roughly good truth assignment which satisfies half the clauses.&lt;br /&gt;
&lt;br /&gt;
{{Theorem&lt;br /&gt;
|Theorem|&lt;br /&gt;
:For any set of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; clauses, there is a truth assignment that satisfies at least &amp;lt;math&amp;gt;\frac{m}{2}&amp;lt;/math&amp;gt; clauses.&lt;br /&gt;
}}&lt;br /&gt;
{{Proof| For each variable, independently assign a random value in &amp;lt;math&amp;gt;\{\mathrm{true},\mathrm{false}\}&amp;lt;/math&amp;gt; with equal probability. For the &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;th clause, let &amp;lt;math&amp;gt;X_i&amp;lt;/math&amp;gt; be the random variable which indicates whether the &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;th clause is satisfied. Suppose that there are &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; literals in the clause. The probability that the clause is satisfied is &lt;br /&gt;
:&amp;lt;math&amp;gt;\Pr[X_k=1]\ge(1-2^{-k})\ge\frac{1}{2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;X=\sum_{i=1}^m X_i&amp;lt;/math&amp;gt; be the number of satisfied clauses. By the linearity of expectation,&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{E}[X]=\sum_{i=1}^{m}\mathbf{E}[X_i]\ge \frac{m}{2}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Therefore, there exists an assignment such that at least &amp;lt;math&amp;gt;\frac{m}{2}&amp;lt;/math&amp;gt; clauses are satisfied.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Alterations ===&lt;br /&gt;
;Independent sets&lt;br /&gt;
An independent set of a graph is a set of vertices with no edges between them. The following theorem gives a lower bound on the size of the largest independent set.&lt;br /&gt;
{{Theorem&lt;br /&gt;
|Theorem|&lt;br /&gt;
:Let &amp;lt;math&amp;gt;G(V,E)&amp;lt;/math&amp;gt; be a graph on &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; vertices with &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; edges. Then &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; has an independent set with at least &amp;lt;math&amp;gt;\frac{n^2}{4m}&amp;lt;/math&amp;gt; vertices.&lt;br /&gt;
}}&lt;br /&gt;
{{Proof| Let &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; be a set of vertices constructed as follows:&lt;br /&gt;
:For each vertex &amp;lt;math&amp;gt;v\in V&amp;lt;/math&amp;gt;:&lt;br /&gt;
:* &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; is included in &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; independently with probability &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; to be determined.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;X=|S|&amp;lt;/math&amp;gt;. It is obvious that &amp;lt;math&amp;gt;\mathbf{E}[X]=np&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For each edge &amp;lt;math&amp;gt;e\in E&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;Y_{e}&amp;lt;/math&amp;gt; be the random variable which indicates whether both endpoints of &amp;lt;math&amp;gt;&amp;lt;/math&amp;gt; are in &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;.&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{E}[Y_{uv}]=\Pr[u\in S\wedge v\in S]=p^2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; be the number of edges in the subgraph of &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; induced by &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;. It holds that &amp;lt;math&amp;gt;Y=\sum_{e\in E}Y_e&amp;lt;/math&amp;gt;. By linearity of expectation,&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbf{E}[Y]=\sum_{e\in E}\mathbf{E}[Y_e]=mp^2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note that although &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is not necessary an independent set, it can be modified to one if for each edge &amp;lt;math&amp;gt;e&amp;lt;/math&amp;gt; of the induced subgraph &amp;lt;math&amp;gt;G(S)&amp;lt;/math&amp;gt;, we delete one of the endpoint of &amp;lt;math&amp;gt;e&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;S^*&amp;lt;/math&amp;gt; be the resulting set. It is obvious that &amp;lt;math&amp;gt;S^*&amp;lt;/math&amp;gt; is an independent set since there is no edge left in the induced subgraph &amp;lt;math&amp;gt;G(S^*)&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Since there are &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; edges in &amp;lt;math&amp;gt;G(S)&amp;lt;/math&amp;gt;, there are at most &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; vertices in &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; are deleted to make it become &amp;lt;math&amp;gt;S^*&amp;lt;/math&amp;gt;. Therefore, &amp;lt;math&amp;gt;|S^*|\ge X-Y&amp;lt;/math&amp;gt;. By linearity of expectation,&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{E}[|S^*|]\ge\mathbf{E}[X-Y]=\mathbf{E}[X]-\mathbf{E}[Y]=np-mp^2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The expectation is maximized when &amp;lt;math&amp;gt;p=\frac{n}{2m}&amp;lt;/math&amp;gt;, thus&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{E}[|S^*|]\ge n\cdot\frac{n}{2m}-m\left(\frac{n}{2m}\right)^2=\frac{n^2}{4m}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
There exists an independent set which contains at least &amp;lt;math&amp;gt;\frac{n^2}{4m}&amp;lt;/math&amp;gt; vertices.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The proof actually propose a randomized algorithm for constructing large independent set:&lt;br /&gt;
&lt;br /&gt;
{{Theorem&lt;br /&gt;
|Algorithm|&lt;br /&gt;
Given a graph on &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; vertices with &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; edges, let &amp;lt;math&amp;gt;d=\frac{2m}{n}&amp;lt;/math&amp;gt; be the average degree.&lt;br /&gt;
#For each vertex &amp;lt;math&amp;gt;v\in V&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; is included in &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; independently with probability &amp;lt;math&amp;gt;\frac{1}{d}&amp;lt;/math&amp;gt;.&lt;br /&gt;
#For each remaining edge in the induced subgraph &amp;lt;math&amp;gt;G(S)&amp;lt;/math&amp;gt;, remove one of the endpoints from &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;S^*&amp;lt;/math&amp;gt; be the resulting set. We have shown that &amp;lt;math&amp;gt;S^*&amp;lt;/math&amp;gt; is an independent set and &amp;lt;math&amp;gt;\mathbf{E}[|S^*|]\ge\frac{n^2}{4m}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>172.21.8.48</name></author>
	</entry>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Randomized_Algorithms_(Spring_2010)/Tail_inequalities&amp;diff=1331</id>
		<title>Randomized Algorithms (Spring 2010)/Tail inequalities</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Randomized_Algorithms_(Spring_2010)/Tail_inequalities&amp;diff=1331"/>
		<updated>2010-03-10T06:17:06Z</updated>

		<summary type="html">&lt;p&gt;172.21.8.246: /* The Chernoff bound */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Select the Median ==&lt;br /&gt;
&lt;br /&gt;
The [http://en.wikipedia.org/wiki/Selection_algorithm selection problem] is the problem of finding the &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;th smallest element in a set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;. A typical case of selection problem is finding the &#039;&#039;&#039;median&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Definition&#039;&#039;&#039;&lt;br /&gt;
:The median of a set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is the &amp;lt;math&amp;gt;(\lceil n/2\rceil)&amp;lt;/math&amp;gt;th element in the sorted order of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The median can be found in &amp;lt;math&amp;gt;O(n\log n)&amp;lt;/math&amp;gt; time by sorting. There is a linear-time deterministic algorithm, [http://en.wikipedia.org/wiki/Selection_algorithm#Linear_general_selection_algorithm_-_.22Median_of_Medians_algorithm.22 &amp;quot;median of medians&amp;quot; algorithm], which is quite sophisticated. Here we introduce a much simpler randomized algorithm which also runs in linear time.&lt;br /&gt;
&lt;br /&gt;
=== Randomized median algorithm ===&lt;br /&gt;
The idea of this algorithm is random sampling. For a set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;m\in S&amp;lt;/math&amp;gt; denote the median. We observe that if we can find two elements &amp;lt;math&amp;gt;d,u\in S&amp;lt;/math&amp;gt; satisfying the following properties:&lt;br /&gt;
# The median is between &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; in the sorted order, i.e. &amp;lt;math&amp;gt;d\le m\le u&amp;lt;/math&amp;gt;;&lt;br /&gt;
# The total number of elements between &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is small, specially for &amp;lt;math&amp;gt;C=\{x\in S\mid d\le x\le u\}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;|C|=o(n/\log n)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Provided &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; with these two properties, within linear time, we can compute the ranks of &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;, construct &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;, and sort &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;. Therefore, the median &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; can be picked from &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; in linear time.&lt;br /&gt;
&lt;br /&gt;
So how can we select such elements &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;? Certainly sorting &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; would give us the elements, but isn&#039;t that exactly what we want to avoid in the first place?&lt;br /&gt;
&lt;br /&gt;
Observe that &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; are only asked to roughly satisfy some constraints. This hints us maybe we can construct a &#039;&#039;sketch&#039;&#039; of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; which is small enough to sort cheaply and roughly represents &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;, and then pick &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; from this sketch. We construct the sketch by randomly sampling a relatively small number of elements from &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;. Then the strategy of algorithm is outlined by:&lt;br /&gt;
* Sample a set &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; of elements from &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;. &lt;br /&gt;
* Sort &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; and choose &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; somewhere around the median of &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;.&lt;br /&gt;
* If &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; have the desirable properties, we can compute the median in linear time, or otherwise the algorithm fails.&lt;br /&gt;
&lt;br /&gt;
The parameters to be fixed are: the size of &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; (small enough to sort in linear time and large enough to contain sufficient information of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;); and the order of &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; (not too close to have &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; between them, and not too far away to have &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; sortable in linear time).&lt;br /&gt;
&lt;br /&gt;
We choose the size of &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; as &amp;lt;math&amp;gt;n^{3/4}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; are within &amp;lt;math&amp;gt;\sqrt{n}&amp;lt;/math&amp;gt; range around the median of &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Randomized Median Algorithm:&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Input:&#039;&#039;&#039; a set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; elements over totally ordered domain.&lt;br /&gt;
# Pick a multi-set &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\left\lceil n^{3/4}\right\rceil&amp;lt;/math&amp;gt; elements in &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;, chosen independently and uniformly at random with replacement, and sort &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;.&lt;br /&gt;
# Let &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be the &amp;lt;math&amp;gt;\left\lfloor\frac{1}{2}n^{3/4}-\sqrt{n}\right\rfloor&amp;lt;/math&amp;gt;-th smallest element in &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;, and let &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; be the &amp;lt;math&amp;gt;\left\lceil\frac{1}{2}n^{3/4}+\sqrt{n}\right\rceil&amp;lt;/math&amp;gt;-th smallest element in &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;.&lt;br /&gt;
# Construct &amp;lt;math&amp;gt;C=\{x\in S\mid d\le x\le u\}&amp;lt;/math&amp;gt; and compute the ranks &amp;lt;math&amp;gt;r_d=|\{x\in S\mid x&amp;lt;d\}|&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;r_u=|\{x\in S\mid x&amp;lt;u\}|&amp;lt;/math&amp;gt;.&lt;br /&gt;
# If &amp;lt;math&amp;gt;r_d&amp;gt;\frac{n}{2}&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;r_u&amp;lt;\frac{n}{2}&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;|C|&amp;gt;4n^{3/4}&amp;lt;/math&amp;gt; then return FAIL.&lt;br /&gt;
# Sort &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and return the &amp;lt;math&amp;gt;\left(\left\lfloor\frac{n}{2}\right\rfloor-r_d+1\right)&amp;lt;/math&amp;gt;th element in the sorted order of &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Sample with replacement&amp;quot; (有放回采样) means that after sampling an element, we put the element back to the set. In this way, each sampled element is independently and identically distributed (&#039;&#039;i.i.d&#039;&#039;) (独立同分布). In the above algorithm, this is for our convenience of analysis.&lt;br /&gt;
&lt;br /&gt;
=== Analysis ===&lt;br /&gt;
The algorithm always terminates in linear time because each line of the algorithm costs at most linear time. The last three line guarantees that the algorithm returns the correct median if it does not fail.&lt;br /&gt;
&lt;br /&gt;
We then only need to bound the probability that the algorithm returns a FAIL. Let &amp;lt;math&amp;gt;m\in S&amp;lt;/math&amp;gt; be the median of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;. By Line 4, we know that the algorithm returns a FAIL if and only if at least one of the following events occurs:&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathcal{E}_1: Y=|\{x\in R\mid x\le m\}|&amp;lt;\frac{1}{2}n^{3/4}-\sqrt{n}&amp;lt;/math&amp;gt;;&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathcal{E}_2: Z=|\{x\in R\mid x\ge m\}|&amp;lt;\frac{1}{2}n^{3/4}-\sqrt{n}&amp;lt;/math&amp;gt;;&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathcal{E}_3: |C|&amp;gt;4n^{3/4}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathcal{E}_3&amp;lt;/math&amp;gt; directly follows the third condition in Line 4. &amp;lt;math&amp;gt;\mathcal{E}_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathcal{E}_2&amp;lt;/math&amp;gt; are a bit tricky. The first condition in Line 4 is that &amp;lt;math&amp;gt;r_d&amp;gt;\frac{n}{2}&amp;lt;/math&amp;gt;, which looks not exactly the same as &amp;lt;math&amp;gt;\mathcal{E}_1&amp;lt;/math&amp;gt;, but both &amp;lt;math&amp;gt;\mathcal{E}_1&amp;lt;/math&amp;gt; and that &amp;lt;math&amp;gt;r_d&amp;gt;\frac{n}{2}&amp;lt;/math&amp;gt; are equivalent to the same event: the &amp;lt;math&amp;gt;\left\lfloor\frac{1}{2}n^{3/4}-\sqrt{n}\right\rfloor&amp;lt;/math&amp;gt;-th smallest element in &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; is greater than &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;, thus they are actually equivalent. Similarly, &amp;lt;math&amp;gt;\mathcal{E}_2&amp;lt;/math&amp;gt; is equivalent to the second condition of Line 4.&lt;br /&gt;
&lt;br /&gt;
We now bound the probabilities of these events one by one.&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Lemma 1&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;math&amp;gt;\Pr[\mathcal{E}_1]\le \frac{1}{4}n^{-1/4}&amp;lt;/math&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;Proof:&#039;&#039;&#039; Let &amp;lt;math&amp;gt;X_i&amp;lt;/math&amp;gt; be the &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;th sampled element in Line 1 of the algorithm. Let &amp;lt;math&amp;gt;Y_i&amp;lt;/math&amp;gt; be a indicator random variable such that &lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
Y_i=&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1 &amp;amp; \mbox{if }X_i\le m,\\&lt;br /&gt;
0 &amp;amp; \mbox{otherwise.}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
It is obvious that &amp;lt;math&amp;gt;Y=\sum_{i=1}^{n^{3/4}}Y_i&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; is as defined in &amp;lt;math&amp;gt;\mathcal{E}_1&amp;lt;/math&amp;gt;. For every &amp;lt;math&amp;gt;X_i&amp;lt;/math&amp;gt;, there are &amp;lt;math&amp;gt;\left\lceil\frac{n}{2}\right\rceil&amp;lt;/math&amp;gt; elements in &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; that are less than or equal to the median. The probability that &amp;lt;math&amp;gt;Y_i=1&amp;lt;/math&amp;gt; is&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
p=\Pr[Y_i=1]=\Pr[X_i\le m]=\frac{1}{n}\left\lceil\frac{n}{2}\right\rceil,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
which is within the range of &amp;lt;math&amp;gt;\left[\frac{1}{2},\frac{1}{2}+\frac{1}{2n}\right]&amp;lt;/math&amp;gt;. Thus&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{E}[Y]=n^{3/4}p\ge \frac{1}{2}n^{3/4}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The event &amp;lt;math&amp;gt;\mathcal{E}_1&amp;lt;/math&amp;gt; is defined as that &amp;lt;math&amp;gt;Y&amp;lt;\frac{1}{2}n^{3/4}-\sqrt{n}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note that &amp;lt;math&amp;gt;Y_i&amp;lt;/math&amp;gt;&#039;s are Bernoulli trials, and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; is the sum of &amp;lt;math&amp;gt;n^{3/4}&amp;lt;/math&amp;gt; Bernoulli trials, which follows binomial distribution with parameters &amp;lt;math&amp;gt;n^{3/4}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;. Thus, the variance is &lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbf{Var}[Y]=n^{3/4}p(1-p)\le \frac{1}{4}n^{3/4}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Applying Chebyshev&#039;s inequality,&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\Pr[\mathcal{E}_1]&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
\Pr\left[Y&amp;lt;\frac{1}{2}n^{3/4}-\sqrt{n}\right]\\&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
\Pr\left[|Y-\mathbf{E}[Y]|&amp;gt;\sqrt{n}\right]\\&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
\frac{\mathbf{Var}[Y]}{n}\\&lt;br /&gt;
&amp;amp;\le\frac{1}{4}n^{-1/4}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\square&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By a similar analysis, we can obtain the following bound for the event &amp;lt;math&amp;gt;\mathcal{E}_2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Lemma 2&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;math&amp;gt;\Pr[\mathcal{E}_2]\le \frac{1}{4}n^{-1/4}&amp;lt;/math&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We now bound the probability of the event &amp;lt;math&amp;gt;\mathcal{E}_3&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Lemma 3&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;math&amp;gt;\Pr[\mathcal{E}_3]\le \frac{1}{2}n^{-1/4}&amp;lt;/math&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;Proof:&#039;&#039;&#039; The event &amp;lt;math&amp;gt;\mathcal{E}_3&amp;lt;/math&amp;gt; is defined as that &amp;lt;math&amp;gt;|C|&amp;gt;4 n^{3/4}&amp;lt;/math&amp;gt;, which by the Pigeonhole Principle, implies that at leas one of the following must be true:&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathcal{E}_3&#039;&amp;lt;/math&amp;gt;: at least &amp;lt;math&amp;gt;2n^{3/4}&amp;lt;/math&amp;gt; elements of &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; is greater than &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;;&lt;br /&gt;
* &amp;lt;math&amp;gt;\mathcal{E}_3&#039;&#039;&amp;lt;/math&amp;gt;: at least &amp;lt;math&amp;gt;2n^{3/4}&amp;lt;/math&amp;gt; elements of &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; is smaller than &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We bound the probability that &amp;lt;math&amp;gt;\mathcal{E}_3&#039;&amp;lt;/math&amp;gt; occurs; the second will have the same bound by symmetry.&lt;br /&gt;
&lt;br /&gt;
Recall that &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; is the region in &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; between &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt;. If there are at least &amp;lt;math&amp;gt;2n^{3/4}&amp;lt;/math&amp;gt; elements of &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; greater than the median &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;, then the rank of &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; in the sorted order of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; must be at least &amp;lt;math&amp;gt;\frac{1}{2}n+2n^{3/4}&amp;lt;/math&amp;gt; and thus &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; has at least &amp;lt;math&amp;gt;\frac{1}{2}n^{3/4}-\sqrt{n}&amp;lt;/math&amp;gt; samples among the &amp;lt;math&amp;gt;\frac{1}{2}n-2n^{3/4}&amp;lt;/math&amp;gt; largest elements in &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;X_i\in\{0,1\}&amp;lt;/math&amp;gt; indicate whether the &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;th sample is among the &amp;lt;math&amp;gt;\frac{1}{2}n-2n^{3/4}&amp;lt;/math&amp;gt; largest elements in &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;X=\sum_{i=1}^{n^{3/4}}X_i&amp;lt;/math&amp;gt; be the number of samples in &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; among the &amp;lt;math&amp;gt;\frac{1}{2}n-2n^{3/4}&amp;lt;/math&amp;gt; largest elements in &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;.&lt;br /&gt;
It holds that&lt;br /&gt;
:&amp;lt;math&amp;gt;p=\Pr[X_i=1]=\frac{\frac{1}{2}n-2n^{3/4}}{n}=\frac{1}{2}-2n^{-1/4}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; is a binomial random variable with &lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{E}[X]=n^{3/4}p=\frac{1}{2}n^{3/4}-2\sqrt{n},&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
and &lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{Var}[X]=n^{3/4}p(1-p)=\frac{1}{4}n^{3/4}-4n^{1/4}&amp;lt;\frac{1}{4}n^{3/4}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Applying Chebyshev&#039;s inequality,&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\Pr[\mathcal{E}_3&#039;]&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
\Pr\left[X\ge\frac{1}{2}n^{3/4}-\sqrt{n}\right]\\&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
\Pr\left[|X-\mathbf{E}[X]|\ge\sqrt{n}\right]\\&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
\frac{\mathbf{Var}[X]}{n}\\&lt;br /&gt;
&amp;amp;\le\frac{1}{4}n^{-1/4}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Symmetrically, we have that &amp;lt;math&amp;gt;\Pr[\mathcal{E}_3&#039;&#039;]\le\frac{1}{4}n^{-1/4}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Applying the union bound&lt;br /&gt;
:&amp;lt;math&amp;gt;\Pr[\mathcal{E}_3]\le \Pr[\mathcal{E}_3&#039;]+\Pr[\mathcal{E}_3&#039;&#039;]\le\frac{1}{2}n^{-1/4}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\square&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Combining the three bounds. Applying the union bound to them, the probability that the algorithm returns a FAIL is at most &lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\Pr[\mathcal{E}_1]+\Pr[\mathcal{E}_2]+\Pr[\mathcal{E}_3]\le n^{-1/4}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the algorithm always terminates in linear time and returns the correct median with high probability.&lt;br /&gt;
&lt;br /&gt;
== Chernoff Bound ==&lt;br /&gt;
Suppose that we have a fair coin. If we toss it once, then the outcome is completely unpredictable. But if we toss it, say for 1000 times, then the number of HEADs is very likely to be around 500. This striking phenomenon, illustrated in the right figure, is called the &#039;&#039;&#039;concentration&#039;&#039;&#039;. The Chernoff bound captures the concentration of independent trials.&lt;br /&gt;
&lt;br /&gt;
[[File:Coinflip.png|border|450px|right]]&lt;br /&gt;
&lt;br /&gt;
The Chernoff bound is also a tail bound for the sum of independent random variables which may give us &#039;&#039;exponentially&#039;&#039; sharp bounds.&lt;br /&gt;
&lt;br /&gt;
Before proving the Chernoff bound, we should talk about the moment generating functions.&lt;br /&gt;
&lt;br /&gt;
=== Moment generating functions ===&lt;br /&gt;
The more we know about the moments of a random variable &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, the more information we would have about &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;. There is a so-called &#039;&#039;&#039;moment generating function&#039;&#039;&#039;, which &amp;quot;packs&amp;quot; all the information about the moments of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; into one function.&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Definition:&#039;&#039;&#039;&lt;br /&gt;
:The moment generating function of a random variable &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; is defined as &amp;lt;math&amp;gt;\mathbf{E}\left[\mathrm{e}^{\lambda X}\right]&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt; is the parameter of the function.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
By Taylor&#039;s expansion and the linearity of expectations,&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\mathbf{E}\left[\mathrm{e}^{\lambda X}\right]&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
\mathbf{E}\left[\sum_{k=0}^\infty\frac{\lambda^k}{k!}X^k\right]\\&lt;br /&gt;
&amp;amp;=\sum_{k=0}^\infty\frac{\lambda^k}{k!}\mathbf{E}\left[X^k\right]&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The moment generating function &amp;lt;math&amp;gt;\mathbf{E}\left[\mathrm{e}^{\lambda X}\right]&amp;lt;/math&amp;gt; is a function of &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The Chernoff bound ===&lt;br /&gt;
The Chernoff bounds are tail inequalities with exponential decays for the sum of independent trials.&lt;br /&gt;
The bounds are obtained by applying Markov&#039;s inequality to the moment generating function of the sum of independent trials, with some  appropriate choice of the parameter &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt;.&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Chernoff bound (the upper tail):&#039;&#039;&#039;&lt;br /&gt;
:Let  &amp;lt;math&amp;gt;X=\sum_{i=1}^n X_i&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;X_1, X_2, \ldots, X_n&amp;lt;/math&amp;gt; are independent Poisson trials. Let &amp;lt;math&amp;gt;\mu=\mathbf{E}[X]&amp;lt;/math&amp;gt;. &lt;br /&gt;
:Then for any &amp;lt;math&amp;gt;\delta&amp;gt;0&amp;lt;/math&amp;gt;,&lt;br /&gt;
::&amp;lt;math&amp;gt;\Pr[X\ge (1+\delta)\mu]\le\left(\frac{e^{\delta}}{(1+\delta)^{(1+\delta)}}\right)^{\mu}.&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;Proof:&#039;&#039;&#039; For any &amp;lt;math&amp;gt;\lambda&amp;gt;0&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;X\ge (1+\delta)\mu&amp;lt;/math&amp;gt; is equivalent to that &amp;lt;math&amp;gt;e^{\lambda X}\ge e^{\lambda (1+\delta)\mu}&amp;lt;/math&amp;gt;, thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\Pr[X\ge (1+\delta)\mu] &lt;br /&gt;
&amp;amp;=&lt;br /&gt;
\Pr\left[e^{\lambda X}\ge e^{\lambda (1+\delta)\mu}\right]\\&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
\frac{\mathbf{E}\left[e^{\lambda X}\right]}{e^{\lambda (1+\delta)\mu}},&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt; &lt;br /&gt;
where the last step follows by Markov&#039;s inequality.&lt;br /&gt;
&lt;br /&gt;
Computing the moment generating function &amp;lt;math&amp;gt;\mathbf{E}[e^{\lambda X}]&amp;lt;/math&amp;gt;:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\mathbf{E}\left[e^{\lambda X}\right]&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
\mathbf{E}\left[e^{\lambda \sum_{i=1}^n X_i}\right]\\&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
\mathbf{E}\left[\prod_{i=1}^n e^{\lambda X_i}\right]\\&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
\prod_{i=1}^n \mathbf{E}\left[e^{\lambda X_i}\right].&lt;br /&gt;
&amp;amp; (\mbox{for independent random variables})&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;p_i=\Pr[X_i=1]&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;i=1,2,\ldots,n&amp;lt;/math&amp;gt;. Then,&lt;br /&gt;
:&amp;lt;math&amp;gt;\mu=\mathbf{E}[X]=\mathbf{E}\left[\sum_{i=1}^n X_i\right]=\sum_{i=1}^n\mathbf{E}[X_i]=\sum_{i=1}^n p_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We bound the moment generating function for each individual &amp;lt;math&amp;gt;X_i&amp;lt;/math&amp;gt; as follows.&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\mathbf{E}\left[e^{\lambda X_i}\right]&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
p_i\cdot e^{\lambda\cdot 1}+(1-p_i)\cdot e^{\lambda\cdot 0}\\&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
1+p_i(e^\lambda -1)\\&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
e^{p_i(e^\lambda-1)},&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
where in the last step we apply the Taylor&#039;s expansion so that &amp;lt;math&amp;gt;e^y\ge 1+y&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;y=p_i(e^\lambda-1)\ge 0&amp;lt;/math&amp;gt;. (By doing this, we can transform the product to the sum of &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;, which is &amp;lt;math&amp;gt;\mu&amp;lt;/math&amp;gt;.) &lt;br /&gt;
&lt;br /&gt;
Therefore,&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\mathbf{E}\left[e^{\lambda X}\right]&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
\prod_{i=1}^n \mathbf{E}\left[e^{\lambda X_i}\right]\\&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
\prod_{i=1}^n e^{p_i(e^\lambda-1)}\\&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
\exp\left(\sum_{i=1}^n p_i(e^{\lambda}-1)\right)\\&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
e^{(e^\lambda-1)\mu}.&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus, we have shown that for any &amp;lt;math&amp;gt;\lambda&amp;gt;0&amp;lt;/math&amp;gt;,&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\Pr[X\ge (1+\delta)\mu] &lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
\frac{\mathbf{E}\left[e^{\lambda X}\right]}{e^{\lambda (1+\delta)\mu}}\\&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
\frac{e^{(e^\lambda-1)\mu}}{e^{\lambda (1+\delta)\mu}}\\&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
\left(\frac{e^{(e^\lambda-1)}}{e^{\lambda (1+\delta)}}\right)^\mu&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;.&lt;br /&gt;
For any &amp;lt;math&amp;gt;\delta&amp;gt;0&amp;lt;/math&amp;gt;, we can let &amp;lt;math&amp;gt;\lambda=\ln(1+\delta)&amp;gt;0&amp;lt;/math&amp;gt; to get&lt;br /&gt;
:&amp;lt;math&amp;gt;\Pr[X\ge (1+\delta)\mu]\le\left(\frac{e^{\delta}}{(1+\delta)^{(1+\delta)}}\right)^{\mu}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\square&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The idea of the proof is actually quite clear: we apply Markov&#039;s inequality to &amp;lt;math&amp;gt;e^{\lambda X}&amp;lt;/math&amp;gt; and for the rest, we just estimate the moment generating function &amp;lt;math&amp;gt;\mathbf{E}[e^{\lambda X}]&amp;lt;/math&amp;gt;. To make the bound as tight as possible, we minimized the &amp;lt;math&amp;gt;\frac{e^{(e^\lambda-1)}}{e^{\lambda (1+\delta)}}&amp;lt;/math&amp;gt; by setting &amp;lt;math&amp;gt;\lambda=\ln(1+\delta)&amp;lt;/math&amp;gt;, which can be justified by taking derivatives of &amp;lt;math&amp;gt;\frac{e^{(e^\lambda-1)}}{e^{\lambda (1+\delta)}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
We then proceed to the lower tail, the probability that the random variable deviates below the mean value:&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Chernoff bound (the lower tail):&#039;&#039;&#039;&lt;br /&gt;
:Let  &amp;lt;math&amp;gt;X=\sum_{i=1}^n X_i&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;X_1, X_2, \ldots, X_n&amp;lt;/math&amp;gt; are independent Poisson trials. Let &amp;lt;math&amp;gt;\mu=\mathbf{E}[X]&amp;lt;/math&amp;gt;. &lt;br /&gt;
:Then for any &amp;lt;math&amp;gt;0&amp;lt;\delta&amp;lt;1&amp;lt;/math&amp;gt;,&lt;br /&gt;
::&amp;lt;math&amp;gt;\Pr[X\le (1-\delta)\mu]\le\left(\frac{e^{-\delta}}{(1-\delta)^{(1-\delta)}}\right)^{\mu}.&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;Proof:&#039;&#039;&#039; For any &amp;lt;math&amp;gt;\lambda&amp;lt;0&amp;lt;/math&amp;gt;, by the same analysis as in the upper tail version,&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\Pr[X\le (1-\delta)\mu] &lt;br /&gt;
&amp;amp;=&lt;br /&gt;
\Pr\left[e^{\lambda X}\ge e^{\lambda (1-\delta)\mu}\right]\\&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
\frac{\mathbf{E}\left[e^{\lambda X}\right]}{e^{\lambda (1-\delta)\mu}}\\&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
\left(\frac{e^{(e^\lambda-1)}}{e^{\lambda (1-\delta)}}\right)^\mu.&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt; &lt;br /&gt;
For any &amp;lt;math&amp;gt;0&amp;lt;\delta&amp;lt;1&amp;lt;/math&amp;gt;, we can let &amp;lt;math&amp;gt;\lambda=\ln(1-\delta)&amp;lt;0&amp;lt;/math&amp;gt; to get&lt;br /&gt;
:&amp;lt;math&amp;gt;\Pr[X\ge (1-\delta)\mu]\le\left(\frac{e^{-\delta}}{(1-\delta)^{(1-\delta)}}\right)^{\mu}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\square&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Some useful special forms of the bounds can be derived directly from the above general forms of the bounds. We now know better why we say that the bounds are exponentially sharp.&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Useful forms of the Chernoff bound&#039;&#039;&#039;&lt;br /&gt;
:Let  &amp;lt;math&amp;gt;X=\sum_{i=1}^n X_i&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;X_1, X_2, \ldots, X_n&amp;lt;/math&amp;gt; are independent Poisson trials. Let &amp;lt;math&amp;gt;\mu=\mathbf{E}[X]&amp;lt;/math&amp;gt;. Then&lt;br /&gt;
:1. for &amp;lt;math&amp;gt;0&amp;lt;\delta\le 1&amp;lt;/math&amp;gt;,&lt;br /&gt;
::&amp;lt;math&amp;gt;\Pr[X\ge (1+\delta)\mu]&amp;lt;\exp\left(-\frac{\mu\delta^2}{3}\right);&amp;lt;/math&amp;gt;&lt;br /&gt;
::&amp;lt;math&amp;gt;\Pr[X\le (1-\delta)\mu]&amp;lt;\exp\left(-\frac{\mu\delta^2}{2}\right);&amp;lt;/math&amp;gt;&lt;br /&gt;
:2. for &amp;lt;math&amp;gt;t\ge 2e\mu&amp;lt;/math&amp;gt;,&lt;br /&gt;
::&amp;lt;math&amp;gt;\Pr[X\ge t]\le 2^{-t}.&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;Proof:&#039;&#039;&#039; To obtain the bounds in (1), we need to show that for &amp;lt;math&amp;gt;0&amp;lt;\delta&amp;lt; 1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\frac{e^{\delta}}{(1+\delta)^{(1+\delta)}}\le e^{-\delta^2/3}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\frac{e^{-\delta}}{(1-\delta)^{(1-\delta)}}\le e^{-\delta^2/2}&amp;lt;/math&amp;gt;. We can verify both inequalities by standard analysis techniques.&lt;br /&gt;
&lt;br /&gt;
To obtain the bound in (2), let &amp;lt;math&amp;gt;t=(1+\delta)\mu&amp;lt;/math&amp;gt;. Then &amp;lt;math&amp;gt;\delta=t/\mu-1\ge 2e-1&amp;lt;/math&amp;gt;. Hence,&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\Pr[X\ge(1+\delta)\mu]&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
\left(\frac{e^\delta}{(1+\delta)^{(1+\delta)}}\right)^\mu\\&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
\left(\frac{e}{1+\delta}\right)^{(1+\delta)\mu}\\&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
\left(\frac{e}{2e}\right)^t\\&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
2^{-t}&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\square&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Applications of Chernoff Bounds ==&lt;br /&gt;
We now introduce some applications of Chernoff bounds in randomized algorithms.&lt;br /&gt;
&lt;br /&gt;
=== Balls into bins ===&lt;br /&gt;
Throwing &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; balls uniformly and independently to &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; bins, what is the maximum load of all bins? In the last class, by using a counting argument, we proved that for the case that &amp;lt;math&amp;gt;m=n&amp;lt;/math&amp;gt;, the maximum load is &amp;lt;math&amp;gt;O(\ln n\ln\ln n)&amp;lt;/math&amp;gt; with high probability. Now we show that when there are more balls, the loads are more balanced.&lt;br /&gt;
&lt;br /&gt;
For any &amp;lt;math&amp;gt;i\in[n]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;j\in[m]&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;X_{ij}&amp;lt;/math&amp;gt; be the indicator variable for the event that ball &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; is thrown to bin &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;. Obviously&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbf{E}[X_{ij}]=\Pr[\mbox{ball }j\mbox{ is thrown to bin }i]=\frac{1}{n}&amp;lt;/math&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;Y_i=\sum_{j\in[m]}X_{ij}&amp;lt;/math&amp;gt; be the load of bin &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us consider the case when &amp;lt;math&amp;gt;m=6n\ln n&amp;lt;/math&amp;gt;. Then the expected load of bin &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; is&lt;br /&gt;
:&amp;lt;math&amp;gt;\mu=\mathbf{E}[Y_i]=\mathbf{E}\left[\sum_{j\in[m]}X_{ij}\right]=\sum_{j\in[m]}\mathbf{E}[X_{ij}]=m/n=6\ln n&amp;lt;/math&amp;gt;. &lt;br /&gt;
Note that &amp;lt;math&amp;gt;Y_i&amp;lt;/math&amp;gt; is a sum of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; mutually independent indicator variable. Applying Chernoff bound, for any particular bin &amp;lt;math&amp;gt;i\in[n]&amp;lt;/math&amp;gt;,&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\Pr[Y_i&amp;gt;12\ln n] =\Pr[Y_i&amp;gt;(1+1)\mu]\le e^{-\frac{\mu}{3}} = e^{-2\ln n}= \frac{1}{n^2}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Applying the union bound, the probability that there exists a bin with load &amp;lt;math&amp;gt;&amp;gt;12\ln n&amp;lt;/math&amp;gt; is&lt;br /&gt;
:&amp;lt;math&amp;gt;n\cdot \Pr[Y_1&amp;gt;12\ln n]\le \frac{1}{n}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Therefore, with probability at least &amp;lt;math&amp;gt;1-\frac{1}{n}&amp;lt;/math&amp;gt;, the maximum load is within &amp;lt;math&amp;gt;12\ln n=O(m/n)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Set balancing ===&lt;br /&gt;
Supposed that we have an &amp;lt;math&amp;gt;n\times m&amp;lt;/math&amp;gt; matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; with 0-1 entries. We are looking for a &amp;lt;math&amp;gt;b\in\{-1,+1\}^m&amp;lt;/math&amp;gt; that minimizes &amp;lt;math&amp;gt;\|Ab\|_\infty&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Recall that &amp;lt;math&amp;gt;\|\cdot\|_\infty&amp;lt;/math&amp;gt; is the infinity norm (also called &amp;lt;math&amp;gt;L_\infty&amp;lt;/math&amp;gt; norm) of a vector, and for the vector &amp;lt;math&amp;gt;c=Ab&amp;lt;/math&amp;gt;, &lt;br /&gt;
:&amp;lt;math&amp;gt;\|Ab\|_\infty=\max_{i=1,2,\ldots,n}|c_i|&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We can also describe this problem as an optimization:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\mbox{minimize }&lt;br /&gt;
&amp;amp;\quad&lt;br /&gt;
\|Ab\|_\infty\\&lt;br /&gt;
\mbox{subject to: }&lt;br /&gt;
&amp;amp;\quad&lt;br /&gt;
b\in\{-1,+1\}^m.&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This problem is called set balancing for a reason.&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
|The problem arises in designing statistical experiments. Suppose that we have &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; &#039;&#039;&#039;subjects&#039;&#039;&#039;, each of which may have up to &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; &#039;&#039;&#039;features&#039;&#039;&#039;. This gives us an &amp;lt;math&amp;gt;n\times m&amp;lt;/math&amp;gt; matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{array}{c}&lt;br /&gt;
\mbox{feature 1:}\\&lt;br /&gt;
\mbox{feature 2:}\\&lt;br /&gt;
\vdots\\&lt;br /&gt;
\mbox{feature n:}\\&lt;br /&gt;
\end{array}&lt;br /&gt;
\left[&lt;br /&gt;
\begin{array}{cccc}&lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1m}\\&lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2m}\\&lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots\\&lt;br /&gt;
a_{n1} &amp;amp; a_{n2} &amp;amp; \cdots &amp;amp; a_{nm}\\&lt;br /&gt;
\end{array}&lt;br /&gt;
\right],&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where each column represents a subject and each row represent a feature. An entry &amp;lt;math&amp;gt;a_{ij}\in\{0,1\}&amp;lt;/math&amp;gt; indicates whether subject &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; has feature &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
By multiplying a vector &amp;lt;math&amp;gt;b\in\{-1,+1\}^m&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\left[&lt;br /&gt;
\begin{array}{cccc}&lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1m}\\&lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2m}\\&lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots\\&lt;br /&gt;
a_{n1} &amp;amp; a_{n2} &amp;amp; \cdots &amp;amp; a_{nm}\\&lt;br /&gt;
\end{array}&lt;br /&gt;
\right]&lt;br /&gt;
\left[&lt;br /&gt;
\begin{array}{c}&lt;br /&gt;
b_{1}\\&lt;br /&gt;
b_{2}\\&lt;br /&gt;
\vdots\\&lt;br /&gt;
b_{m}\\&lt;br /&gt;
\end{array}&lt;br /&gt;
\right]&lt;br /&gt;
=&lt;br /&gt;
\left[&lt;br /&gt;
\begin{array}{c}&lt;br /&gt;
c_{1}\\&lt;br /&gt;
c_{2}\\&lt;br /&gt;
\vdots\\&lt;br /&gt;
c_{n}\\&lt;br /&gt;
\end{array}&lt;br /&gt;
\right],&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
the subjects are partitioned into two disjoint groups: one for -1 and other other for +1. Each &amp;lt;math&amp;gt;c_i&amp;lt;/math&amp;gt; gives the difference between the numbers of subjects with feature &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; in the two groups. By minimizing &amp;lt;math&amp;gt;\|Ab\|_\infty=\|c\|_\infty&amp;lt;/math&amp;gt;, we ask for an optimal partition so that each feature is roughly as balanced as possible between the two groups.&lt;br /&gt;
&lt;br /&gt;
In a scientific experiment, one of the group serves as a [http://en.wikipedia.org/wiki/Scientific_control control group] (对照组). Ideally, we want the two groups are statistically identical, which is usually impossible to achieve in practice. The requirement of minimizing &amp;lt;math&amp;gt;\|Ab\|_\infty&amp;lt;/math&amp;gt; actually means the statistical difference between the two groups are minimized.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We propose an extremely simple &amp;quot;randomized algorithm&amp;quot; for computing a &amp;lt;math&amp;gt;b\in\{-1,+1\}^m&amp;lt;/math&amp;gt;: for each &amp;lt;math&amp;gt;i=1,2,\ldots, m&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;b_i&amp;lt;/math&amp;gt; be independently chosen from &amp;lt;math&amp;gt;\{-1,+1\}&amp;lt;/math&amp;gt;, such that &lt;br /&gt;
:&amp;lt;math&amp;gt;b_i=&lt;br /&gt;
\begin{cases}&lt;br /&gt;
-1 &amp;amp; \mbox{with probability }\frac{1}{2}\\&lt;br /&gt;
+1 &amp;amp;\mbox{with probability }\frac{1}{2}&lt;br /&gt;
\end{cases}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure can hardly be called as an &amp;quot;algorithm&amp;quot;, because its decision is made disregard of the input &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;. We then show that despite of this obliviousness, the algorithm chooses a good enough &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, such that for any &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\|Ab\|_\infty=O(\sqrt{m\ln n})&amp;lt;/math&amp;gt; with high probability.&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Theorem&#039;&#039;&#039;&lt;br /&gt;
:Let &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; be an &amp;lt;math&amp;gt;n\times m&amp;lt;/math&amp;gt; matrix with 0-1 entries. For a random vector &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; entries chosen independently and with equal probability from &amp;lt;math&amp;gt;\{-1,+1\}&amp;lt;/math&amp;gt;,&lt;br /&gt;
::&amp;lt;math&amp;gt;\Pr[\|Ab\|_\infty&amp;gt;2\sqrt{2m\ln n}]\le\frac{2}{n}&amp;lt;/math&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;Proof:&#039;&#039;&#039;&lt;br /&gt;
Consider particularly the &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;-th row of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;. The entry of &amp;lt;math&amp;gt;Ab&amp;lt;/math&amp;gt; contributed by row &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;c_i=\sum_{j=1}^m a_{ij}b_j&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; be the non-zero entries in the row. If &amp;lt;math&amp;gt;k\le2\sqrt{2m\ln n}&amp;lt;/math&amp;gt;, then clearly &amp;lt;math&amp;gt;|c_i|&amp;lt;/math&amp;gt; is no greater than &amp;lt;math&amp;gt;2\sqrt{2m\ln n}&amp;lt;/math&amp;gt;. On the other hand if &amp;lt;math&amp;gt;k&amp;gt;2\sqrt{2m\ln n}&amp;lt;/math&amp;gt; then the &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; nonzero terms in the sum&lt;br /&gt;
:&amp;lt;math&amp;gt;c_i=\sum_{j=1}^m a_{ij}b_j&amp;lt;/math&amp;gt;&lt;br /&gt;
are independent, each with probability 1/2 of being either +1 or -1. &lt;br /&gt;
&lt;br /&gt;
Thus, for these &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; nonzero terms, each &amp;lt;math&amp;gt;b_i&amp;lt;/math&amp;gt; is either positive or negative independently with equal probability. There are expectedly &amp;lt;math&amp;gt;\mu=\frac{k}{2}&amp;lt;/math&amp;gt; positive &amp;lt;math&amp;gt;b_i&amp;lt;/math&amp;gt;&#039;s among these &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; terms, and &amp;lt;math&amp;gt;c_i&amp;lt;-2\sqrt{2m\ln n}&amp;lt;/math&amp;gt; only occurs when there are less than &amp;lt;math&amp;gt;\frac{k}{2}-\sqrt{2m\ln n}=\left(1-\delta\right)\mu&amp;lt;/math&amp;gt; positive &amp;lt;math&amp;gt;b_i&amp;lt;/math&amp;gt;&#039;s, where &amp;lt;math&amp;gt;\delta=\frac{2\sqrt{2m\ln n}}{k}&amp;lt;/math&amp;gt;. Applying Chernoff bound, this event occurs with probability at most&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\exp\left(-\frac{\mu\delta^2}{2}\right)&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
\exp\left(-\frac{k}{2}\cdot\frac{8m\ln n}{2k^2}\right)\\&lt;br /&gt;
&amp;amp;=&lt;br /&gt;
\exp\left(-\frac{2m\ln n}{k}\right)\\&lt;br /&gt;
&amp;amp;\le&lt;br /&gt;
\exp\left(-\frac{2m\ln n}{m}\right)\\&lt;br /&gt;
&amp;amp;\le n^{-2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The same argument can be applied to negative &amp;lt;math&amp;gt;b_i&amp;lt;/math&amp;gt;&#039;s, so that the probability that &amp;lt;math&amp;gt;c_i&amp;gt;2\sqrt{2m\ln n}&amp;lt;/math&amp;gt; is at most &amp;lt;math&amp;gt;n^{-2}&amp;lt;/math&amp;gt;. Therefore, by the union bound, &lt;br /&gt;
:&amp;lt;math&amp;gt;\Pr[|c_i|&amp;gt; 2\sqrt{2m\ln n}]\le\frac{2}{n^2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
Apply the union bound to all &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; rows.&lt;br /&gt;
:&amp;lt;math&amp;gt;\Pr[\|Ab\|_\infty&amp;gt;2\sqrt{2m\ln n}]\le n\cdot\Pr[|c_i|&amp;gt; 2\sqrt{2m\ln n}]\le\frac{2}{n}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;math&amp;gt;\square&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So how good is this randomized algorithm? In fact when &amp;lt;math&amp;gt;m=n&amp;lt;/math&amp;gt; there exists a matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\|Ab\|_\infty=\Omega(\sqrt{n})&amp;lt;/math&amp;gt; for any choice of &amp;lt;math&amp;gt;b\in\{-1,+1\}^n&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>172.21.8.246</name></author>
	</entry>
</feed>