We explore the possibility of evaluating single-rule Datalog programs efficiently and with logarithmic work space by a natural extension of the Floyd-Warshall algorithm for transitive closure. We characterize exactly the single rule chain programs that can be so evaluated - they are rather modest generalizations of the transitive closure. The proof relies on an interesting language-theoretic concept, total ambiguity. Extensions to more general classes of programs, and more general algorithms, are discussed.
CITATION STYLE
Papadimitriou, C., & Sideri, M. (1999). On the Floyd-Warshall algorithm for logic programs. Journal of Logic Programming, 41(1), 129–137. https://doi.org/10.1016/S0743-1066(99)00013-8
Mendeley helps you to discover research relevant for your work.