Documentation

CslibFrontier.Computability.Communication.CliqueIndependentSet

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 #

References #

theorem Cslib.Communication.ecomplexity_clique_indepSet_le {V : Type u_1} [Fintype V] [DecidableEq V] (G : SimpleGraph V) :
Protocol.ecomplexity (fun (C I : Finset V) (z : ℕ) => z = (C ∩ I).card) {C : Finset V | G.IsClique ↑C} {I : Finset V | G.IsIndepSet ↑I} ≤ ↑(3 * (Nat.log 2 (Fintype.card V) + 1) ^ 2)

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.