pith. sign in

arxiv: 1512.07537 · v2 · pith:GJGOHIHRnew · submitted 2015-12-23 · 💻 cs.CG

Linear-Time Fitting of a k-Step Function

classification 💻 cs.CG
keywords problemstepfunctionsolvetimeweightedadaptedalgorithms
0
0 comments X
read the original abstract

Given a set of $n$ weighted points on the $x$-$y$ plane, we want to find a step function consisting of $k$ horizontal steps such that the maximum vertical weighted distance from any point to a step is minimized. We solve this problem in $O(n)$ time when $k$ 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-$k$ histogram construction problem as well.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.