A deterministic algorithm for fitting a step function to a weighted point-set

  • Authors:
  • Hervé Fournier;Antoine Vigneron

  • Affiliations:
  • Univ Paris Diderot, Sorbonne Paris Cité, Institut de Mathématiques de Jussieu, UMR 7586 CNRS, F-75205 Paris, France;King Abdullah University of Science and Technology (KAUST), Geometric Modeling and Scientific Visualization Center, Thuwal 23955-6900, Saudi Arabia

  • Venue:
  • Information Processing Letters
  • Year:
  • 2013

Quantified Score

Hi-index 0.89

Visualization

Abstract

Given a set of n points in the plane, each point having a positive weight, and an integer k0, we present an optimal O(nlogn)-time deterministic algorithm to compute a step function with k steps that minimizes the maximum weighted vertical distance to the input points. It matches the expected time bound of the best known randomized algorithm for this problem. Our approach relies on Cole@?s improved parametric searching technique. As a direct application, our result yields the first O(nlogn)-time algorithm for computing a k-center of a set of n weighted points on the real line.