A randomized algorithm for weighted approximation of points by a step function

  • Authors:
  • Jin-Yi Liu

  • Affiliations:
  • School of Computer and Communication Engineering, Liaoning Shihua University, Fushun, P.R. China

  • Venue:
  • COCOA'10 Proceedings of the 4th international conference on Combinatorial optimization and applications - Volume Part I
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

The problem considered in this paper is: given an integer k 0 and a set P of n points in the plane each with a corresponding non-negative weight, find a step function f with k steps that minimize the maximum weighted vertical distance between f and all the points in P. We present a randomized algorithm to solve the problem in O(n log n) expected running time. The bound is obviously optimal for the unsorted input. The previously best known algorithm runs in O(n log2 n) worstcase time. Another merit of the algorithm is its simplicity. The algorithm is just a randomized implementation of Frederickson and Johnson's matrix searching technique, and it only exploits a simple data structure.