Abstract
In this paper we present a linear-time algorithm for approximating a set ofn points by a linear function, or a line, that minimizes theL 1 norm. The algorithmic complexity of this problem appears not to have been investigated, although anO(n 3) naive algorithm can be easily obtained based on some simple characteristics of an optimumL 1 solution. Our linear-time algorithm is optimal within a constant factor and enables us to use linearL 1 approximation of many points in practice. The complexity ofL 1 linear approximation of a piecewise linear function is also touched upon.
Similar content being viewed by others
References
A. V. Aho, J. E. Hopcroft, and J. D. Ullman,The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, MA, 1974.
V. Chvátal,Linear Programming, Freeman, New York, 1983.
H. Imai, K. Kato, and P. Yamamoto, The Complexity of LinearL 1 Approximation of a Piecewise Linear Function, in preparation.
N. Megiddo, Linear-Time Algorithms for Linear Programming in R3 and Related Problems,SIAM Journal on Computing 12(4), (1983), 759–776.
N. Megiddo, Linear Programming in Linear Time when the Dimension is Fixed,Journal of the Association for Computing Machinery 31(1), (1984), 114–127.
W. H. Press, B. P. Flannery, S. A. Teulosky, and W. T. Vetterling,Numerical Recipes, Cambridge University Press, Cambridge, New York, 1986.
J. Rice,The Approximation of Functions, vol. 1, Addison-Wesley, Reading, MA, 1964.
M. I. Shamos, Computational Geometry, Ph.D. Thesis, Yale University, 1978.
Author information
Authors and Affiliations
Additional information
Communicated by Chee-Keng Yap.
Rights and permissions
About this article
Cite this article
Imai, H., Kato, K. & Yamamoto, P. A linear-time algorithm for linearL 1 approximation of points. Algorithmica 4, 77–96 (1989). https://doi.org/10.1007/BF01553880
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF01553880