Abstract
We present a dynamic programming algorithm for the following problem: Given a tree T=( V, E), a set of q non-negative integer weights w i:V→ N on the nodes, and a threshold R i, i=1,…,q . Partition the vertices of the tree into connected components T 0,…, T k , such that for all i∈{1,…,q}, j∈{0,…,k} ∑ v∈T j w i(v)⩽R i and k is minimal. We show that this problem is hard, if q is unbounded or if T has unbounded maximum degree. In all other cases the running time of the dynamic program has a polynomial worst-case bound.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.