Abstract
In this paper we present results from ongoing research which allows the use of parsing methods to solve a particular kind of constraints, namely linear constraints on finite domains. Solving this kind of constraints is equivalent to solving systems of linear Diophantine equations on a finite subset of the naturals. We associate, to such a system, a definite-clause grammar that can be used to enumerate its solutions, and define a class of grammars, the connected grammars, for which the set of successful derivations covers the set of non-negative solutions of the associated system. This definition is based on a study of cycles in context-free grammars using compiler construction concepts and techniques.
The research described in this paper was partially supported by Instituto Nacional de Investigação Científica.
Preview
Unable to display preview. Download preview PDF.
References
Alfred V. Aho, R. Sethi and J. D. Ullman, Compilers — Principles, Techniques and Tools. Addison-Wesley, 1986.
Alexandre Boudet, E. Contejean and H. Devie, A new AC Unification algorithm with an algorithm for solving systems of Diophantine equations. In Proceedings of the 5th Conference on Logic and Computer Science, IEEE, 1990.
Gordon Bradley, Algorithm and Bound for the Greatest Common Divisor of n Integers, Comm. ACM, 13(7), 1970.
Tsu-Wu J. Chou and G. E. Collins, Algorithms for the solution of systems of linear Diophantine equations. SIAM J. Comput., 11(4), 687–708, 1982.
Jacques Cohen, Constraint Logic Programming Languages. Comm. ACM, 33(7), 1990.
Alain Colmerauer, Opening the Prolog III Universe. Byte, 12(9), 1987.
M. Dincbas, P. van Hentenryck, H. Simonis, A. Aggoun, T. Graf, F. Berthier, The constraint Logic Programming language CHIP. In Proceedings of the International Conference on Fifth Generation Computer Systems, ICOT, 1988.
Miguel Filgueiras, Systems of Linear Diophantine Equations and Logic Grammars, Centro de Informática da Universidade do Porto, 1990.
Miguel Filgueiras, Ana Paula Tomás, Relating Grammar Derivations and Systems of Linear Diophantine Equations. Centro de Informática da Universidade do Porto, 1990.
H. Greenberg, Integer Programming, Academic Press, 1971.
Thomas Guckenbiehl and A. Herold, Solving Linear Diophantine Equations. Memo SEKI-85-IV-KL, Universität Kaiserslautern, 1985.
Andrew Haas, A parsing algorithm for Unification Grammar. Computational Linguistics, 15(4), 1989.
John E. Hopcroft and J. D. Ullman, Formal Languages and Their Relation to Automata. Addison-Wesley, 1969.
Gérard Huet, An algorithm to generate the basis of solutions to homogeneous linear Diophantine equations. Information Processing Letters, 7(3), 1978.
Joxan Jaffar, J.-L. Lassez and M. Maher, Logic Programming language scheme. In D. DeGroot and G. Lindstrom (eds.), Logic Programming: Functions, Relations, and Equations, Prentice-Hall, 1986.
Joxan Jaffar and J.-L. Lassez, Constraint Logic Programming. In Proceedings of the 14th POPL Conference, 1987.
G. Mitra, D. B. C. Richards and K. Wolfenden, An improved algorithm for the solution of integer programs by the solution of associated Diophantine equations. R.I.R.O., 1970.
F. Pereira and D. H. D. Warren, Definite Clause Grammars for language analysis — a survey of the formalism and a comparison with Augmented Transition Networks. Artificial Intelligence, 13, 1980.
Loïc Pottier, Solutions Minimales des Systèmes Diophantiens Linéaires: Bornes et Algorithmes. Rapport de Recherche no. 1292, I.N.R.I.A., 1990.
A. P. Tomás and M. Filgueiras, A New Method for Solving Linear Constraints on the Natural Numbers. This volume.
A. P. Tomás and M. Filgueiras, A Congruence-based Method for Finding the Basis of Solutions to Linear Diophantine Equations. Centro de Informática da Universidade do Porto, 1991.
P. van Hentenryck, Constraint Satisfaction in Logic Programming, MIT Press, 1989.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1991 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Filgueiras, M., Tomás, A.P. (1991). Solving linear constraints on finite domains through parsing. In: Barahona, P., Moniz Pereira, L., Porto, A. (eds) EPIA 91. EPIA 1991. Lecture Notes in Computer Science, vol 541. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-54535-2_21
Download citation
DOI: https://doi.org/10.1007/3-540-54535-2_21
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-54535-4
Online ISBN: 978-3-540-38459-5
eBook Packages: Springer Book Archive