| An optimal graph traversal algorithm for evaluating linear binary-chain programs |
| Full text |
Pdf
(947 KB)
|
| Source
|
Conference on Information and Knowledge Management
archive
Proceedings of the third international conference on Information and knowledge management
table of contents
Gaithersburg, Maryland, United States
Pages: 34 - 41
Year of Publication: 1994
ISBN:0-89791-674-3
|
|
Authors
|
|
Yangjun Chen
|
Department of Computer Science, University of Kaiserslautern, P.O. Box 3049, 67653 Kaiserslautern, Germany
|
|
Theo Härder
|
Department of Computer Science, University of Kaiserslautern, P.O. Box 3049, 67653 Kaiserslautern, Germany
|
|
| Sponsors |
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 1, Downloads (12 Months): 24, Citation Count: 0
|
|
|
ABSTRACT
Grahne et al. have presented a graph algorithm for 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 the algorithm of Grahne et al. The key idea of the improvement is to reduce the search space that will be traversed when a query is invoked. Further, 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 cyclic and non-cyclic data.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
|
| |
2
|
|
 |
3
|
Francois Bancilhon , David Maier , Yehoshua Sagiv , Jeffrey D Ullman, Magic sets and other strange ways to implement logic programs (extended abstract), Proceedings of the fifth ACM SIGACT-SIGMOD symposium on Principles of database systems, p.1-15, March 24-26, 1986, Cambridge, Massachusetts, United States
[doi> 10.1145/6012.15399]
|
 |
4
|
|
| |
5
|
|
| |
6
|
C. Chang, On the Evaluation of Queries Containing Derived Relations in Relational Database, in: Advances in Data Base Theory, Vol. 1, Plenum, 1981.
|
| |
7
|
Y. Chen, Processing of Recursive Rules in Knowledgebased Systems, Forthcoming Ph.D. thesis, University of Kaiserslautern, Germany, 1994.
|
| |
8
|
Y. Chen and T. H#rder, Graph Traversal and Linear Binary-chain Programs, ZRi-Report 4/94, University of Kaiserslautern, Germany, 1994.
|
 |
9
|
G. Grahne , S. Sippu , E. Soisalon-Soininen, Efficient evaluation for a subset of recursive queries, Proceedings of the sixth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.284-293, March 23-25, 1987, San Diego, California, United States
[doi> 10.1145/28659.28690]
|
| |
10
|
|
| |
11
|
|
| |
12
|
J. Hen and S. Chert, Graphic Representation of Linear Recursive Rules, Int. Journal Of Intelligent Systems, VOL. 7, 317-337 (1992)
|
| |
13
|
J. Han and L.J.Henschen, The Level-Cycle Merging Method, Proc. 1st Int. Conf. on Deductive and Object-oriented Databases, Kyoto, 1989.
|
 |
14
|
|
 |
15
|
A. Marchetti-Spaccamella , A. Pelaggi , D. Sacca, Worst-case complexity analysis of methods for logic query implementation, Proceedings of the sixth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.294-301, March 23-25, 1987, San Diego, California, United States
[doi> 10.1145/28659.28691]
|
| |
16
|
|
 |
17
|
|
| |
18
|
S. Shapiro and D. Mckay, Inference with Recursive Rules, in: Proc. 1st Annual National Conference on Artificial Intelligence, 1980.
|
| |
19
|
R. Tarjan, Depth-first Search and Linear Graph Algorithm, SIAM J. Comput. Vol. 1. No. 2. June 1972.
|
| |
20
|
|
| |
21
|
L. Vieille, From QSQ to QoSaQ: Global Optimization of Recursive Queries, Proc. 2th Int. Con}. on E#.pert Database System, L.Kerschberg ed., Charleston, 1988.
|
| |
22
|
C. Wu and L.J. Henschen, Answering Linear Recursive Queries in Cyclic Databases, Proc. 1988 Int. Conf. on F,fth Gen. Computer Systems, Tokyo, 1988.
|
|