Undirected forest constraints

  • Authors:
  • Nicolas Beldiceanu;Irit Katriel;Xavier Lorca

  • Affiliations:
  • LINA FRE CNRS 2729, École des Mines de Nantes, Nantes, France;BRICS, University of Aarhus, Århus, Denmark;LINA FRE CNRS 2729, École des Mines de Nantes, Nantes, France

  • Venue:
  • CPAIOR'06 Proceedings of the Third international conference on Integration of AI and OR Techniques in Constraint Programming for Combinatorial Optimization Problems
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present two constraints that partition the vertices of an undirected n-vertex, m-edge graph ${\mathcal{G}}=({\mathcal{V}},{\mathcal{E}})$ into a set of vertex-disjoint trees. The first is the resource-forest constraint, where we assume that a subset ${\mathtt{R}}\subseteq {\mathcal{V}}$ of the vertices are resource vertices. The constraint specifies that each tree in the forest must contain at least one resource vertex. This is the natural undirected counterpart of the tree constraint [1], which partitions a directed graph into a forest of directed trees where only certain vertices can be tree roots. We describe a hybrid-Consistency algorithm that runs in ${\mathop{\cal O}}(m+n)$ time for the resource forest constraint, a sharp improvement over the ${\mathop{\cal O}}(mn)$ bound that is known for the directed case. The second constraint is proper-forest. In this variant, we do not have the requirement that each tree contains a resource, but the forest must contain only proper trees, i.e., trees that have at least two vertices each. We develop a hybrid-Consistency algorithm for this case whose running time is ${\mathop{\cal O}}(mn)$ in the worst case, and ${\mathop{\cal O}}(m\sqrt{n})$ in many (typical) cases.