Shortest Path by Approximation Programs SUZANNE Arizona W. DIETRICH University State in Logic An approximation paradigm is proposed for logic programming as a simple modification to a complete evaluation strategy. The motivational example illustrates how a straightforward transformation of a declarative specification of the distance between two vertices in a directed graph leads to sophisticated algorithms for computing shortest paths. The goal of the work presented in this paper is not to provide a more efficient computation of shortest paths but to investigate how the intermediate tables, known as extension tables, generated by the complete evaluation strategy might be used m approximation algorithms. We present the ETd, ,t ,nC, algorithm, which computes single-source and all-pairs shortest paths over a declarative logic program. The ETd,,, ,nC, algorithm takes advantage of the dynamic programming property of shortest paths and the ability of extension tables to store global information to converge to the optimal solution. TO put the ETd,, ~a~C,algorithm in perspective, its execution k compared to those of Dijkstra s single-source and Floyd s all-pairs shortest path algorithms. Categories and Subject Descriptors: D. 1.6 [Programming General Terms: Algorithms Additional Key Words and Phrases: Approximation, dynamic programming, shortest paths Techniques]: Logic
/lp/association-for-computing-machinery/shortest-path-by-approximation-in-logic-programs-Uku2XsNylO