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.
References
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.
F. Ajili and Contejean E. Complete solving of linear diophantine equations and inequations without adding variables. In this volume.
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.
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.
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.
E. B. Elliott. On linear homogeneous diophantine equations. Quartely J. of Pure and Applied Maths, 136, 1903.
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.
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.
G. Huet. An algorithm to generate the basis of solutions to homogenous linear diophantine equations. Information Processing Letters, 7(3):144–147, 1978.
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.
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.
Author information
Authors and Affiliations
Editor information
Rights 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