encyclopegia.org

Gap-Hamming problem

In communication complexity, the gap-Hamming problem asks, if Alice and Bob are each given a (potentially different) string, what is the minimal number of bits that they need to exchange in order for Alice to approximately compute the Hamming distance between their strings. The solution to the problem roughly states that, if Alice and Bob are each given a string, then any communication protocol used to compute the Hamming distance between their strings does (asymptotically) no better than Bob sending his whole string to Alice. More specifically, if Alice and Bob are each given n -bit strings, there exists no communication protocol that lets Alice compute the hamming distance between their strings to within \pm\sqrt{n} using less than \Omega(n) bits. The gap-Hamming problem has applications to proving lower bounds for many streaming algorithms, including moment frequency estimation and entropy estimation.

In communication complexity, the gap-Hamming problem asks, if Alice and Bob are each given a (potentially different) string, what is the minimal number of bits that they need to exchange in order for Alice to approximately compute the Hamming distance between their strings. The solution to the problem roughly states that, if Alice and Bob are each given a string, then any communication protocol used to compute the Hamming distance between their strings does (asymptotically) no better than Bob sending his whole string to Alice. More specifically, if Alice and Bob are each given n -bit strings, there exists no communication protocol that lets Alice compute the hamming distance between their strings to within \pm\sqrt{n} using less than \Omega(n) bits. The gap-Hamming problem has applications to proving lower bounds for many streaming algorithms, including moment frequency estimation and entropy estimation. \operatorname{GHD}(x, y) = \begin{cases} +1 & D_H(x, y) \ge \frac{n}{2} + \sqrt{n}\\ -1 & D_H(x, y) \le \frac{n}{2} - \sqrt{n}\\ & \text{otherwise}, \end{cases} using the least amount of communication possible. Here, * indicates that Alice can return either of \pm 1 and D_H(x, y) is the Hamming distance between x and y . In other words, Alice needs to return whether Bob's string is significantly similar or significantly different from hers while minimizing the number of bits she exchanges with Bob. The problem's solution states that computing \operatorname{GHD} requires at least \Omega(n) communication. In particular, it requires \Omega(n) communication even when x and y are chosen uniformly at random from \{\pm 1\}^n .

References

No reference rows published for this article.

Cite this article

MLA

"Gap-Hamming problem." encyclopegia.org, 2026, https://encyclopegia.org/wiki/gap-hamming-problem. Accessed 24 November 2026.

Chicago

"Gap-Hamming problem." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/gap-hamming-problem.

APA

encyclopegia.org. (2026). Gap-Hamming problem. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/gap-hamming-problem

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

promise problem

stub · references available

two emperor problem

stub · references available

Cyprus problem

stub · references available

symbol grounding problem

stub · references available

air gap

stub · references available

canton of Gap-Campagne

stub · references available

The Three-Body Problem

stub · references available

many-body problem

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1359402490 · 0.5 · snapshot enwiki-001359402490

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.