ArticleslgStudy

engineering

AC0

AC0 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 AC0 rather than just read about it. In short: AC0 (alternating circuit) is a complexity class used in circuit complexity. It is the smallest class in the AC hierarchy, and consists of all families of circuits of depth O(1) and polynomial size, with unlimited-fanin AND gates and OR gates (we allow NOT gates only at the inputs).

AC0 — main illustration
AC0 — illustration

Key takeaways

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

Reference excerpt

AC0 (alternating circuit) is a complexity class used in circuit complexity. It is the smallest class in the AC hierarchy, and consists of all families of circuits of depth O(1) and polynomial size, with unlimited-fanin AND gates and OR gates (we allow NOT gates only at the inputs). It thus contains NC0, which has only bounded-fanin AND and OR gates. Such circuits are called "alternating circuits", since it is only necessary for the layers to alternate between all-AND and all-OR, since one AND after another AND is equivalent to a single AND, and the same for OR.

Example problems Integer addition and subtraction are computable in AC0, but multiplication is not (specifically, when the inputs are two integers under the usual binary or base-10 representations of integers). Since it is a circuit class, like P/poly, AC0 also contains every unary language.

Descriptive complexity From a descriptive complexity viewpoint, DLOGTIME-uniform AC0 is equal to the descriptive class FO+BIT of all languages describable in first-order logic with the addition of the BIT predicate, or alternatively by FO(+, ×), or by Turing machine in the logarithmic hierarchy.

Separations In 1984 Furst, Saxe, and Sipser showed that calculating the PARITY of the input bits (unlike the aforementioned addition/subtraction problems above which had two inputs) cannot be decided by any AC0 circuits, even with non-uniformity. Similarly, computing the majority is also not in 𝖠𝖢0. It follows that AC0 is strictly smaller than TC0. Note that "PARITY" is also called "XOR" in the literature. However, PARITY is only barely out of AC0, in the sense that for any k>0, there exists a family of alternating circuits using depth ⌈kln⁡n/ln⁡ln⁡n⌉ and size O(2(ln⁡n)1/kn(ln⁡n)1/k). In particular, setting k to be a large constant, then there exists a family of alternating circuits using depth O(ln⁡n/ln⁡ln⁡n)≪O(ln⁡n), and size only slightly superlinear. 𝖠𝖢0 can be divided further, into a hierarchy of languages requiring up to 1 layer, 2 layers, etc. Let 𝖠𝖢d0 be the class of languages decidable by a threshold circuit family of up to depth d:𝖠𝖢10⊂𝖠𝖢20⊂⋯⊂𝖠𝖢0=⋃d=1∞𝖠𝖢d0The following problem is 𝖠𝖢d0-complete under a uniformity condition: given a grid graph of polynomial length and width d, decide whether two given vertices are connected. The addition of two n-bit integers is in 𝖠𝖢30 but not in 𝖠𝖢20.

References

Illustrations

AC0: Diagram of an AC0 circuit: The n input bits are on the bottom and the top gate produces the output; the circuit consists of AND- and OR-gates of polynomial fan-in each, and the alternation depth is bounded by a constant.
Diagram of an AC0 circuit: The n input bits are on the bottom and the top gate produces the output; the circuit consists of AND- and OR-gates of polynomial fan-in each, and the alternation depth is bounded by a constant.

Worked examples

Example 1 — a first encounter with AC0

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

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

How to study AC0 in 20 minutes

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

Frequently asked questions

What is AC0 in simple terms?

AC0 (alternating circuit) is a complexity class used in circuit complexity. It is the smallest class in the AC hierarchy, and consists of all families of circuits of depth O(1) and polynomial size, with unlimited-fanin AND gates and OR gates (we allow NOT gates only at the inputs).

Why does AC0 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 AC0?

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 AC0.

Tags

  • Circuit complexity
  • Complexity classes

Keep exploring