Skip to main content

From Elliott-MacMahon to an algorithm for general linear constraints on naturals

  • Efficient Constraint Handling
  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 976))

Abstract

We describe a new algorithm for solving a conjunction of linear diophantine equations, inequations and disequations in natural numbers. We derive our algorithm from one proposed by Elliott in 1903 for solving a single homogeneous equation. This algorithm was then extended to solve homogeneous systems of equations by MacMahon. We show how it further extends to an algorithm which solves general linear constraints in nonnegative integers and allows a parallel implementation. This algorithm provides a parametric representation of the solutions from which minimal solutions may be extracted immediately. Moreover, it may be easily implemented in parallel. It has however one drawback: it is redundant which means that the same minimal solution is usually generated many times. We show how this redundancy may be eliminated at the cost of an increase in the space complexity.

This work was partly supported by the SOL project, HCM #CHRX CT92 0053

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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. H. Abdulrab and M. Maksimenko. General solution of systems of linear diophantine equations and inequations. In J. Hsiang, editor, Proc. 6th Conf. on Rewriting Techniques and Applications, Kaiserslautern (Germany), volume 914 of Lecture Notes in Computer Science, pages 339–351. Springer-Verlag, April 1995.

    Google Scholar 

  2. F. Ajili and Contejean E. Complete solving of linear diophantine equations and inequations without adding variables. In this volume.

    Google Scholar 

  3. A. Boudet, E. Contejean, and H. Devie. A new AC unification algorithm with a new algorithm for solving diophantine equations. In Proc. 5th IEEE Symp. on Logic in Computer Science, Philadelphia (Pa., USA), pages 289–299, June 1990.

    Google Scholar 

  4. M. Clausen and A. Fortenbacher. Efficient solution of linear diophantine equations. J. of Symbolic Computation, 8(1 & 2):201–216, 1989. Special issue on unification. Part two.

    Google Scholar 

  5. E. Domenjoud. Solving systems of linear diophantine equations: An algebraic approach. In A. Tarlecki, editor, Proc. 16th Int. Symp. on Mathematical Foundations of Computer Science, Kazimierz Dolny (Poland), volume 520 of Lecture Notes in Computer Science, pages 141–150. Springer-Verlag, September 1991.

    Google Scholar 

  6. E. B. Elliott. On linear homogeneous diophantine equations. Quartely J. of Pure and Applied Maths, 136, 1903.

    Google Scholar 

  7. M. Filgueiras and A. P. Tomás. A note on the implementation of the MacMahon-Elliott algorithm. Technical report, Centro de Informática da Universidade do Porto, 1992.

    Google Scholar 

  8. M. Filgueiras and A. P. Tomás. Fast methods for solving linear diophantine equations. In M. Filgueiras and L. Damas, editors, Proc. of the 6th Portuguese Conf. on AI, Porto (Portugal), volume 727 of Lecture Notes in Artificial Intelligence, pages 297–306. Springer-Verlag, 1993.

    Google Scholar 

  9. G. Huet. An algorithm to generate the basis of solutions to homogenous linear diophantine equations. Information Processing Letters, 7(3):144–147, 1978.

    Article  Google Scholar 

  10. P. A. MacMahon. Combinatory Analysis, volume 2, chapter II: A Syzygetic Theory, pages 111–114. Cambridge University Press, 1916. Reprinted by Chelsea, New York, 1960.

    Google Scholar 

  11. L. Pottier. Minimal solutions of linear diophantine systems: Bounds and algorithms. In R. V. Book, editor, Proc. 4th Conf. on Rewriting Techniques and Applications, Como (Italy), volume 488 of Lecture Notes in Computer Science, pages 162–173. Springer-Verlag, April 1991.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Ugo Montanari Francesca Rossi

Rights and permissions

Reprints and permissions

Copyright information

© 1995 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Domenjoud, E., Tomás, A.P. (1995). From Elliott-MacMahon to an algorithm for general linear constraints on naturals. In: Montanari, U., Rossi, F. (eds) Principles and Practice of Constraint Programming — CP '95. CP 1995. Lecture Notes in Computer Science, vol 976. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-60299-2_2

Download citation

  • DOI: https://doi.org/10.1007/3-540-60299-2_2

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-60299-6

  • Online ISBN: 978-3-540-44788-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics