ArticleslgStudy

physics

Communication complexity

Communication complexity 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 Communication complexity rather than just read about it. In short: In theoretical computer science, communication complexity studies the amount of communication required to solve a problem when the input to the problem is distributed among two or more parties. The study of communication complexity was first introduced by Andrew Yao in 1979, while studying the problem of computation distributed among several machines.

Communication complexity — main illustration
Communication complexity — illustration

Key takeaways

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

Reference excerpt

In theoretical computer science, communication complexity studies the amount of communication required to solve a problem when the input to the problem is distributed among two or more parties. The study of communication complexity was first introduced by Andrew Yao in 1979, while studying the problem of computation distributed among several machines. The problem is usually stated as follows: two parties (traditionally called Alice and Bob) each receive a (potentially different) n-bit string x and y. The goal is for Alice to compute the value of a certain function, f(x,y), that depends on both x and y, with the least amount of communication between them. While Alice and Bob can always succeed by having Bob send his whole n-bit string to Alice (who then computes the function f), the idea here is to find clever ways of calculating f with fewer than n bits of communication. Note that, unlike in computational complexity theory, communication complexity is not concerned with the amount of computation performed by Alice or Bob, or the size of the memory used, as we generally assume nothing about the computational power of either Alice or Bob. This abstract problem with two parties (called two-party communication complexity), and its general form with more than two parties, is relevant in many contexts. In VLSI circuit design, for example, one seeks to minimize energy used by decreasing the amount of electric signals passed between the different components during a distributed computation. The problem is also relevant in the study of data structures and in the optimization of computer networks. For surveys of the field, see the textbooks by Rao & Yehudayoff (2020) and Kushilevitz & Nisan (2006).

Formal definition Let f:X×Y→Z where we assume in the typical case that X=Y={0,1}n and Z={0,1}. Alice holds an n-bit string x∈X while Bob holds an n-bit string y∈Y. By communicating to each other one bit at a time (adopting some communication protocol that is agreed upon in advance), Alice and Bob wish to compute the value of f(x,y) such that at least one party knows the value at the end of the communication. At this point the answer can be communicated back so that at the cost of one extra bit, both parties will know the answer. The worst case communication complexity of this communication problem of computing f, denoted as D(f), is then defined to be

D(f)= minimum number of bits exchanged between Alice and Bob in the worst case. As observed above, for any function f:{0,1}n×{0,1}n→{0,1}, we have D(f)≤n. Using the above definition, it is useful to think of the function f as a matrix A (called the input matrix or communication matrix) where the rows are indexed by x∈X and columns by y∈Y. The entries of the matrix are Ax,y=f(x,y). Initially both Alice and Bob have a copy of the entire matrix A (assuming the function f is known to both parties). Then the problem of computing the function value can be rephrased as "zeroing-in" on the corresponding matrix entry. This problem can be solved if either Alice or Bob knows both x and y. At the start of communication, the number of choices for the matrix position corresponding to the inputs is the size of matrix, i.e. 22n. Then, as and when each party communicates a bit to the other, the number of choices for the position reduces, as this eliminates a set of rows/columns, resulting in a submatrix of A. More formally, a set R⊆X×Y is called a (combinatorial) rectangle if whenever (x1,y1)∈R and (x2,y2)∈R then (x1,y2)∈R. Equivalently, R is a combinatorial rectangle if it can be expressed as R=M×N for some M⊆X and N⊆Y. Consider the case when k bits are already exchanged between the parties. Now, for a particular h∈{0,1}k, let us define a matrix

Th={(x,y): the k-bits exchanged on input (x,y) is h} Then Th⊆X×Y, and it is not hard to show that Th is a combinatorial rectangle in A.

Example: EQ We consider the case where Alice and Bob try to determine whether or not their input strings are equal. Formally, define the Equality function, denoted EQ:{0,1}n×{0,1}n→{0,1}, by EQ(x,y)=1 if x=y. As we demonstrate below, any deterministic communication protocol solving EQ requires n bits of communication in the worst case. As a warm-up example, consider the simple case of x,y∈{0,1}3. The equality function in this case can be represented by the matrix below. The rows represent all the possibilities of x, the columns those of y.

In this table, the function only evaluates to 1 when x equals y (i.e., on the diagonal). It is also fairly easy to see how communicating a single bit divides someone's possibilities in half. When the first bit of y is 1, consider only half of the columns (where y can equal 100, 101, 110, or 111).

Theorem: D(EQ) = n Proof. Assume that D(EQ)≤n−1. This means that there exists x≠x′ such that (x,x) and (x′,x′) have the same communication transcript h. Since this transcript defines a rectangle, f(x,x′) must also be 1. By definition x≠x′ and we know that equality is only true for (a,b) when a=b. This yields a contradiction. This technique of proving deterministic communication lower bounds is called the fooling set technique.

Randomized communication complexity In the above definition, we are concerned with the number of bits that must be deterministically transmitted between two parties. If both the parties are given access to a random number generator, can they determine the value of f with much less information exchanged? Yao, in his seminal paper answers this question by defining randomized communication complexity. A randomized protocol R for a function f has two-sided error.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Communication complexity

Start with the simplest possible case. Write down what Communication complexity 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 Communication complexity 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 Communication complexity 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 Communication complexity

In research
Communication complexity 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 Communication complexity 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
Communication complexity is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational complexity theory, Information theory, Quantum complexity theory, so understanding it makes those chapters shorter.
In everyday life
Look for Communication complexity 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 “Communication complexity” →

How to study Communication complexity in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Communication complexity 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 Communication complexity out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Communication complexity in simple terms?

In theoretical computer science, communication complexity studies the amount of communication required to solve a problem when the input to the problem is distributed among two or more parties. The study of communication complexity was first introduced by Andrew Yao in 1979, while studying the prob…

Why does Communication complexity 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 Communication complexity?

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 Communication complexity.

Tags

  • Computational complexity theory
  • Information theory
  • Quantum complexity theory

Keep exploring