Documentation

CommunicationComplexity.Functions.Equality

The equality function on n-bit strings. Returns true iff the two inputs are equal.

Equations
Instances For
    @[reducible, inline]

    The public randomness for the hashing protocol: a uniformly random hash function from n-bit strings into Fin (2 ^ k).

    Equations
    Instances For

      The deterministic communication complexity of equality is at most n + 1: Alice sends her n-bit input, Bob computes equality and sends one bit.

      When n = 0, equality has communication complexity 0: both inputs are the unique empty function, so the output is always true.

      The deterministic communication complexity of equality on n-bit strings is at least n + 1 (for n ≥ 1). Any monochromatic rectangle containing (x, x) must be {(x, x)}, so there are at least 2^n + 1 rectangles in any partition, which requires n + 1 bits.

      The exact deterministic communication complexity of equality on n-bit strings: 0 when n = 0, and n + 1 otherwise.

      The standard public-coin equality protocol from a random hash function: Alice sends h x, Bob compares it with h y, and then sends the comparison bit.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Public-coin upper bound for equality: if the hash range has size 2 ^ k and 1 / 2 ^ k < ε, then the equality protocol has communication complexity at most k + 1.

        Public-coin upper bound for equality as a direct function of ε.