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 $\mathcal {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 (Beldiceanu et al., CP-AI-OR’05, Springer, Berlin, 2005), 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 {\mathcal {O}}(m+n)$ time for the resource-forest constraint, a sharp improvement over the $\mathop {\mathcal {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 {\mathcal {O}}(mn)$ in the worst case, and $\mathop {\mathcal {O}}(m\sqrt{n})$ in many (typical) cases.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call