ArticleslgStudy

computer science

Averaging argument

Averaging argument is a computer science 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 Averaging argument rather than just read about it. In short: In computational complexity theory and cryptography, averaging argument is a standard argument for proving theorems. It usually allows us to convert probabilistic polynomial-time algorithms into non-uniform polynomial-size circuits.

Key takeaways

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

Reference excerpt

In computational complexity theory and cryptography, averaging argument is a standard argument for proving theorems. It usually allows us to convert probabilistic polynomial-time algorithms into non-uniform polynomial-size circuits.

Example Example: If every person likes at least 1/3 of the books in a library, then the library has a book, which at least 1/3 of people like. Proof: Suppose there are N people and B books. Each person likes at least B/3 of the books. Let people leave a mark on the book they like. Then, there will be at least M=(NB)/3 marks. The averaging argument claims that there exists a book with at least N/3 marks on it. Assume, to the contradiction, that no such book exists. Then, every book has fewer than N/3 marks. However, since there are B books, the total number of marks will be fewer than (NB)/3, contradicting the fact that there are at least M marks. ◼

Formalized definition of averaging argument Let X and Y be sets, let p be a predicate on X × Y and let f be a real number in the interval [0, 1]. If for each x in X and at least f |Y| of the elements y in Y satisfy p(x, y), then there exists a y in Y such that there exist at least f |X| elements x in X that satisfy p(x, y). There is another definition, defined using the terminology of probability theory. Let f be some function. The averaging argument is the following claim: if we have a circuit C such that C(x,y)=f(x) with probability at least ρ, where x is chosen at random and y is chosen independently from some distribution Y over {0,1}m (which might not even be efficiently sampleable) then there exists a single string y0∈{0,1}m such that Prx[C(x,y0)=f(x)]≥ρ. Indeed, for every y define py to be Prx[C(x,y)=f(x)] then

Prx,y[C(x,y)=f(x)]=Ey[py] and then this reduces to the claim that for every random variable Z, if E[Z]≥ρ then Pr⁡[Z≥ρ]>0 (this holds since E[Z] is the weighted average of Z and clearly if the average of some values is at least ρ then one of the values must be at least ρ).

Application This argument has wide use in complexity theory (e.g. proving 𝖡𝖯𝖯⊊𝖯/𝗉𝗈𝗅𝗒) and cryptography (e.g. proving that indistinguishable encryption results in semantic security). A plethora of such applications can be found in Goldreich's books.

References

Worked examples

Example 1 — a first encounter with Averaging argument

Start with the simplest possible case. Write down what Averaging argument claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, 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 Averaging argument 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 Averaging argument 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 Averaging argument

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

How to study Averaging argument in 20 minutes

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

Frequently asked questions

What is Averaging argument in simple terms?

In computational complexity theory and cryptography, averaging argument is a standard argument for proving theorems. It usually allows us to convert probabilistic polynomial-time algorithms into non-uniform polynomial-size circuits.

Why does Averaging argument matter?

Because it connects several computer science 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 Averaging argument?

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 Averaging argument.

Tags

  • Circuit complexity
  • Computational complexity theory
  • Randomized algorithms
  • Theory of cryptography

Keep exploring