ArticleslgStudy

engineering

Arithmetic circuit complexity

Arithmetic circuit complexity is a engineering 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 Arithmetic circuit complexity rather than just read about it. In short: In computational complexity theory, arithmetic circuits are the standard model for computing polynomials. Informally, an arithmetic circuit takes as inputs either variables or numbers, and is allowed to either add or multiply two expressions it has already computed.

Arithmetic circuit complexity — main illustration
Arithmetic circuit complexity — illustration

Key takeaways

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

Reference excerpt

In computational complexity theory, arithmetic circuits are the standard model for computing polynomials. Informally, an arithmetic circuit takes as inputs either variables or numbers, and is allowed to either add or multiply two expressions it has already computed. Arithmetic circuits provide a formal way to understand the complexity of computing polynomials. The basic type of question in this line of research is "what is the most efficient way to compute a given polynomial f?"

Definitions

An arithmetic circuit C over the field F and the set of variables x1,…,xn is a directed acyclic graph as follows. Every node in it with indegree zero is called an input gate and is labeled by either a variable xi or a field element in F. Every other gate is labeled by either + or ×; in the first case it is a sum gate and in the second a product gate. An arithmetic formula is a circuit in which every gate has outdegree one (and so the underlying graph is a directed tree). A circuit has two complexity measures associated with it: size and depth. The size of a circuit is the number of gates in it, and the depth of a circuit is the length of the longest directed path in it. For example, the circuit in the figure has size six and depth two. An arithmetic circuit computes a polynomial in the following natural way. An input gate computes the polynomial it is labeled by. A sum gate v computes the sum of the polynomials computed by its children (a gate u is a child of v if the directed edge (v,u) is in the graph). A product gate computes the product of the polynomials computed by its children. Consider the circuit in the figure, for example: the input gates compute (from left to right) x1,x2 and 1, the sum gates compute x1+x2 and x2+1, and the product gate computes (x1+x2)x2(x2+1).

Overview Given a polynomial f, we may ask ourselves what is the best way to compute it — for example, what is the smallest size of a circuit computing f. The answer to this question consists of two parts. The first part is finding some circuit that computes f; this part is usually called upper bounding the complexity of f. The second part is showing that no other circuit can do better; this part is called lower bounding the complexity of f. Although these two tasks are strongly related, proving lower bounds is usually harder, since in order to prove a lower bound one needs to argue about all circuits at the same time. Note that we are interested in the formal computation of polynomials, rather than the functions that the polynomials define. For example, consider the polynomial x2+x; over the field of two elements this polynomial represents the zero function, but it is not the zero polynomial. This is one of the differences between the study of arithmetic circuits and the study of Boolean circuits. In Boolean complexity, one is mostly interested in computing a function, rather than some representation of it (in our case, a representation by a polynomial). This is one of the reasons that make Boolean complexity harder than arithmetic complexity. The study of arithmetic circuits may also be considered as one of the intermediate steps towards the study of the Boolean case, which we hardly understand.

Upper bounds Some circuits asymptotically smaller than the naive algorithm are known, leading to an improvement to the upper bound of the minimum asymptotic circuit size. A well-known example is Strassen's algorithm for matrix product. The straightforward way for computing the product of two n×n matrices requires a circuit of size order n3. Strassen showed that we can, in fact, multiply two matrices using a circuit of size roughly n2.807. This idea is the starting point of the best theoretical way for multiplying two matrices that takes time roughly n2.376. Another example is computing the determinant of an n×n matrix. The naive way for computing the determinant requires circuits of size roughly n!. Nevertheless, we know that there are circuits of size polynomial in n for computing the determinant. These circuits, however, have depth that is linear in n. Berkowitz came up with an improvement: a circuit of size polynomial in n, but of depth O(log2(n)), making it in arithmetic TC2. A third example involves computing the permanent of an n×n matrix. As with the determinant, the naive circuit for the permanent has size roughly n!. However, for the permanent the best circuit known has size roughly 2n, which is given by Ryser's formula: for an n×n matrix X=(xi,j),

perm⁡(X)=(−1)n∑S⊆{1,…,n}(−1)|S|∏i=1n∑j∈Sxi,j a circuit of depth three.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Arithmetic circuit complexity

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

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

How to study Arithmetic circuit complexity in 20 minutes

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

Frequently asked questions

What is Arithmetic circuit complexity in simple terms?

In computational complexity theory, arithmetic circuits are the standard model for computing polynomials. Informally, an arithmetic circuit takes as inputs either variables or numbers, and is allowed to either add or multiply two expressions it has already computed.

Why does Arithmetic circuit complexity matter?

Because it connects several engineering 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 Arithmetic circuit 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 Arithmetic circuit complexity.

Tags

  • Circuit complexity

Keep exploring