Algorithm 2 Selection based on Cluster-level Constraints |
Input: Let be the set of cluster candidates of the condensed cluster tree (excluding the root), the set of leaf clusters and the set of constraint clusters. Let is ancestor of denote the set of ancestor indices for a cluster . Let be Boolean indicator whether a cluster is selected or not. |
Initialize for .
, go up the tree and set for every unprocessed
, go up the tree and set if or root
|