On the Floyd-Warshall algorithm for logic programs

Citation
C. Papadimitriou et M. Sideri, On the Floyd-Warshall algorithm for logic programs, J LOGIC PR, 41(1), 1999, pp. 129-137
Citations number
8
Categorie Soggetti
Computer Science & Engineering
Journal title
JOURNAL OF LOGIC PROGRAMMING
ISSN journal
07431066 → ACNP
Volume
41
Issue
1
Year of publication
1999
Pages
129 - 137
Database
ISI
SICI code
0743-1066(199910)41:1<129:OTFAFL>2.0.ZU;2-8
Abstract
We explore the possibility of evaluating single-rule Datalog programs effic iently and with logarithmic work space by a natural extension of the Floyd- Warshall algorithm for transitive closure. We characterize exactly the sing le rule chain programs that can be so evaluated - they are rather modest ge neralizations of the transitive closure. The proof relies on an interesting language-theoretic concept, total ambiguity. Extensions to more general cl asses of programs, and more general algorithms, are discussed. (C) 1999 Pub lished by Elsevier Science Inc. All rights reserved.