Skip to main content
Log in

A linear-time algorithm for linearL 1 approximation of points

  • Published:
Algorithmica Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. A. V. Aho, J. E. Hopcroft, and J. D. Ullman,The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, MA, 1974.

    MATH  Google Scholar 

  2. V. Chvátal,Linear Programming, Freeman, New York, 1983.

    MATH  Google Scholar 

  3. H. Imai, K. Kato, and P. Yamamoto, The Complexity of LinearL 1 Approximation of a Piecewise Linear Function, in preparation.

  4. N. Megiddo, Linear-Time Algorithms for Linear Programming in R3 and Related Problems,SIAM Journal on Computing 12(4), (1983), 759–776.

    Article  MATH  MathSciNet  Google Scholar 

  5. N. Megiddo, Linear Programming in Linear Time when the Dimension is Fixed,Journal of the Association for Computing Machinery 31(1), (1984), 114–127.

    MATH  MathSciNet  Google Scholar 

  6. W. H. Press, B. P. Flannery, S. A. Teulosky, and W. T. Vetterling,Numerical Recipes, Cambridge University Press, Cambridge, New York, 1986.

    Google Scholar 

  7. J. Rice,The Approximation of Functions, vol. 1, Addison-Wesley, Reading, MA, 1964.

    MATH  Google Scholar 

  8. M. I. Shamos, Computational Geometry, Ph.D. Thesis, Yale University, 1978.

Download references

Author information

Authors and Affiliations

Authors

Additional information

Communicated by Chee-Keng Yap.

Rights and permissions

Reprints 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

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01553880

Key words

Navigation