Abstract
Information about the computational cost of programs is potentially useful for a variety of purposes, including selecting among different algorithms, guiding program transformations, in granularity control and mapping decisions in parallelizing compilers, and query optimization in deductive databases. Cost analysis of logic programs is complicated by nondeterminism: on the one hand, procedures can return multiple solutions, making it necessary to estimate the number of solutions in order to give nontrivial upper bound cost estimates; on the other hand, the possibility of failure has to be taken into account while estimating lower bounds. Here we discuss techniques to address these problems to some extent.
Preview
Unable to display preview. Download preview PDF.
References
J. A. Bondy, “Bounds for the Chromatic Number of a Graph,” Journal of Combinatorial Theory 7, (1969), pp. 96–98.
S. K. Debray, and D. S. Warren, “Functional Computations in Logic Programs,” ACM Transactions on Programming Languages and Systems 11, 3 (July 1989), pp. 451–481.
S. K. Debray, and N.-W. Lin, “Cost Analysis of Logic Programs”, ACM Transactions on Programming Languages and Systems, vol. 15 no. 5, Nov. 1993, pp. 826–875.
S. K. Debray and N. Lin, “Static Estimation of Query Sizes in Horn Programs,” Proc. Third International Conference on Database Theory, Paris, France, December 1990, pp. 514–528.
S. K. Debray, N.-W. Lin, and M. Hermenegildo, “Task Granularity Analysis in Logic Programs”, Proc. of the 1990 ACM Conf. on Programming Language Design and Implementation, pp. 174–188. ACM Press, June 1990.
S. K. Debray, P. López García, M. Hermenegildo, and N.-W. Lin, “Lower Bound Cost Estimation for Logic Programs”, manuscript, April 1994.
Decorte, D. De Schreye, and M. Fabris, “Automatic Inference of Norms: A Missing Link in Automatic Termination Analysis”, Proc. 1993 International Symposium on Logic Programming, 1993, pp. 420–436. MIT Press.
N.-W. Lin, Automatic Complexity Analysis of Logic Programs, Ph.D. Dissertation, The University of Arizona, 1993.
Ju. V. Matijasevič, “Enumerable Sets are Diophantine”, Doklady Akademii Nauk SSSR, 191 (1970), 279–282 (in Russian; English translation in Soviet Mathematics—Doklady, 11 (1970), 354–357).
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1994 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Debray, S.K., García, P.L., Hermenegildo, M., Lin, N.W. (1994). Estimating the computational cost of logic programs. In: Le Charlier, B. (eds) Static Analysis. SAS 1994. Lecture Notes in Computer Science, vol 864. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-58485-4_45
Download citation
DOI: https://doi.org/10.1007/3-540-58485-4_45
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-58485-8
Online ISBN: 978-3-540-49005-0
eBook Packages: Springer Book Archive