NASA Logo

NTRS

NTRS - NASA Technical Reports Server

Back to Results
Efficient reordering of PROLOG programsPROLOG programs are often inefficient: execution corresponds to a depth-first traversal of an AND/OR graph; traversing subgraphs in another order can be less expensive. It is shown how the reordering of clauses within PROLOG predicates, and especially of goals within clauses, can prevent unnecessary search. The characterization and detection of restrictions on reordering is discussed. A system of calling modes for PROLOG, geared to reordering, is proposed, and ways to infer them automatically are discussed. The information needed for safe reordering is summarized, and which types can be inferred automatically and which must be provided by the user are considered. An improved method for determining a good order for the goals of PROLOG clauses is presented and used as the basis for a reordering system.
Document ID
19900036568
Acquisition Source
Legacy CDMS
Document Type
Reprint (Version printed in journal)
External Source(s)
Authors
Gooley, Markian M.
(Illinois Univ. Urbana, IL, United States)
Wah, Benjamin W.
(Illinois, University Urbana, United States)
Date Acquired
August 14, 2013
Publication Date
December 1, 1989
Publication Information
Publication: IEEE Transactions on Knowledge and Data Engineering
Volume: 1
ISSN: 1041-4347
Subject Category
Computer Programming And Software
Accession Number
90A23623
Funding Number(s)
CONTRACT_GRANT: NCC2-481
CONTRACT_GRANT: NAG1-613
Distribution Limits
Public
Copyright
Other

Available Downloads

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