加载中…
Path partition problems on trees have found various applications. In this paper, we present an time algorithm for solving the following variant of path partition problem: given a rooted tree of nodes , where vertex is associated with a weight and a cost , partition the tree into several disjoint chains , so that the weight of each chain is no more than a threshold and the sum of the largest in each chain is minimized. We also generalize the algorithm to the case where the cost of a chain is determined by the of the vertex with the highest rank in the chain, which can be determined by an arbitrary total order defined on all nodes instead of the value of .

生成讲解博客的中文版本

生成AI智能校验的中文版本