The equality function on n-bit strings. Returns true iff the two inputs are equal.
Equations
- CommunicationComplexity.Functions.Equality.equality n x y = decide (x = y)
Instances For
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 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.