Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
429340 | Journal of Algorithms | 2006 | 18 Pages |
Abstract
Let T=(V,E) be a free tree in which each vertex has a weight and each edge has a length. Let n=|V|. Given T and parameters k and l, a (k,l)-tree core is a subtree X of T with diameter ⩽l, having k leaves, which minimizes the sum of the weighted distances from all vertices in T to X. In this paper, two efficient algorithms are presented for finding a (k,l)-tree core of T. The first algorithm has O(n2) time complexity for the case that each edge has an arbitrary length. The second algorithm has O(lkn) time complexity for the case that the lengths of all edges are 1. The (k,l)-tree core problem has an application in distributed database systems.
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics