Clique versus independent set: Yannakakis' O(log² n) protocol #
Fix a graph G on n vertices. Alice holds a clique C of G, Bob holds an independent set I,
and they must determine |C ∩ I|. This number is 0 or 1, since two common vertices would be
both adjacent and non-adjacent. This module proves that O(log² n) bits suffice, uniformly in
G ([AB07], Chapter 12, Exercise 8).
The players keep a set W of vertices that contains C ∩ I. In each phase, Alice names a vertex
v ∈ C ∩ W with at most |W| / 2 neighbours in W, if there is one, and Bob says whether
v ∈ I. If not, every common vertex lies in the clique C and differs from v, so it is a
neighbour of v, and W shrinks to the neighbours of v in W. If Alice has no eligible vertex,
Bob announces a vertex u ∈ I ∩ W with at most |W| / 2 non-neighbours in W \ {u}, if there is
one, and Alice says whether u ∈ C. If not, every common vertex is a non-neighbour of u. If
neither player can announce a vertex, then C ∩ I ∩ W is empty: the neighbours and the
non-neighbours of a common vertex w in W are disjoint subsets of W, so one of the two counts
is at most |W| / 2 and w would have been eligible. Each phase halves W, so ⌊log₂ n⌋ + 1
phases of 2 ⌈log₂ (n + 1)⌉ + 1 bits suffice.
Main results #
Cslib.Communication.ecomplexity_clique_indepSet_le: the communication complexity of computing|C ∩ I|on cliques × independent sets is at most3 (⌊log₂ n⌋ + 1)².
References #
- S. Arora and B. Barak, Computational Complexity: A Modern Approach, web draft 2007-01-08, Chapter 12, Exercise 8 (printed p. 232 / PDF p. 248).
Clique versus independent set (Yannakakis; [AB07], Chapter 12, Exercise 8):
for every graph G on n vertices, if Alice holds a clique C and Bob an independent set I,
they can determine |C ∩ I| with at most 3 (⌊log₂ n⌋ + 1)² bits. This is O(log² n),
uniformly in G. The communication complexity is that of the relation "output |C ∩ I|" on
cliques × independent sets, with deterministic protocol trees whose output both players know.