ArticleslgStudy

physics

Gap-Hamming problem

Gap-Hamming problem is a physics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Gap-Hamming problem rather than just read about it. In short: 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 H…

Key takeaways

  • Gap-Hamming problem belongs to physics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Gap-Hamming problem to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Gap-Hamming problem from memory before moving on to harder problems.

Reference excerpt

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 ±n using less than Ω(n) bits. The gap-Hamming problem has applications to proving lower bounds for many streaming algorithms, including moment frequency estimation and entropy estimation.

Formal statement In this problem, Alice and Bob each receive a string, x∈{±1}n and y∈{±1}n, respectively, while Alice is required to compute the (partial) function,

GHD⁡(x,y)={+1DH(x,y)≥n2+n−1DH(x,y)≤n2−n∗otherwise, using the least amount of communication possible. Here, ∗ indicates that Alice can return either of ±1 and DH(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 GHD requires at least Ω(n) communication. In particular, it requires Ω(n) communication even when x and y are chosen uniformly at random from {±1}n.

History The gap-Hamming problem was originally proposed by Indyk and Woodruff in the early 2000s, who initially proved a linear lower bound on the one-way communication complexity of the problem (where Alice is only allowed to receive data from Bob) and conjectured a linear lower bound in the general case. The question of the infinite-round case (in which Alice and Bob are allowed to exchange as many messages as desired) remained open until Chakrabarti and Regev proved, via an anti-concentration argument, that the general problem also has linear lower bound complexity, thus settling the original question completely. This result was followed by a series of other papers that sought to simplify or find new approaches to proving the desired lower bound, notably first by Vidick and later by Sherstov, and, recently, with an information-theoretic approach by Hadar, Liu, Polyanskiy, and Shayevitz.

References

Worked examples

Example 1 — a first encounter with Gap-Hamming problem

Start with the simplest possible case. Write down what Gap-Hamming problem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In physics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Gap-Hamming problem before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Gap-Hamming problem ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Gap-Hamming problem

In research
Gap-Hamming problem appears in physics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Gap-Hamming problem in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Gap-Hamming problem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational complexity theory, Quantum complexity theory, so understanding it makes those chapters shorter.
In everyday life
Look for Gap-Hamming problem outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Gap-Hamming problem” →

How to study Gap-Hamming problem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Gap-Hamming problem means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Gap-Hamming problem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Gap-Hamming problem in simple terms?

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 prob…

Why does Gap-Hamming problem matter?

Because it connects several physics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Gap-Hamming problem?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Gap-Hamming problem.

Tags

  • Computational complexity theory
  • Quantum complexity theory

Keep exploring