An Efficient Algorithm for Node-Weighted Tree Partitioning with Subtrees' Weights in a Given Range

Guangchun Luo, Hao Chen, Caihui Qu, Yuhai Liu, Ke QinIEICE Trans. Information and Systems 2013

Introduction

In the realm of parallel and distributed computing, tasks are frequently modeled as operator trees. To optimize execution, these trees must be partitioned into clusters (subtrees) and distributed across various processors. A critical challenge in this process is load balancing, which requires ensuring that each subtree's total weight falls within a specific range $[l, u]$.

If a subtree is too small (below the lower bound $l$), communication and scheduling overheads may negate processing gains. Conversely, if a subtree is too large (above the upper bound $u$), it may exceed a processor's memory or computational capacity. This paper addresses two primary partitioning problems: the Minimum $[l, u]$partition, which seeks the fewest possible subtrees, and the $p-[l, u]$partition, which aims to divide the tree into exactly $p$ subtrees, all within the specified weight range.

Methodology

The authors propose a three-stage approach designed to overcome the computational bottlenecks of previous methods.

1. Preprocessing: Tree Fusing

The first stage involves simplifying the tree through a process called "tree fusing." If a leaf node's weight is less than $l$, it must be merged with its parent to potentially satisfy the lower bound, provided the combined weight does not exceed $u$. This iterative "gluing" process significantly reduces the number of nodes $n$, resulting in a simplified structure known as a "leaf-fitting tree" ($lf$-tree).

Transformation of a tree $T_v$ into its corresponding leaf-fitting trees ($lf$-trees) through node fusing.

2. Bottom-Up Dynamic Programming

The algorithm traverses the $lf$-tree from the leaves to the root. At each node, it calculates a Pivot Weight Set (PWS), which represents the possible weights for the current "pivot" subtree for a given number of partitions $k$. This allows the algorithm to build optimal global solutions from local subtree configurations.

3. Interval Compression

To manage the potentially exponential growth of the PWS, the authors introduce interval compression. Instead of storing every discrete weight, they represent clusters of weights as intervals. By proving that "d-consecutive" weights (those close enough together) can be treated as a single range without losing optimality, the algorithm drastically reduces the state space and maintains efficiency even as weight ranges increase.

Performance Evaluation

The algorithm was benchmarked against the state-of-the-art method by Ito et al. (2011) using synthetic datasets with varying tree sizes, depths, and weight distributions.

Key Results

Experimental results demonstrate that the proposed algorithm consistently outperforms previous methods. As the lower bound $l$ increases, the preprocessing step becomes more aggressive, further widening the performance gap. The interval compression technique ensures that the algorithm maintains a polynomial-time complexity of $O(p^2 (\frac{u}{d+2})^2 n)$, where $d = u - l$.

Comparison of computing time between the proposed algorithm and the state-of-the-art Ito et al. algorithm across different lower bounds $l$.

Conclusion and Future Work

This research provides a highly efficient solution for tree partitioning under weight constraints. The combination of $lf$-tree preprocessing and interval-based dynamic programming offers significant scalability improvements. While the current algorithm is optimized for trees, future work may explore adapting these pruning and compression techniques for Directed Acyclic Graphs (DAGs) or incorporating non-uniform communication costs between edge cuts.

Summary updated

BibTeX
@article{luo2013efficient,
  author = {Guangchun Luo and Hao Chen and Caihui Qu and Yuhai Liu and Ke Qin},
  title = {{An Efficient Algorithm for Node-Weighted Tree Partitioning with Subtrees' Weights in a Given Range}},
  journal = {IEICE Trans. Information and Systems},
  year = {2013},
  url = {https://openreview.net/forum?id=ZccHdREKO7},
}
Figure