English

Linear-Time Fitting of a $k$-Step Function

Computational Geometry 2016-06-08 v2

Abstract

Given a set of nn weighted points on the xx-yy plane, we want to find a step function consisting of kk horizontal steps such that the maximum vertical weighted distance from any point to a step is minimized. We solve this problem in O(n)O(n) time when kk is a constant. Our approach relies on the prune-and-search technique, and can be adapted to design similar linear time algorithms to solve the line-constrained k-center problem and the size-kk histogram construction problem as well.

Keywords

Cite

@article{arxiv.1512.07537,
  title  = {Linear-Time Fitting of a $k$-Step Function},
  author = {Binay Bhattacharya and Sandip Das and Tsunehiko Kameda},
  journal= {arXiv preprint arXiv:1512.07537},
  year   = {2016}
}

Comments

12 pages, 4 figures, Caldam 2016

R2 v1 2026-06-22T12:16:52.917Z