Logo

Two-Party Model

Deterministic Two-party Bounds

We claim that TRAV2\mathsf{TRAV}_2 is at least as hard as two-player equality:

Claim. Recall that equality EQ\mathsf{EQ} has inputs x,y{0,1}nx,y \in \{0,1\}^n, and EQ(x,y)=1\mathsf{EQ}(x,y)=1 iff x=yx=y. Then D(TRAV2)D(EQ)D(\mathsf{TRAV}_2)\geq D(\mathsf{EQ}), and more generally TRAV2\mathsf{TRAV}_2 is at least as hard as EQ\mathsf{EQ}.

The high-level idea of the following proof is to construct an equality gadget that lets us embed EQ\mathsf{EQ} into TRAV2\mathsf{TRAV}_2. That is, given xx and yy as inputs of EQ\mathsf{EQ}, we can convert these into subgraphs G1G_1 and G2G_2, inputs of TRAV2\mathsf{TRAV}_2. We convert this in such a way that TRAV2(G1,G2)=1\mathsf{TRAV}_2(G_1, G_2)=1 if and only if EQ(x,y)=1\mathsf{EQ}(x,y)=1. Then TRAV2\mathsf{TRAV}_2 cannot use less communication than the optimal EQ\mathsf{EQ} protocol, else we get a contradiction.

Proof. Equality gadget. We construct a gadget that enforces equality at a single bit position at index ii of xx and yy, for i[n]i \in [n]. The gadget is shown below and consists of two parallel branches:

  • The top branch corresponds to the assignment xi=yi=1x_i=y_i=1.
  • The bottom branch corresponds to the assignment xi=yi=0x_i=y_i=0.
Equality gadget for a single index

Add LiL_i and RiR_i into GAG_A and GBG_B. Then, add ownership of xi=1x_i = 1 to GAG_A if xi=1x_i = 1 is true, else add xi=0x_i = 0. Do the same for Bob and yiy_i. Then a path from LiL_i to RiR_i exists if and only if Alice and Bob have vertices on the same branch, which holds exactly when xi=yix_i = y_i.

Embedding EQ\mathsf{EQ} into TRAV2\mathsf{TRAV}_2. Construct a graph of nn equality gadgets in a chain. We do this by setting Rl=Ll+1R_l=L_{l+1} for l[n1]l \in [n-1]. Construct subgraph GAG_A as follows: include all vertices LiL_i and RiR_i for i[n]i \in [n]. Also, for every i[n]i \in [n], give GAG_A ownership of the vertex labeled xi=1x_i=1 if this is true, else xi=0x_i=0. Repeat for GBG_B and yy.

In the resulting graph, set v=L1v = L_1 as the start vertex vv, and w=Rnw = R_n as the end vertex. Then there exists a path from vv to ww if and only if all gadgets are traversable, which occurs if and only if xi=yix_i = y_i for all i[n]i \in [n], and therefore if and only if x=yx = y.

Chain of equality gadgets

We conclude by noting that the resulting graph GG has Θ(n)\Theta(n) vertices and Θ(n)\Theta(n) edges. As x=y=Θ(n)|x|=|y|=\Theta(n), this completes the reduction and TRAV2\mathsf{TRAV}_2 is at least as hard as EQ\mathsf{EQ}.

The trivial protocol where Alice sends all of GAG_A to Bob has communication complexity Θ(n)\Theta(n). Therefore, D(TRAV2)=O(n)D(\mathsf{TRAV}_2)=O(n). Together with the Equality Claim, this gives D(TRAV2)=Θ(n)D(\mathsf{TRAV}_2)=\Theta(n). Thus TRAV2\mathsf{TRAV}_2 is deterministically maximally hard.

Randomized Two-Party Bounds

Above, we note that the problem is deterministically maximally hard. In many cases, allowing for some error may allow us to produce a randomized algorithm with lower communication complexity.

Consider the public coin randomness model. In this model, both parties have access to the same random bit-string in addition to the problem description and input. This random bit string can be as long as we want. We also allow our output to error, that is, be incorrect, some bounded constant percent of the time, and strictly less than half the time. It can be shown that using the public coin randomness model, equality, which is deterministically maximally hard, can be reduced to being O(1)O(1). We can denote the randomized communication complexity of equality by R(EQ)=O(1)R(\mathsf{EQ})=O(1).

Unfortunately, for TRAV2\mathsf{TRAV}_2 we find that such a bound is unattainable. To prove this, we introduce the disjointness problem DISJ\mathsf{DISJ}, which has public coin randomized communication complexity R(DISJ)=Θ(n)R(\mathsf{DISJ})=\Theta(n). As we show, DISJ\mathsf{DISJ} can be embedded into TRAV2\mathsf{TRAV}_2.

Definition. Define the disjointness problem as follows: let x,y{0,1}nx,y \in \{0,1\}^n be nn-bit strings representing subsets of [n][n]. Then, for all i[n]i \in [n], if xi=1x_i=1, we say ii is in Alice’s subset SA[n]S_A \subseteq [n], and if xi=0x_i=0 it is not. Similarly for yy and Bob. Then DISJ(x,y):{0,1}n×{0,1}n{0,1}\mathsf{DISJ}(x,y):\{0,1\}^n \times \{0,1\}^n \to \{0,1\}, where DISJ(x,y)=1\mathsf{DISJ}(x,y)=1 if SASB=S_A \cap S_B=\emptyset, and DISJ(x,y)=0\mathsf{DISJ}(x,y)=0 if SASBS_A \cap S_B\neq\emptyset. It is well-known that D(DISJ)=Θ(n)D(\mathsf{DISJ})=\Theta(n) and R(DISJ)=Θ(n)R(\mathsf{DISJ})=\Theta(n).

Claim. We claim R(TRAV2)R(DISJ)R(\mathsf{TRAV}_2)\geq R(\mathsf{DISJ}), and more generally TRAV2\mathsf{TRAV}_2 is at least as hard as DISJ\mathsf{DISJ}.

Proof. Disjointness gadget. We construct a gadget that enforces disjointness at a single entry i[n]i \in [n]. There, let xix_i and yiy_i be indicator functions that equal 1, respectively, when iSAi \in S_A and iSBi \in S_B, else equal 0. Then:

  • The top branch corresponds to when iSAi \in S_A but iSBi \notin S_B.
  • The middle branch corresponds to when iSAi \notin S_A and iSBi \notin S_B.
  • The bottom branch corresponds to when iSBi \in S_B but iSAi \notin S_A.

Give LiL_i and RiR_i to both GAG_A and GBG_B. Then give ownership of vertices labelled xi=1x_i = 1 to GAG_A if this is true, else give all vertices labelled xi=0x_i = 0. Do the same with yy and GBG_B. Therefore, there is no path LiL_i to RiR_i if iXYi \in X \cap Y, but there is a path in all other cases.

Disjointness gadget for a single index

Embedding DISJ\mathsf{DISJ} into TRAV2\mathsf{TRAV}_2. We construct a graph GG by chaining nn copies of the disjointness gadget. More precisely, set Rl=Ll+1R_l=L_{l+1} for l[n1]l \in [n-1]. Then, set v=L1v=L_1 as the start vertex and w=Rnw=R_n as the end vertex. Construct GAG_A by giving ownership of all vertices LiL_i, RiR_i and vertices labeled xi=1x_i=1 if it is true, else xi=0x_i=0, for i[n]i \in [n]. Do similarly for GBG_B.

In the resulting graph, there exists a path from vv to ww if and only if all disjointness gadgets are traversable, which occurs if and only if XY=X \cap Y = \emptyset.

Chain of disjointness gadgets

We conclude by noting that V(G)=Θ(n)|V(G)|=\Theta(n) and E(G)=Θ(n)|E(G)|=\Theta(n). As x=y=Θ(n)|x|=|y|=\Theta(n), this completes the reduction and TRAV2\mathsf{TRAV}_2 is at least as hard as DISJ\mathsf{DISJ}.

Recall that in the equality embedding, we showed that D(TRAV2)=Θ(n)D(\mathsf{TRAV}_2)=\Theta(n). With disjointness, we show that R(TRAV2)=Θ(n)R(\mathsf{TRAV}_2)=\Theta(n) too. This is because the disjointness embedding gives R(TRAV2)=Ω(n)R(\mathsf{TRAV}_2)=\Omega(n), since R(DISJ)=Θ(n)R(\mathsf{DISJ})=\Theta(n). Then, the trivial protocol where Alice sends her entire GAG_A to Bob in Θ(n)\Theta(n) bits works even in the public coin randomness model. Together this gives R(TRAV2)=Θ(n)R(\mathsf{TRAV}_2)=\Theta(n). In other words, we cannot do much better even with bounded error.

Specialized Two-Party Bounds

The previous proofs show that TRAV2\mathsf{TRAV}_2 is maximally complicated in terms of deterministic communication complexity and public randomized communication complexity. A natural follow-up question is whether we can do better. That is, given some additional constraints, can we solve the problem with reduced communication complexity?

Definition. Define the CTRAV2\mathsf{CTRAV}_2 problem as a TRAV2\mathsf{TRAV}_2 problem where GAG_A and GBG_B are guaranteed to be connected subgraphs of GG.

Claim. CTRAV2\mathsf{CTRAV}_2 is at least as hard as DISJ\mathsf{DISJ}. Thus, D(CTRAV2)=Θ(n)D(\mathsf{CTRAV}_2)=\Theta(n) and R(CTRAV2)=Θ(n)R(\mathsf{CTRAV}_2)=\Theta(n).

Proof. Let x,yx,y be inputs of Alice and Bob to the DISJ\mathsf{DISJ} problem. We construct a graph GG as follows: give ownership of vv and all vertices labeled aia_i and ii if xi=1x_i=1, for i[n]i \in [n]. Similarly for ww, GBG_B, and yy. Then if there is a path from vv to ww, this means there exists some i[n]i \in [n] such that xi=yi=1x_i=y_i=1. This means that SASBS_A \cap S_B \neq \emptyset. On the other hand, if there is no path from vv to ww, then for all i[n]i \in [n], either xi=0x_i=0 or yi=0y_i=0.

Connected-subgraph gadget for CTRAV2

We note that V(GA)=V(GB)=x=y=Θ(n)|V(G_A)|=|V(G_B)|=|x|=|y|=\Theta(n). Furthermore, GAG_A and GBG_B are connected subgraphs of GG. This completes the reduction.

Informally, this tells us that even when GAG_A and GBG_B are connected subgraphs, we do not immediately get better bounds and the problem does not become significantly easier. We now consider a sparser case:

Definition. Define STRAV2\mathsf{STRAV}_2 as a TRAV2\mathsf{TRAV}_2 problem where E(G)=O(n)E(G)=O(n), E(GA)=O(n)E(G_A)=O(n), and E(GB)=O(n)E(G_B)=O(n). In other words, the graph GG is sparse and GAG_A, GBG_B are sparse too.

Claim. STRAV2\mathsf{STRAV}_2 is at least as hard as DISJ\mathsf{DISJ}. Thus, D(STRAV2)=Θ(n)D(\mathsf{STRAV}_2)=\Theta(n) and R(STRAV2)=Θ(n)R(\mathsf{STRAV}_2)=\Theta(n).

Proof. We reuse the reduction from DISJ\mathsf{DISJ} to TRAV2\mathsf{TRAV}_2 in the disjointness embedding. In that construction, GG is a chain of nn disjointness gadgets, so E(G)=Θ(n)|E(G)|=\Theta(n). Moreover, each player’s subgraph consists of the gadget boundary vertices and one branch choice per gadget, which also gives E(GA)=Θ(n)|E(G_A)|=\Theta(n) and E(GB)=Θ(n)|E(G_B)|=\Theta(n).

Hence every instance produced by that reduction already satisfies the sparsity constraints in the definition of STRAV2\mathsf{STRAV}_2. The reduction still preserves correctness: DISJ(x,y)=1\mathsf{DISJ}(x,y)=1 iff there is a vv to ww path in GAGBG_A \cup G_B. Therefore STRAV2\mathsf{STRAV}_2 is at least as hard as DISJ\mathsf{DISJ}.

Informally, this tells us that weak edge sparsity of GG, GAG_A, and GBG_B does not add nor remove significant communication cost. Combined with the connected-subgraph claim, this suggests that the local structure of GG, GAG_A, and GBG_B, namely how sparse or connected the edges corresponding to the owned vertices are, does not have a significant impact on the deterministic and public randomized communication complexity of TRAV2\mathsf{TRAV}_2.