Abstract
One of the distinguishing features of declarative languages is the separation of control and logic. Ideally, this allows us to improve the efficiency of an algorithm by changing only the control but not the logic. In this work, we investigate new control strategies and data structures in logic programs. Our main focus is on logic programs which contain dependent non-determinate computation.
We propose a newt ype of finite domain variables, which allow any kind of compound terms in their domain. A compound term in the domain may contain unbound variables which can also become domain variables, leading to nested domain variables.With nested domain variables, we can represent the Cartesian product of several domains as a tree structure. That is, disjunctive constraints stores can be constructed as a nested domain. The consistency of a nested domain can then be checked simultaneously by different parts of computations. Two forms of lookahead are used to perform the consistency checking: deep lookahead and shallow lookahead. It is hoped that, with our lookahead techniques and nested domains, many unnecessary or-branches can be pruned at an early stage. We have tested our ideas by an experimental implementation under SICStus Prolog, and obtained very encouraging results.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
R. Bahgat, V. Santos Costa, and R. Yang. ARCH: A Parallel Execution Model that Minimises the Search Space of Logic Programs. Egyptian Computer Journal, 23(2), 1996.
I. Dutra. A Flexible Scheduler for Andorra-I. In A. Beaumont and G. Gupta, editors, Lecture Notes in Computer Science 569, Parallel Execution of Logic Programs, pages 70–82. Springer-Verlag, June 1991.
G. Gupta and D. H. D. Warren. An Interpreter for the Extended Andorra Model. Presented at ICLP’90 Workshop on Parallel Logic Programming, Eilat, Israel, June 1990.
P. V. Hentenryck, Y. Deville, and C.-M. Teng. A generic arc-consistency algorithm and its specialization. Artificial Intelligence, 57, 1992.
S. Janson and S. Haridi. Programming Paradigms of the Andorra Kernel Language. In Logic Programming: Proceedings of the International Logic Programming Symposium, pages 167–186. MIT Press, October 1991.
A. Mackworth and E. C. Freuder. The Complexity of Constraint Satisfaction Revisited. Artificial Intelligence, 59(1,2):57–62, 1993.
A. K. Mackworth. Consistency in Networks of Relations. Artificial Intelligence, 8(1):99–118, 1977.
R. Mohr and T. C. Henderson. Arc and Path Consistency Revisited. Artificial Intelligence, 28:225–233, 1986.
R. Moolenaar and B. Demoen. Hybrid Tree Search in the Andorra Model. In Proceedings of the 8th International Conference on Logic Programming, pages 110–123. MIT Press, June 1994.
D. Sano. and J. B. Kruskal, editors. Time Warps, String Edit and Macromolecules: the Theory and Practice of Sequence Comparision. CSLI Publications, Reissueed edition, 1999.
V. Santos Costa, D. H. D. Warren, and R. Yang. The Andorra-I Engine: A parallel implementation of the Basic Andorra model. In Logic Programming: Proceedings of the 8th International Conference. MIT Press, 1991.
V. Santos Costa, D. H. D. Warren, and R. Yang. The Andorra-I Preprocessor: Supporting full Prolog on the Basic Andorra model. In Logic Programming: Proceedings of the 8th International Conference. MIT Press, 1991.
P. Van Hentenryck. Constraint Satisfaction in Logic Programming. MIT Press, 1989.
D. H. D. Warren. The Extended Andorra Model with Implicit Control. Presented at ICLP’90 Workshop on Parallel Logic Programming, Eilat, Israel, June 1990.
D. H. D. Warren. Personal communication, October 2001.
R. Yang et al. Performance of the Compiler-based Andorra-I System. In Logic Programming: Proceedings of the 10th International Conference. MIT Press, 1993.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2002 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Yang, R., Gregory, S. (2002). Exploiting E.cient Control and Data Structures in Logic Programs. In: Krishnamurthi, S., Ramakrishnan, C.R. (eds) Practical Aspects of Declarative Languages. PADL 2002. Lecture Notes in Computer Science, vol 2257. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45587-6_20
Download citation
DOI: https://doi.org/10.1007/3-540-45587-6_20
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-43092-6
Online ISBN: 978-3-540-45587-5
eBook Packages: Springer Book Archive