Skip to content

Comparator-circuit complexity class CC

The class of decision problems reducible to comparator-circuit value, equivalently computable by uniform polynomial-size comparator-circuit families under the stated input conventions.

Core Idea

CC is the set of Boolean decision problems reducible in logarithmic space to comparator circuit value (CCV). A comparator gate sorts two bits, sending their minimum to one wire and maximum to the other. A CCV instance supplies a circuit, input values, and a designated output wire, then asks whether that output is 1. Cook, Filmus, and Lê prove equivalent descriptions of CC using weaker reductions and uniform polynomial-size comparator-circuit families under precise input-copy and negation conventions. The class is the set of qualifying problems, not one circuit or CCV alone.[1][2]

How would you explain it like I'm…

Marble Sorter Puzzles

Imagine a machine made of little swappers. Each swapper looks at two wires carrying a 0 or a 1 and always puts the bigger one on one wire and the smaller one on the other. The puzzle is: when everything goes through, does a chosen wire end up with a 1? CC is the group of puzzles that can all be turned into this swapper puzzle.

Sorting-Gate Problem Family

Computer scientists group problems by how hard they are. CC is a group built around one special puzzle: you get a circuit made of 'comparator' gates, each of which takes two 0-or-1 values and sends the smaller to one wire and the larger to another. Given the starting values, does a chosen wire end up as 1? A problem belongs to CC if it can be turned into that puzzle quickly using very little memory, keeping the same yes or no answer. Surprisingly, some matching and 'stable marriage' puzzles are just as hard as this circuit puzzle.

Comparator-Circuit Complexity Class

CC is a complexity class of yes/no problems defined using the comparator circuit value problem (CCV). In CCV you're given a circuit of comparator gates, which sort two Boolean values onto two wires (smaller on one, larger on the other), plus input values and a chosen output wire; the question is whether that wire ends at 1. A problem is in CC if its instances can be translated, using only logarithmic memory, into CCV instances with the same answer. Cook, Filmus, and Lê showed equivalent ways to define the class, including uniform families of polynomial-size comparator circuits under specific conventions. The class reaches beyond circuits: certain questions about lexicographically first maximal matchings and about stable marriages are CC-complete, meaning they are exactly as hard as CCV under these reductions.

 

CC is defined via the comparator circuit value problem: given a Boolean comparator circuit, assignments to its input wires, and a designated output wire, decide whether that wire carries 1. Each comparator gate maps a pair of bits to (min, max) on two specified wires. In the original definition, a language is in CC if it is log-space reducible to CCV with answers preserved. Cook, Filmus, and Lê showed this is equivalent to definitions using weaker reductions and to uniform families of polynomial-size comparator circuits, under stated conventions about copying inputs and negation. The class's significance lies in its complete problems: deciding whether a designated edge lies in the lexicographically first maximal matching of an ordered bipartite graph, and a designated-pair question about optimal stable marriages, are both CC-complete. Their instances look nothing like circuits, yet reductions show they are equivalent to comparator circuit evaluation under the chosen reduction standard.

Use Within the Domain

CC identifies a common computational power across unlike problem settings. The question whether a designated edge appears in the lexicographically first maximal matching of an ordered bipartite graph is CC-complete. So is the question whether a designated man–woman pair appears in a man-optimal or woman-optimal stable marriage. These are specific yes/no versions; an unspecified task to output an entire matching is a related search problem rather than literally a member of the class of decision languages.[1]

The established broad containment is NL ⊆ CC ⊆ P. Whether ordinary CC and NC are incomparable is unresolved. An oracle-based separation in the original paper does not prove the corresponding unrelativized statement.[1]

Clarity

Three levels must be kept apart: a comparator gate is a local operation, CCV is a decision problem about a supplied circuit, and CC is a class of decision languages defined through reductions to that problem. Thus a matching problem can be CC-complete without itself being a physical comparator circuit. A verbal resemblance to comparison is no membership proof; the specified reduction or uniform circuit construction is needed.[1]

The historical notation also matters. Lê, Cook, and Ye in 2011 distinguished AC⁰-defined CC, logspace-defined CCSubr, and an oracle-based CC* without claiming their equality. The later Cook–Filmus–Lê Theorem 10 proves the relevant characterizations equivalent. Reading the older notation as three classes known today to differ reverses that chronology.[2][1]

Manages Complexity

CCV supplies a reusable complete anchor. To establish that a new decision problem belongs to CC, give an allowed answer-preserving reduction to CCV or use the equivalent uniform circuit characterization. To establish hardness, reduce a known CC-complete problem to the new problem. Once both directions are proved, later results can reuse the completeness statement instead of rebuilding the circuit simulation for each application. Membership in P alone does not establish membership in CC.[1]

Abstract Reasoning

Start by specifying the encoded input and exact Boolean question. Check the permitted comparator-gate model, uniformity and input conventions, and direction of each reduction. A reduction from the proposed problem to CCV establishes an upper bound; a reduction from CCV or another complete problem toward the proposed problem establishes hardness. The two directions answer different questions and should not be swapped.[1]

The named class is a strict instance of Set and Membership: each decision language is an identifiable potential member, the CCV-reduction condition is its membership rule, and CC itself is a first-class mathematical collection. The specialized comparator-circuit rule keeps this entry domain-specific. Its mathematically closer catalog neighbor Complexity Class currently has strict ancestor links that did not pass the all-instance review for CC, so that additional edge remains deferred.

Knowledge Transfer

The reduction method transfers from circuit evaluation to ordered graph matching and preference-based stable matching while preserving the formal yes/no question. Their input objects and proof gadgets differ; the same class-membership rule connects them. Outside formal computation, a loose analogy about “comparison” does not carry Boolean comparator gates, uniform circuit families, or reductions, and therefore does not by itself carry CC.[1]

Example

Consider an ordered bipartite graph with first-side vertices v₀, v₁, second-side vertices w₀, w₁, and edges v₀w₀, v₀w₁, v₁w₀. Greedily visit the first side in order and match each vertex to its least available neighbor. The resulting matching contains v₀w₀, leaving v₁ unmatched, so the designated-edge question answers yes for v₀w₀ and no for v₁w₀. This tiny constructed case explains the question; the paper's two-way reductions, summarized in Corollary 34, establish CC-completeness.[1]

Mapped back: the designated edge supplies the Boolean decision; comparator-gate constructions connect it to CCV; uniform polynomial circuit families give an equivalent computational route; and reductions in both directions support completeness. This result concerns the specified lexicographically first maximal matching decision, not arbitrary maximum matching.[1]

Relationships to Other Abstractions

Local relationship map for Comparator-circuit complexity class CCParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Comparator-circuitcomplexity class CCDOMAINPrime abstraction: Set and Membership — is a kind ofSet andMembershipPRIME

Current abstraction Comparator-circuit complexity class CC Domain-specific

Parents (1) — outgoing typed relations

  • Comparator-circuit complexity class CC is a kind of Set and Membership Prime

    CC is a set of decision languages with a precise comparator-circuit membership criterion.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Comparator-circuit complexity class CC sits in a moderately populated region (54th percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Codes, Matrices & Combinatorial Problems (33 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

Not to Be Confused With

  • CCV or one comparator circuit: CCV is the defining complete problem, while CC is the set of languages meeting its membership rule.[1]
  • NC: it imposes a different computational condition, and the ordinary CC–NC relationship is unresolved.[1]
  • SC: it requires one deterministic algorithm meeting both a polynomial-time and polylogarithmic-space bound; that condition has not been established for every CC language.[1]
  • An unspecified stable-marriage search task: the complete examples here are designated-pair Decision variants.[1]
  • Classification as an act: CC is the resulting mathematical set, not the live Prime's deliberate process of assigning items to categories.
  • General P: CC ⊆ P does not establish P ⊆ CC.[1]

References

[1] Cook, Stephen A., Yuval Filmus, and Dai Tri Man Lê. “The Complexity of the Comparator Circuit Value Problem”. arXiv:1208.2721v3, revised July 2013. https://doi.org/10.48550/arXiv.1208.2721. Full original HTML inspected, especially §§1–2.4, Theorem 10, §5 and Corollary 34, §6 and Theorems 35/50 and Corollary 51, and Appendix B. The paper's ordinary CC–NC incomparability is conjectural; the proved separation is relativized. registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g ↩h ↩i ↩j ↩k ↩l ↩m ↩n ↩o

[2] Lê, Dai Tri Man, Stephen A. Cook, and Yuli Ye. “A Formal Theory for the Complexity Class Associated with the Stable Marriage Problem”. Leibniz International Proceedings in Informatics 12 (CSL 2011), 381–395. https://doi.org/10.4230/LIPIcs.CSL.2011.381. Full publisher PDF inspected. Printed pp.381–382 distinguish CC, CCSubr, and CC* and describe the matching results. Their equivalence was not claimed there; the 2013 theorem supplies it. registry ↩a ↩b