On maintaining the width and diameter of a planar point-set online
暂无分享,去创建一个
Efficient online algorithms are presented for maintaining the (almost-exact) width and diameter of a dynamic planar point-set, S. Let n be the number of points currently in S, let W and D denote the width and diameter of S, respectively, and let α>1 and β≥1 be positive, integer-valued parameters. The algorithm for the width problem uses O(αn) space, supports updates in O(α log2 n) time, and reports in O(α log2 n) time an approximation, Ŵ, to the width such that . The algorithm for the diameter problem uses O(βn) space, supports updates in O(β log n) time, and reports in O(β) time an approximation, , to the diameter such that . Thus, for instance, even for α as small as 11, Ŵ/W≤1.01, and for β as small as 9, . All bounds stated are worst-case. Both algorithms, but especially the one for the diameter problem, use well-understood data structures and should be simple to implement. The diameter result yields a fast implementation of the greedy heuristic for maximum-weight Euclidean matching and an efficient online algorithm to maintain approximate convex hulls in the plane.