ArticleslgStudy

engineering

NC (complexity)

NC (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 NC (complexity) rather than just read about it. In short: In computational complexity theory, the class NC (for Nick's class) is the set of decision problems decidable in polylogarithmic time on a parallel computer with a polynomial number of processors. In other words, a problem with input size n is NC if there exist constants c and k such that it can be solved in time O((log n)c) using O(nk) parallel processors.

Key takeaways

  • NC (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 NC (complexity) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of NC (complexity) from memory before moving on to harder problems.

Reference excerpt

In computational complexity theory, the class NC (for Nick's class) is the set of decision problems decidable in polylogarithmic time on a parallel computer with a polynomial number of processors. In other words, a problem with input size n is NC if there exist constants c and k such that it can be solved in time O((log n)c) using O(nk) parallel processors. Stephen Cook coined the name Nick's class after Nick Pippenger, who had done extensive research on circuits with polylogarithmic depth and polynomial size. As in the case of circuit complexity theory, usually the class has an extra constraint that the circuit family must be uniform (see below). Equivalently, NC can be defined as those decision problems decidable by a uniform Boolean circuit (which can be calculated from the length of the input, for NC, we suppose we can compute the Boolean circuit of size n in logarithmic space in n) with polylogarithmic depth and a polynomial number of gates with a maximum fan-in of 2. RNC is a class extending NC with access to randomness.

Problems in NC Just as the class P can be thought of as the tractable problems (Cobham's thesis), so NC can be thought of as the problems that can be efficiently solved on a parallel computer. The parallel computer in the definition can be assumed to be a parallel, random-access machine (PRAM). That is a parallel computer with a central pool of memory, and any processor can access any bit of memory in constant time. The definition of NC is not affected by the choice of how the PRAM handles simultaneous access to a single bit by more than one processor. It can be CRCW, CREW, or EREW. See PRAM for descriptions of those models. NC is a subset of P because polylogarithmic parallel computations can be simulated by polynomial-time sequential ones. It is unknown whether NC = P, but most researchers suspect this to be false, meaning that there are probably some tractable problems that are "inherently sequential" and cannot significantly be sped up by using parallelism. Just as the class NP-complete can be thought of as "probably intractable", so the class P-complete, when using NC reductions, can be thought of as "probably not parallelizable" or "probably inherently sequential". As with P, by a slight abuse of language, one might classify function problems and search problems as being in NC. NC is known to include many problems, including

Integer addition, multiplication and division; Matrix multiplication, determinant, inverse, rank; Polynomial GCD, by a reduction to linear algebra using Sylvester matrix Finding a maximal matching. Often algorithms for those problems had to be separately invented and could not be naïvely adapted from well-known algorithms – Gaussian elimination and Euclidean algorithm rely on operations performed in sequence. One might contrast ripple carry adder with a carry-lookahead adder.

Example An example of problem in NC1 is the parity check on a bit string. The problem consists in counting the number of 1s in a string made of 1 and 0. A simple solution consists in summing all the string's bits. Since addition is associative, x1+⋯+xn=(x1+⋯+xn2)+(xn2+1+⋯+xn). Recursively applying such property, it is possible to build a binary tree of length O(log⁡(n)) in which every sum between two bits xi and xj is expressible by means of basic logical operators, e.g. through the Boolean expression (xi∧¬xj)∨(¬xi∧xj).

The NC hierarchy NCi is the class of decision problems decidable by uniform Boolean circuits with a polynomial number of gates of at most two inputs and depth O((log n)i), or the class of decision problems solvable in time O((log n)i) on a parallel computer with a polynomial number of processors. Clearly,

𝖭𝖢0⊆𝖭𝖢1⊆⋯⊆𝖭𝖢i⊆⋯⊆𝖭𝖢 which forms the NC-hierarchy. The smallest class, NC0, is the class of functions definable by Boolean circuits with constant depth and bounded fan-in. The next-smallest class, NC1, is equal to BW40, the set of all problems solvable by polynomial-size, bounded fan-in circuits of width 4 or less. This is true for both the uniform and nonuniform case (DLOGTIME-uniformity suffices). One can relate the NC classes to the space classes L, SL, NL, LOGCFL, and AC.

𝖭𝖢1⊆𝖫=𝖲𝖫⊆𝖭𝖫⊆𝖫𝖮𝖦𝖢𝖥𝖫⊆𝖠𝖢1⊆𝖭𝖢2. The NC classes are related to the AC classes, which are defined similarly, but with gates having unbounded fan-in. For each i,

𝖭𝖢i⊆𝖠𝖢i⊆𝖠𝖢i[p]⊆𝖠𝖢𝖢i⊆𝖳𝖢i⊆𝖭𝖢i+1 As an immediate consequence of this, NC = AC. Also, 𝖭𝖢0⊊𝖠𝖢0⊊𝖠𝖢𝖢0. Similarly, NC is equivalent to the problems solvable on an alternating Turing machine restricted to at most two options at each step with O(log n) space and (log⁡n)O(1) alternations. It is a major open question whether 𝖳𝖢0⊊𝖭𝖢1 (Vollmer 1998, p. 126). A significant partial result states that if there exists some ϵ>0, and a problem in 𝖭𝖢1, such that it requires at least Ω(n1+ϵ) gates in 𝖳𝖢0, then this can be bootstrapped so that it requires superpolynomial gates, and thus not in 𝖳𝖢0.

Uniformity There are various levels of uniformity being considered. A family of Boolean circuits is uniform if the schematics for any member of the family can be produced by a Turing machine under various resource constraints. With different levels of constraints, we would obtain possibly different complexity classes, with a more stringent constraint leading to a possibly smaller complexity class. In the literature, the following uniformities have been considered for the NC1 class, arranged according to strength:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with NC (complexity)

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

In research
NC (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 NC (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
NC (complexity) 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 NC (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 “NC (complexity)” →

How to study NC (complexity) in 20 minutes

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

Frequently asked questions

What is NC (complexity) in simple terms?

In computational complexity theory, the class NC (for Nick's class) is the set of decision problems decidable in polylogarithmic time on a parallel computer with a polynomial number of processors. In other words, a problem with input size n is NC if there exist constants c and k such that it can be…

Why does NC (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 NC (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 NC (complexity).

Tags

  • Circuit complexity
  • Complexity classes

Keep exploring