WorksComputer Science
The Communication Complexity of the Coin Problem
Abstract
We study the two-player communication complexity of the \textsf{Coin} problem. Here, two players, denoted Alice and Bob, are given up to individual i.i.d. random coins, and asked to output whether there are more heads or tails. An immediate approach is for Alice to send Bob her exact numbers of heads and tails, yielding a deterministic protocol with one-way communication cost bits. Indeed, this is provably optimal in the related multi-player and streaming settings [Braverman, Garg, Woodruff, FOCS'20]. Our contribution is to show that this is not the right answer in the one-way two-player setting. Instead, we prove a bit lower bound for the constant error-rate regime, and a bit lower bound for arbitrarily small error rates, . We also complement these with a tight one-way protocol using bits of communication. Unlike the previous works, our lower bounds avoid intricate direct information-theoretic arguments. Instead, our bound is via a standard fooling-set style argument, whilst our bound is via a novel yet simple reduction from the \textsf{Gap-Greater-Than} problem. This reduction is our main technical contribution, and can be seen as loosely inspired by the Robust Communication Complexity arguments of [Chakrabarti, Cormode, McGregor, STOC'08]. Finally, we also show that our constant-error lower bound and protocol can be adapted to the multi-round setting: up to polynomial factors in , the -round communication complexity of the coin problem is bits.
Introduction
The coin problem is one of the most basic computational tasks: given independent unbiased coin tosses, determine whether there are more heads or tails. Whilst computing the answer is straightforward when all coin tosses are available in one place, the problem becomes considerably more subtle in non-centralized settings.
In this work, we primarily focus on the coin problem in the one-way two-player communication model [Yao79]. Here, the two players, Alice and Bob, each receive a subset of the up to coin tosses as their private inputs. Alice then sends a single message to Bob who must determine the majority outcome of the entire collection of coins. We denote this problem by . Our goal is to solve this with as little communication as possible1.
The coin problem admits a trivial zero-error protocol using bits of communication: Alice simply sends the exact numbers of heads and tails in her input, allowing Bob to determine the overall majority exactly. At the other extreme, Bob may ignore Alice’s message altogether and output a uniformly random guess, requiring no communication and succeeding with probability . In addition, a single bit of communication already suffices to achieve success probability : Alice sends the majority value among her own coin tosses, and Bob outputs this value whenever it agrees with the majority of his own input, breaking ties uniformly at random otherwise.
Beyond this, however, the communication complexity of the coin problem is not well-studied. For example, it is unclear how much success probability can be achieved using two bits of communication, or how many bits are required to achieve success probability, say, 0.76. Motivated by these questions, we set out to study the trade-off between communication and success probability.
To this end, our main contribution is an (almost) complete characterization of this trade-off. Our first result shows that is indeed the sharp threshold beyond which super-constant communication becomes necessary.
Theorem 1.1. Any (potentially randomised) one-way two-player communication protocol for with success probability , for any constant , must communicate bits.
Beyond the constant-error regime, we also consider the low-error regime where the error probability may be arbitrarily small, and here we prove a space dependency on .
Theorem 1.2. Any (potentially randomised) one-way two-player communication protocol for with success probability , for any , must communicate bits.
We complement our lower bounds with a matching deterministic protocol. At a high level, our protocol shows that the two sources of difficulty identified by our lower bounds can be addressed independently: bits suffice to surpass the barrier, and an additional bits are enough to amplify the success probability to .
Theorem 1.3. There is a deterministic one-way two-player communication protocol for with success probability , for any , using bits of communication.
Combined, our results show that, for coin tosses, and error probability , the coin problem has communication complexity .
Multi-Round Communication. Finally, we also extend our results to the more powerful multi-round communication setting, where Alice and Bob can take turns exchanging messages multiple times. In particular, we obtain a tradeoff between the communication required, and number of rounds allowed, and this tradeoff is also tight for any constant number of rounds.
Theorem 1.4. There is a deterministic -round two-player communication protocol for that succeeds with probability at least using bits of communication. Conversely, every (possibly randomized) -round two-player communication protocol for that succeeds with probability at least must communicate bits.
Whilst this is stated for the error-rate , these bounds also trivially extend to any constant error rate .
Finally, we remark that whilst our lower bounds are stated for potentially randomised algorithms, this is not actually required. Instead, by viewing a randomised algorithm as a distribution over deterministic algorithms, there must exist a fixing of a randomness (for which the algorithm becomes deterministic) which achieves the same success probability.
Connections to the Streaming Setting
While the coin problem has been studied extensively from the perspective of computational complexity [5 Ste13, 7 LV18], it has also attracted significant recent attention in the streaming setting. Here, the outcomes of the coin tosses are revealed sequentially, and the goal is to determine the majority outcome using as little memory as possible. The same simple algorithm as before maintains the exact number of heads and tails seen so far, yielding an -space upper bound.
Establishing matching lower bounds is considerably more challenging. The standard approach for proving one-pass streaming lower bounds is to reduce the problem to a one-way (multi-player) communication game, where the stream is partitioned among several players who take turns communicating sequentially. At the end, the final player must produce the desired answer.
The simplest such reductions involve only two players, Alice and Bob, which is precisely the setting primarily studied in this work. Unfortunately, this approach is insufficient for proving the optimal streaming space lower bound for the coin problem in the constant error regime. Braverman, Garg, and Woodruff, in their breakthrough work [4], observed that when Alice and Bob each receive exactly half of the stream, the resulting two-player problem admits an -bit protocol with constant error probability. We stress that this is for the specific scenario where both players know exactly how many coins are held by the other. Thus, the standard two-player reduction does not initially seem capable of yielding any super-constant lower bounds. To overcome this barrier, they detoured to the multi-player communication model where they developed a novel information-theoretic argument, obtaining the first optimal space lower bound.
The techniques introduced by [4] have had a lasting impact beyond the coin problem itself, and have since been adapted to establish a variety of fundamental streaming lower bounds [2, 3, 1 LWZ25, GHPS26, SY26]. Our work complements this line of research by revisiting the two-player communication perspective on the problem.
Precisely, our Theorem 1.1 shows that, in contrast to the equal-partition of the stream considered by [4], a super-constant lower bound of for the streaming coin problem can already be obtained when the stream is partitioned unequally between Alice and Bob. While our lower bound is exponentially weaker than the optimal bound of [4], our approach appears substantially simpler and, as a bonus, holds for a larger range of constant success probabilities4.
Our Approaches
The Lower Bound. Our approach begins with a simple key lemma: if one player holds many more coins than the other, then this player’s majority element will also be the majority of all coins, with good probability over the coins. The proof of this is remarkably simple - we combine both a standard concentration and anti-concentration bound over two binomial distributions with very different numbers of trials (formalised in Lemma 3.1).
This directly leads to our proof approach: we can use the canonical Greater-Than problem to construct a reduction where the players are unaware who holds more coins. Here, Alice and Bob hold respectively, and are asked to determine whether . Then, via our key lemma, we can argue that when the players are able to determine the majority element with sufficient (constant) probability, then they can use this to also infer who has more coins, solving an underlying Greater-Than instance.
A priori, this would suggest a lower bound, where each player simulates precisely as many coins as per their Greater-Than input. However, the devil is in the details, and this turns out not to be the full story. Instead, for our key lemma, and hence our reduction, to hold, we require the ratio to be sufficiently large (or small). I.e. we require a multiplicative difference, rather than a purely additive one. We overcome this hurdle in two ways:
First, instead of simulating and coins respectively, the players will instead simulate and many.
Next, instead of reducing from Greater-Than, we will reduce from the related Gap-Greater-Than problem. This is a promise version of Greater-Than where is sufficiently large.
Together, these two steps are sufficient to guarantee the multiplicative difference required.
This is also precisely why we obtain a lower bound. Our final reduction is from an instance of Gap-Greater-Than over the input range , which requires (one-way) communication . At the same time, the players simulate up to distinct coins. This allows us to re-parameterize , with which the lower bound translates to .
Our argument can be seen as inspired by the Robust Communication Complexity arguments of [6], particularly when it comes to the stochastic nature of the simulated coins. This is an approach to communication complexity where input elements are randomly partitioned between players. Without these arguments, we could obtain a bound on protocols with success probability , but using these ideas allows us to boost this to . However, unlike most robust communication complexity arguments, the randomness behind ours solely arises from the stochastic nature of the input, rather than through how the input elements are partitioned between players.
The Lower Bound. Our second lower bound is considerably more standard, and follows from a fooling-set style argument. The key observation is that Alice’s message acts as a function whose pre-images form a partition of her input space. Then, upon receiving any particular message, Bob must produce an output that is simultaneously correct for (almost) every input in the corresponding pre-image.
More concretely, suppose Alice sends a -bit message and the protocol achieves error . Then, it must be that her input space is partitioned into subsets, corresponding to each message, namely . Let denote the probability masses of these subsets respectively. In particular, conditioned on any particular message, Bob has no information about Alice’s input beyond the fact that it belongs to the corresponding subset. Then, as the crux of our proof, we show that under the condition that both Alice and Bob receive inputs from the same (which occurs with probability ), Bob must err with constant probability. As a result, the total error rate must be at least (by Cauchy-Schwarz), from which it follows that .
The Upper Bound. We now sketch our -bit protocol for any error-rate . Our protocol is inspired by the simple -bit protocol of [4] for the special case in which Alice and Bob each receive exactly half of the coins. In their protocol, Alice sends Bob the number of standard deviations by which the sum of her coin tosses deviates from its expectation, rounded to the nearest multiple of a small constant (e.g., ). To handle the more general setting in which Alice and Bob may receive arbitrary numbers of coins, we make two key modifications.
Suppose Alice and Bob receive comparable numbers of coins, say within a factor of 100. We observe that a straightforward refinement of the protocol of [4], in which Alice rounds to a much finer precision (e.g., ), continues to succeed. The finer rounding compensates for the discrepancy between Alice’s and Bob’s standard deviations, while increasing the message length by only a constant number of bits.
Now suppose one player receives significantly more coins than the other, say by a factor of at least 100. Then, by the same key technical lemma we made earlier, the majority element of the player with more coins will also be the majority element of all coins (with good probability), and this is the idea we will lean on. In this case, Alice sends Bob her majority bit, together with an approximate count of her number of coins, rounded to the nearest power of two. Bob then compares this estimate to his own number of coins. If Alice appears to hold significantly more coins, he outputs her majority bit; otherwise, if he holds significantly more coins, he outputs his own majority bit.
Let us first reason about the communication cost. In the first case, the sum of Alice’s coin tosses lies within standard deviations of its expectation with high constant probability (via Chebyshev’s inequality). Given that this occurs, Alice’s rounded value requires only bits to encode. In the second case, Alice only needs to communicate an estimate of her number of coins, rounded to the nearest power of two. Since she holds at most coins, this can be encoded by bits.
The full implementation of this protocol (Section 6) extends to cover the remaining regime of . However, we remark that the high level ideas remain unchanged, and instead it is only the rounding schemes which are affected.
Multi-Round Communication Tradeoffs. Our multi-round results are obtained via minor adaptations of our one-way bounds. For the lower bound, we observe that our reduction also preserves the number of rounds. Thus, it suffices to invoke a previously known -round lower bound for Greater-Than [SV08], yielding our coin problem lower bound.
For the upper bound, we observe that, for constant error rates, the protocol developed above ultimately boils down to comparing the logarithms of the numbers of coins held by Alice and Bob. Therefore, replacing our one-way protocol with a more efficient -round protocol for Greater-Than yields the desired bound.
AI Declaration. AI tools were only used as a reference for grammar, and not for any mathematical work.
Preliminaries
Notations. Given a real number , we use to denote its sign. If , either sign is correct, but for our lower bounds it will also be useful to think of as not existing in this case. We use to denote the base-2 logarithm of , and to denote its natural logarithm. For any integers , we shorthand for . We also denote for any positive integer .
The Coin Problem. The coin problem in the two-player communication setting is defined as follows. Let be a positive integer and let be an error parameter. Alice is given i.i.d. fair coin tosses, while Bob is given i.i.d. fair coin tosses. The players may communicate back and forth, and in the end, they must determine the majority outcome of all tosses with probability at least over the randomness of the coin toss. We say that a protocol is one-way if it consists of a single message from Alice to Bob. More generally, a protocol is said to use rounds if it consists of at most alternating messages between Alice and Bob.
Associating heads with “” and tails with “”, we denote Alice’s and Bob’s sums of coin tosses by and , respectively. Then and are distributed according to and , respectively, where denotes the binomial distribution. Equivalently, the players’ objective is to determine .
We denote by and the sets of coins given to Alice and Bob, and by the combined set of coins. We will occasionally abuse notation by writing , , and to refer to Alice’s local majority, Bob’s local majority, and the overall majority, respectively.
The Gaussian Distribution. For any variance parameter , we denote by the Gaussian distribution with mean and variance . Its probability density function (pdf) and cumulative distribution function (cdf) are defined respectively as
Quantiles and ranks. For a distribution supported over the reals and , we define the -quantile of as the smallest value such that . Equivalently, satisfies and . Conversely, the rank of with respect to is defined as .
Useful Inequalities
The following standard facts will also be useful to us.
Fact 2.1. For all , if , then .
Fact 2.2. , and when this occurs, .
Fact 2.3. For any , we have .
Fact 2.4. For any positive integer , the Gaussian distribution and the shifted binomial distribution have statistical distance at most . Equivalently, for every , we have
Fact 2.5. For any integer and any , we have
Corollary 2.6. Let . Then, for any , we have .
Theorem 2.7 (Chernoff Bound). Let be a positive integer and . Then, for any ,
Theorem 2.8 (Anti-Concentration of the Binomial). Let be a positive integer and . Then, for any ,
The Key Technical Lemma
We now present the key lemma that will be used to prove both our lower and upper bounds.
Lemma 3.1. Let . If , then
Conversely, if , then
Proof. We will prove the first of these, the second follows by an identical argument. We first show that is concentrated around 0. To do so, we use a Chernoff bound (Theorem 2.7) to write
Next, we turn to and instead show that it is unlikely to be this close to 0. We do this via Theorem 2.8 to write
(By the assumption on .)
Thus, combining Equations (1) and (2) via a union bound, we can write
and so, with probability at least , it follows that . Thus, by Fact 2.1, we also get that with this probability. ■
The Lower Bound
We now prove our main result, Theorem 1.1.
Theorem 1.1. Any (potentially randomised) one-way two-player communication protocol for with success probability , for any constant , must communicate bits.
The Gap-Greater-Than Communication Problem
Our starting point is the canonical Gap-Greater-Than communication problem, and its well-known hardness.
Definition 4.1 (Gap-Greater-Than). In the Gap-Greater-Than problem, Alice and Bob are given , with the promise that and asked to determine if .
Theorem 4.2. Any (potentially randomised) one-way two-player communication protocol which solves Gap-Greater-Than with probability at least , for any constant , must send a message of size .
This one-way lower bound can be proven via a simple reduction from the canonical Augmented-Index problem. For completeness, we give this reduction in Appendix A, but do not claim any novelty in it. However, the following fact regarding it will be useful here.
Fact 4.3. With the choice of , the hard distribution of Gap-Greater-Than which we implicitly use satisfies .
We also note that multi-round lower bounds can be obtained from more direct round elimination arguments [MNSW95].
The Reduction from Gap-Greater-Than
We now present our reduction to the coin problem. We point out that our earlier key observation (Lemma 3.1) directly motivates the design of our reduction: we will aim to create input streams of coins where one player holds far more than the other, so that solving the coin problem will also help reveal who holds more coins.
Protocol for Gap-Greater-Than:
Input: Suppose Alice and Bob hold an instance of Gap-Greater-Than, with Alice holding , and Bob holding . Let denote any protocol for the Coin problem.
The Protocol:
First, Alice uses private randomness to simulate many i.i.d. coin tosses, denoting these .
Alice then runs on these simulated coins, and sends the message from on to Bob, together with the majority element of (if it exists), denoted .
Bob then continues by first using private randomness to simulate many i.i.d. coins, denoted , and then uses the message sent by Alice to continue the execution of on these coins. Also, let denote the majority element of .
The Output: Bob then produces the final output in the following way. If either does not exist, or , then Bob outputs either or , each with probability (i.e. a random guess). Otherwise, we have that exists and . Now, in this case, let denote the final output produced by . Then, if , Bob outputs that , and otherwise outputs that .
We are now ready to complete the proof of Theorem 1.1.
Theorem 1.1. Any (potentially randomised) one-way two-player communication protocol for with success probability , for any constant , must communicate bits.
Proof. For any , we consider an instance of Gap-Greater-Than (i.e. ), and consider running Protocol . In doing so, suppose that is any protocol for the Coin problem with success probability . We now first consider the event
This is precisely the event under which Bob’s outputs is simply a random guess, which will be correct with probability . Then, we can write
Next, we turn to consider the event
We immediately see that this is precisely the event whose probability is bounded in our key lemma (Lemma 3.1), which is exactly how we will approach it here.
In order to bound , we first use that, by construction, . Therefore, assuming that , we get that
and vice-versa if . Now, to satisfy the conditions of Lemma 3.1, we set
to obtain
and thus verify
as desired (or vice-versa if ). This then allows us to use Lemma 3.1 to obtain the bound
and thus
Now, using these bounds, we can determine the probability that is correct to be:
(Equations 5 and 8.)
which is a constant larger than .
Then, since (by Theorem 4.2) solving Gap-Greater-Than with this probability requires a message of size
it must be that , and hence , sends a message of this size.
Now, as the final step, we verify that the total number of coins constructed is at most
completing the proof. ■
The Lower Bound
We now prove Theorem 1.2.
Theorem 1.2. Any (potentially randomised) one-way two-player communication protocol for with success probability , for any , must communicate bits.
We note that it suffices to only consider the range of , since this regime of already implies the optimal lower bound. Additionally, we may also assume , as larger error probabilities only yield the trivial lower bound.
We now set up the proof of Theorem 1.2. By Yao’s Lemma, it suffices to consider an arbitrary deterministic protocol that uses bits of communication and errs with probability under the specified input distribution. We assume that both Alice and Bob receive exactly coins, and let denote the respective differences between the number of heads and tails they hold, where denotes the shifted binomial distribution. We make two simplifications that significantly ease the exposition. First, instead of computing , we see that the players only need to decide whether or . Noting that and follow identical distributions, they can instead try to decide whether or . Second, we assume that Alice’s message depends only on , i.e., Alice’s message is governed by a function . In the original setting, this may not hold; for example, Alice may send different messages when her two coins are and , despite having the same value of . Nevertheless, this assumption does not affect the validity of our argument, but simplifies the notation greatly. As a result, Alice’s input space is partitioned into subsets corresponding to each message, namely . By our assumption, we may view them as a partition of , where each corresponds to the sum of Alice’s coins in its pre-image. Let denote the probability masses of these subsets respectively. For any and , we shorthand and .
We now suppose, for a contradiction, that , which implies that . Denote the collection of subsets, as induced by Alice’s message, with high masses by:
We first show that contains a significant fraction of the probability mass.
Claim 5.1. .
Proof. Consider the random variable sampled according to the distribution . Then,
By Markov’s inequality,
Therefore, with probability at least over the choice of , we have , which implies that . Hence, .
We now consider the case where both and belong to the same . We write to denote the conditional distribution of conditioned on the event that the realization lies in the subset . Since and are independent, for any such we have . Conditioned on this event and after receiving the message, Bob’s posterior view is that is distributed according to , which is identical to . Therefore, Bob’s optimal strategy is to compare against the distributional median of . In particular, Bob can proceed as follows:
Let denote the median of under the distribution .
Partition into , where
If , Bob outputs that .
If , Bob outputs that .
If , Bob outputs a uniformly random guess.
We can now use this behavior to analyse the probability that produces the correct output.
Claim 5.2. Suppose that . Then, .
Proof. Recall our assumption that and . Since , we have . Therefore,
where the second inequality follows from the fact that via Corollary 2.6. Consequently, we also have
Next, we bound the probability that . It follows that
Here, the second inequality, again, follows from Corollary 2.6, together with . Combining all the bounds above, we obtain
as desired. ■
We now wrap up the proof of Theorem 1.2.
Proof of Theorem 1.2. Conditioned on the event and , Bob errs with probability . To see this, consider the symmetric event where Alice and Bob’s inputs are swapped. This event occurs with the same probability and induces exactly the same execution of the protocol, yet the correct output is reversed. Therefore, at least one of the two executions must result in an error. Using this observation, we can write
Finally, since we assumed that , the above inequality implies that , which contradicts our assumption that (using ). Therefore, we must have which completes the proof of Theorem 1.2. ■
The Upper bound
We now prove our algorithmic result, Theorem 1.3. We remark that, whilst, on a high level, the proof follows the approach outlined in Section 1.2, implementing this approach boils down to essentially a case distinction.
Theorem 1.3. There is a deterministic one-way two-player communication protocol for with success probability , for any , using bits of communication.
Alice’s Message. We first describe Alice’s part of the protocol and analyze the message length.
Protocol for the coin problem: Alice’s turn
Input: Alice receives many i.i.d. coin tosses, and also the error parameter .
The Protocol:
Let denote the total sum of Alice’s coins.
If , Alice sends to indicate this case, together with .
Otherwise, . Alice sends to indicate this case, together with the following information: (a) . (b) , indicating her majority element. (c) Let and . Alice computes such that the rank of under lies in the interval . She then sends to Bob.
Lemma 6.1. Alice’s message is of size bits.
Proof. We proceed with two cases.
First, if , Alice sends a single bit together with . Since is an integer with , these can be encoded together using bits.
Otherwise, if , Alice’s message indicates this with a single bit. Then, since , we have , so the binary representation of requires only bits. Moreover, which can be encoded using bits.
Therefore, the total communication cost (in either case) is bits. ■
Bob’s Side. We now describe Bob’s side of the protocol.
Protocol for the coin problem: Bob’s turn
Input: Bob receives many i.i.d. coin tosses, the error parameter , and also Alice’s message.
The Protocol:
Let denote the total sum of Bob’s coins.
If Bob receives from Alice, then he also receives the exact value of . In this case, he outputs .
Otherwise, Bob receives from Alice confirming , and then proceeds as follows: (a) If , he outputs . (b) Otherwise, we have and . Bob then computes . i. If , Bob outputs his own majority, denoted by . ii. If , Bob outputs Alice’s majority . iii. Otherwise, we have . Bob reconstructs and sets . He computes such that the rank of under lies within . Bob then computes the output as follows: A. If , Bob answers “”. B. If , Bob answers “”. C. If , Bob outputs a uniform random guess.
All that remains is to analyze the correctness of this protocol. This follows by combining Claims 6.2, 6.3, 6.4, and 6.5, each of which correspond to one of the possible ways in which Bob produces his output. Together, these claims imply that the protocol fails with probability at most , for some universal constant . Then, rescaling the error parameter by setting yields a protocol with the desired error-rate .
Claim 6.2. Suppose . Then Bob’s output in Step 2 is always correct.
Proof. If , Bob is informed of this fact and receives the exact value of . Since he also knows , he can compute exactly and therefore always outputs the correct answer. ■
Claim 6.3. Suppose and . Then Bob’s output in Step 3(a) errs with probability .
Proof. The probability that is
where the first inequality follows from Fact 2.5.
Therefore, with probability at least , we have . Since , we must have . Using Fact 2.1, Alice’s output must be correct.
Claim 6.4. Suppose and . If , Bob’s answer in Step 3(b)(i) errs with probability . Similarly, if , Bob’s answer in Step 3(b)(ii) errs with probability .
Proof. Assume that . This means . Then, Bob’s answer is wrong if and only if . Using Lemma 3.1, this occurs with probability at most . The symmetric case of can be shown analogously.
Claim 6.5. Suppose , , and . Then Bob’s output in Step 3(b)(iii) errs with probability .
Proof. We first show that Bob is always correct if he enters Step 3(b)(iii)(A) with . Consider
Hence , so Bob’s output is always correct. An analogous argument shows that Bob is also always correct if he enters Step 3(b)(iii)(B) with .
It remains to analyze Step 3(b)(iii)(C), where . In this case, Bob might err, but we will show that Bob only enters this case with probability which then concludes the proof. Specifically, fix any . We will show that where the probability is over the randomness of Bob’s coins.
Since and , we have
In other words, we have
Let denote the interval corresponding to the quantile range of . By the width of this range, we have
Moreover, we have
where the first two inequalities follow from Fact 2.4 and the fact that . Finally, by Fact 2.3, we have
Combining all inequalities, we shall have , completing the proof. ■
Round-Communication Tradeoffs of the Coin Problem
In this section, we prove our multi-round tradeoffs, Theorem 1.4.
Theorem 1.4. There is a deterministic -round two-player communication protocol for that succeeds with probability at least using bits of communication.
Conversely, every (possibly randomized) -round two-player communication protocol for that succeeds with probability at least must communicate bits.
Round-Communication Tradeoff of Greater-Than
As before, our starting point is the Greater-Than communication problem.
Definition 7.1 (Greater-Than). Let be a positive integer. In the Greater-Than problem, Alice and Bob are given respectively, and must determine whether .
We use the following upper bound, but defer its proof to Appendix B. To simplify the proof, we show a protocol that succeeds with probability . However, it can also be made to succeed with any constant probability.
Lemma 7.2. For any , there is a randomized -round two-player communication protocol for Greater-Than that succeeds with probability at least using bits of communication.
We also note the following near-matching lower bound.
Theorem 7.3 ([SV08]). Let . Any -round randomized protocol for Greater-Than that succeeds with probability at least must communicate at least bits.
As before, we will also use the related Gap-Greater-Than problem. The same lower bound also holds for this variant via a reduction similar to that in Appendix A. We omit this proof for brevity.
Corollary 7.4. Let . Any -round randomized protocol for Gap-Greater-Than that succeeds with probability at least must communicate at least bits.
Completing the Proof
We are now ready to prove Theorem 1.4.
Proof of Theorem 1.4. For the lower bound, observe that the reduction in Section 4 preserves the number of communication rounds. Consequently, any -round protocol for immediately yields an -round protocol for Gap-Greater-Than with the same communication complexity. Then, invoking Corollary 7.4 gives the lower bound. For the upper bound, we modify the protocol from § 6 taken with . Observe that the protocol remains correct provided the players can distinguish among the three cases , , or in Line 3(b)(iii). We claim that this can be accomplished with error at most using rounds and bits of communication. Indeed, the players simply invoke the -round protocol for Greater-Than (Lemma 7.2) twice in parallel: once to compare with , and once to compare with . By the union bound, the probability that either comparison is incorrect is at most . Since and are both bounded by , the total communication is bits.
The remainder of the protocol is identical to that of the one-way protocol, and the correctness analysis is unchanged. In particular, in the final round, the players still also communicate extra information using bits of communication, corresponding to the case where they hold similar numbers of coins. The total error probability is therefore at most . Hence the resulting protocol succeeds with probability at least . Finally, although our protocol is randomized, it can be made deterministic by fixing its internal randomness for which it remains successful with probability over the distribution of the coin tosses. ■
Again, we remark that by choosing appropriately, this bound can be made to work across a suitable range of constant error-rates.
The Hardness of Gap-Greater-Than
For completeness, we now prove Theorem 4.2, but stress that we consider this to be folklore, and do not claim it to be novel.
Theorem 4.2. Any (potentially randomised) one-way two-player communication protocol which solves Gap-Greater-Than with probability at least , for any constant , must send a message of size *.
Our starting point is the canonical Augmented-Index two-player communication game.
Definition A.1. In the Augmented-Index communication game, Alice is given a uniform random bit string , Bob is given a uniform random together with for all , and the goal is to output *.
The one-way communication complexity of this problem is well known.
Theorem A.2. [MNSW95] Any (potentially randomised) one-way communication protocol which solves Augmented-Index with probability , for any constant , must send a message of size *.
Proof of Theorem 4.2
We now prove Theorem 4.2. During this proof, it will be useful to think of the zeroth bit of a bit-string as the most significant bit when interpreted as a binary number.
Let denote any (potentially randomised) protocol which solves Gap-Greater-Than with probability . Our proof proceeds through a standard reduction from Augmented-Index to Gap-Greater-Than. Suppose that Alice and Bob begin with an instance of Augmented-Index. To begin, Alice constructs a number whose binary representation contains bits, given by
Alice then runs on this input , and sends the resulting message to Bob.
Next, Bob uses their inputs, and , to construct the number corresponding to the bit string defined by
Bob then uses the message to continue running on before producing an output as follows: if reports , then Bob outputs , and otherwise outputs .
We see that both and are upper bounded by , since they have binary representations of length . We also see that , as required, since for all , whilst .
We now analyse Bob’s success probability in this reduction.
Claim A.3. If , then , and otherwise with probability over the randomness of .
Proof. By construction, , and all more significant bits between and are identical, so it is clear that if , then .
Otherwise, it must be that , and so the only differing bits in the binary representations of and must be less significant than this one. Then, since all such bits are set to zero in the construction of , as long as at least one of these bits is set to one in , which occurs with probability .
Now, we turn to see that
Next, by the uniform distribution of , we see that
Then, conditioning on this,
Thus, we can write
and so
(For sufficiently large .)
Now, finally, using that is a uniform random bit, we can combine these to write
which is a constant greater than . Therefore, by Theorem A.2, it must have been that the protocol, and thus , sent a message of size .
Bounded-Round Protocol for Greater-Than
We now prove Lemma 7.2 for completeness.
Lemma 7.2. For any , there is a randomized -round two-player communication protocol for Greater-Than that succeeds with probability at least using bits of communication.
Proof. Let . Alice and Bob first interpret their inputs as -bit strings. Their objective is to identify the first location (i.e. most significant) at which their strings differ.
Initially, there are possible locations for the first difference. The goal of each round is to narrow it down to possible locations. After rounds, only a single location remains after which the players answer.
For the first round, players partition the locations into consecutive blocks of size . Using public randomness, Alice and Bob agree on independent uniform hash functions mapped to . For every block , Alice sends the -th hash of her -th block to Bob. Bob then performs the “equality tests” by comparing them to the hashes of his own blocks, and identifies the first block whose hashes differ. In the second round, Alice and Bob recurse on this block with their roles reversed. This continues for rounds until there is only possible location remaining. We now analyze the success probability. Each equality test is one-sided. If Alice and Bob have the same string, they always pass. And if they have different strings, they will fail the test with probability . Let denote the first location at which Alice’s and Bob’s inputs differ. The protocol is correct provided that, in every round, the block containing location “correctly” fails the test. Since there is one relevant equality test per round, the union bound implies that this event occurs with probability at least 0.999.
Finally, observe that there are a total of equality tests. Each one costs bits of communication. As , the total communication is as wished. ■
References
- [1][AAHNY24] Ishaq Aden-Ali, Yanjun Han, Jelani Nelson, and Huacheng Yu. On the Amortized Complexity of Approximate Counting. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2024), volume 317 of Leibniz International Proceedings in Informatics (LIPIcs), pages 33:1–33:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024.
- [2][BBS22] Gavin Brown, Mark Bun, and Adam Smith. Strong memory lower bounds for learning natural models. In Conference on Learning Theory, pages 4989–5029. PMLR, 2022.arxiv.org/abs/2206.04743
- [3][BGL+24] Mark Braverman, Sumegha Garg, Qian Li, Shuo Wang, David P. Woodruff, and Ji-apeng Zhang. A new information complexity measure for multi-pass streaming with applications. In 56th Annual ACM Symposium on Theory of Computing, STOC 2024, page 1781–1792. ACM, 2024.arxiv.org/abs/2403.20283
- [4][BGW20] Mark Braverman, Sumegha Garg, and David P. Woodruff. The coin problem with applications to data streams. In 2020 ieee 61st annual symposium on foundations of computer science (FOCS), pages 318–329. IEEE, 2020.DOI
- [5][BV10] Joshua Brody and Elad Verbin. The coin problem and pseudorandomness for branching programs. In 2010 IEEE 51st Annual Symposium on Foundations of Computer Science, pages 30–39. IEEE, 2010.DOI
- [6][CCM08] Amit Chakrabarti, Graham Cormode, and Andrew McGregor. Robust lower bounds for communication and stream computation. In Proceedings of the fortieth annual ACM symposium on Theory of computing, pages 641–650, 2008.
- [7][CGR14] Gil Cohen, Anat Ganor, and Ran Raz. Two sides of the coin problem. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2014), pages 618–629. Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2014.DOI