Weighted rectilinear approximation of points in the plane

  • Authors:
  • Mario A. Lopez;Yan Mayster

  • Affiliations:
  • University of Denver, Department of Mathematics, Denver, CO;University of Denver, Department of Computer Science, Denver, CO

  • Venue:
  • LATIN'08 Proceedings of the 8th Latin American conference on Theoretical informatics
  • Year:
  • 2008

Quantified Score

Hi-index 0.01

Visualization

Abstract

We consider the problem of weighted rectilinear approximation on the plane and offer both exact algorithms and heuristics with provable performance bounds. Let S = {(pi, wi)} be a set of n points pi in the plane, with associated distance-modifying weights wi 0. We present algorithms for finding the best fit to S among x-monotone rectilinear polylines R with a given number k n of horizontal segments. We measure the quality of the fit by the greatest weighted vertical distance, i.e., the approximation error is max1≤i≤n widv(pi, R), where dv(pi, R) is the vertical distance from pi to R. We can solve for arbitrary k optimally in O(n2) or approximately in O(n log2 n) time. We also describe a randomized algorithm with an O(n log2 n) expected running time for the unweighted case and describe how to modify it to handle the weighted case in O(n log3 n) expected time. All algorithms require O(n) space.