NASA Logo

NTRS

NTRS - NASA Technical Reports Server

Press Enter or click the Search button to begin your search.

Back to Results
Efficient reordering of Prolog programsRedundant search often makes Prolog programs inefficient. Prolog execution corresponds to a depth-first traversal of an AND/OR graph; often a large subgraph will be searched successfully, with failure resulting from a subsequent small one. It is shown how reordering of Prolog clauses and especially goals can prevent unnecessary search. The restrictions on reordering are characterized and how they may be detected is shown. A new system of calling modes for Prolog, geared to reordering, and a system for inferring them automatically are designed. An improved method for determining a good goal order for Prolog clauses is presented, and it is used as the basis for a reordering system, showing how it can be guided by information about modes and restrictions to generate reordered Prolog that behaves correctly.
Document ID
19940003667
Acquisition Source
Legacy CDMS
Document Type
Other
Authors
Gooley, Markian M.
(Illinois Univ. Urbana-Champaign, IL, United States)
Wah, Benjamin W.
(Illinois Univ. Urbana-Champaign, IL, United States)
Date Acquired
August 16, 2013
Publication Date
November 17, 1987
Publication Information
Publication: Presentation Slides and Publications. NASA Review of ICLASS: Illinois Computer Laboratory for Aerospace Systems and Software
Subject Category
Computer Programming And Software
Accession Number
94N70422
Distribution Limits
Public
Copyright
Work of the US Gov. Public Use Permitted.
Document Inquiry

Available Downloads

There are no available downloads for this record.
No Preview Available