AI Glossary / Graphs and symbolic AI / Advanced
Cycle cutset
Definition
A cycle cutset is a set of vertices whose removal leaves a graph without cycles. In constraint satisfaction, the vertices are variables; fixing suitable cutset variables lets the remaining acyclic problem be handled using tree-based methods.
What it means
A graph can contain many interlocking cycles. Breaking one visible loop does not necessarily remove the others. A cycle cutset must intersect every cycle in the relevant graph, so that none survives after its selected vertices are removed.
For an undirected constraint graph, the remainder is a forest: one or more trees, possibly including isolated vertices. A cutset can contain several vertices, and more than one valid choice may exist.
The term is closely related to a feedback vertex set in graph theory. It must be distinguished from an edge cut, which removes edges, and from a separating set selected merely to disconnect a graph. Disconnecting a graph can leave cyclic components on both sides.
How it works
Begin with the graph that actually represents the problem. For a binary constraint satisfaction problem, use one vertex per variable and an edge for each pairwise constraint. Select candidate vertices and test whether the remainder is acyclic.
A simple approach repeatedly identifies a surviving cycle and selects a vertex from it. This can produce a valid cutset, but the resulting set need not be the smallest possible. Choices made early can affect how many later cycles remain.
Distinguish a minimum cutset from an inclusion-minimal one. A minimum cutset has the smallest cardinality among all valid cutsets. An inclusion-minimal cutset cannot lose any of its own members without ceasing to be valid, but another cutset may contain fewer vertices.
When using the cutset for conditioning, its domain sizes also affect cost. Trying every assignment requires a number of cases equal to the product of the selected variables' domain sizes before consistency pruning. Consequently, the fewest vertices do not always mean the fewest assignment cases. Structural validity and computational usefulness are separate questions.
Three practical examples
- A configuration solver selects shared component variables whose removal makes the remaining compatibility graph a forest.
- A scheduling analyst compares alternative cutsets by both the number of selected variables and the number of values each can take.
- A graph teaching tool highlights a proposed cutset and displays any cycle that survives, providing a concrete counterexample.
Think of it this way
Think of removing selected junctions from a diagram so that no circular route remains. One strategically shared junction may break several loops at once, while removing a different junction from each loop requires more choices.
In constraint solving, the junctions are not simply discarded from the real problem. Their values and restrictions still need to be considered when the full solution is reconstructed.
Worked example
Smallest is not the same as irreducible
Consider two triangles sharing vertex C. The first has edges A-B, B-C and C-A; the second has C-D, D-E and E-C. There are no other edges.
The set {C} is a cycle cutset. Removing C leaves edges A-B and D-E, which form two trees. Since the original graph has cycles, an empty set cannot work, so this one-vertex cutset is minimum.
The set {A,D} also works. Removing A breaks the first triangle and removing D breaks the second, leaving B-C-E as a path. It is inclusion-minimal: restoring A recreates the first triangle, while restoring D recreates the second. Nevertheless, it is not minimum because {C} is smaller.
Now suppose C has 100 possible values, while A and D each have two. Conditioning on {C} has 100 raw cases; conditioning on {A,D} has 2×2=4. Both choices leave forests, but the smaller cutset can require more case enumeration. Other costs and pruning still affect total runtime.
Illustrative case study
A fictional equipment-rental planner, Alder Hire, creates a graph of compatible booking choices. Two groups of constraints share a central location variable with many possible values.
The team first chooses that central variable because it breaks both cycles alone. A second review notices that choosing two binary equipment options produces fewer raw combinations. The planners compare both decompositions on representative bookings instead of assuming that minimum cardinality guarantees the fastest solution.
They also test every proposed cutset by checking the residual graph for cycles. When a new cross-group compatibility rule is added, the previous cutset no longer suffices. The planning system rebuilds and checks the decomposition before relying on the tree-solving step.
Common misconceptions and mistakes
- A cutset must contain exactly one vertex from each cycle. A single vertex may intersect many cycles, and choices can overlap.
- A set that breaks the first cycle found necessarily breaks them all. Other cycles may survive.
- Inclusion-minimal means minimum size. It only means that removing any selected member would invalidate that particular set.
- The smallest cutset always makes conditioning cheapest. Domain sizes and the cost of solving residual problems also matter.
Business use
Cycle cutsets help explain why certain planning models admit efficient decomposition. They reveal the small group of coupled decisions that can make an otherwise tree-like model difficult.
For a business application, record which variables form the cutset, their domain sizes, the residual graph check and the expected enumeration burden. A decomposition is a property of a particular model, so changing compatibility rules can invalidate it. Choosing a cutset is useful only if the resulting cases and reconstruction preserve the requirements that matter to the business.
People also ask
Must removing a cycle cutset leave one connected tree?
No. A forest with several components is acceptable in the usual undirected setting.
Is finding the minimum cycle cutset easy?
In general it is computationally hard, so practical methods often use heuristics or exploit special graph structure.
Does fixing a cutset variable remove its constraints?
No. Conditioning must apply the chosen value's restrictions to neighboring variables and retain consistency among selected variables.
Check your understanding
Two triangles share vertex C. A proposed cutset removes a vertex that belongs only to the first triangle. Is it valid?
Answer: No. The second triangle still exists. Removing C would break both in this example, or one suitable vertex could be selected from each triangle.
Related terms
- Cutset conditioning
- Constraint graph
- feedback vertex set
- tree-structured CSP
- minimum versus minimal
- graph decomposition
Learn next
Draw two triangles sharing a vertex. Find a minimum cutset and a larger inclusion-minimal cutset. Assign different domain sizes to the vertices and calculate the raw conditioning cases for each choice before deciding which to investigate computationally.
More in Graphs and symbolic AI
- Curse of dimensionality - The curse of dimensionality describes difficulties that can arise as the number of dimensions in a problem increases.
- Cutoff test - A cutoff test is a condition that tells a search algorithm to stop expanding a state before the complete underlying problem has necessarily ended.
- Cycle - A cycle is a route through a graph that returns to its starting vertex. In a simple cycle, no other vertex is repeated.
- Cyclic solution - A cyclic solution is a plan or policy that can return to an earlier state or decision point and repeat actions.
- CYK algorithm - The CYK algorithm, named for Cocke, Younger and Kasami, is a dynamic programming method for recognizing and parsing strings with a context-free grammar.
- D* - D*, or Dynamic A*, is an incremental path-planning algorithm that repairs a route when new information changes edge costs in a graph.
Sources
Russell and Norvig, Artificial Intelligence: A Modern Approach, constraint satisfaction chapter, describes cycle cutsets, conditioning and the cost of enumerating cutset assignments: https://aima.cs.berkeley.edu/2nd-ed/newchap05.pdf
The shared-triangle example, domain-size comparison and Alder Hire case are original teaching illustrations.
Previous: Cycle Next: Cyclic solution