Issue No. 03 - May/June (2003 vol. 15)
<p><b>Abstract</b>—Grahne et al. have presented a graph algorithm for evaluating a subset of recursive queries. This method consists of two phases. In the first phase, the method transforms a linear binary-chain program into a set of equations over expressions containing predicate symbols. In the second phase, a graph is constructed from the equations and the answers are produced by traversing the relevant paths. Here, we describe a new algorithm which requires less time than Grahne's. The key idea of the improvement is to reduce the search space that will be traversed when a query is invoked. Furthermore, we speed up the evaluation of cyclic data by generating most answers directly in terms of the answers already found and the associated “path information” instead of traversing the corresponding paths as usual. In this way, our algorithm achieves a linear time complexity for both acyclic and cyclic data.</p>
Deductive database, binary-chain programs, automaton, graph searching, feedback node.
Yangjun Chen, "On the Graph Traversal and Linear Binary-Chain Programs", IEEE Transactions on Knowledge & Data Engineering, vol. 15, no. , pp. 573-596, May/June 2003, doi:10.1109/TKDE.2003.1198392