|
ABSTRACT
Several graph-based algorithms have been proposed in the literature to compute the transitive closure of a directed graph. We develop two new algorithms (Basic_TC and Gobal_DFTC) and compare the performance of their implementations in a disk-based environment with a well-known graph-based algorithm proposed by Schmitz. Our algorithms use depth-first search to traverse a graph and a technique called marking to avoid processing some of the arcs in the graph. They compute the closure by processing nodes in reverse topological order, building descendent sets by adding the descendent sets of children. While the details of these algorithms differ considerably, one important difference among them is the time at which descendent set additions are performed. Basic_TC, results in superior performance. The first reason is that early additions result in larger descendent set sizes on the average over the duration of the execution, thereby causing more I/O; very often this turns out to more than offset the gains of not having to fetch certain sets again to add them. The second reason is that information collected in the first pass can be used to apply several optimizations in the second pass. To the extent possible, we also adapt these algorithms to perform path computations. Again, our performance comparison confirms the trends seen in reachability queries. Taken in conjunction with another performance study our results indicate that all graph-based algorithms significantly outperform other types of algorithms such as Seminaive and Warren.
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
|
|
| |
4
|
|
| |
5
|
|
| |
6
|
CARRE, B. Graphs and Networks. Clarendon Press, Oxford, England, 1979.
|
| |
7
|
|
| |
8
|
DAR, S. Ph.D. thesis, Univ. of Wisconsin-Madison, Aug. 1993.
|
| |
9
|
DIJKSTRA, E.W. A note on two problems in connection with graphs. Numer. Math. 1 (1959), 269-271.
|
| |
10
|
EBERT, J. A sensitive transitive closure algorithm. Inf. Process. Lett. 12, 5 (1981).
|
| |
11
|
EVE, J., AND KURKI-SUONIO, R. On computing the transitive closure of a relation. Acta Inf. (1977), 303-314.
|
| |
12
|
|
| |
13
|
|
| |
14
|
|
| |
15
|
|
| |
16
|
|
| |
17
|
R-M Kung , E Hanson , Y Ioannidis , T Sellis , L Shapiro , M Stonebraker, Heuristic search in database systems, Proceedings from the first international workshop on Expert database systems, p.537-548, January 1986, Kiawah Island, South Carolina, United States
|
| |
18
|
|
| |
19
|
|
| |
20
|
PURDOM, P. A transitive closure algorithm. BIT, 10 (1970), 76 94.
|
 |
21
|
|
| |
22
|
|
| |
23
|
|
 |
24
|
Arnon Rosenthal , Sandra Heiler , Umeshwar Dayal , Frank Manola, Traversal recursion: a practical approach to supporting recursive applications, Proceedings of the 1986 ACM SIGMOD international conference on Management of data, p.166-176, May 28-30, 1986, Washington, D.C., United States
|
| |
25
|
SCHMITZ, L. An improved transitive closure algorithm. Computing 30 (1983), 359 371.
|
| |
26
|
TARJAN, R.E. Depth-first search and linear graph algorithms. SIAM J. Comput. 1, 2 (1972), 146 160.
|
| |
27
|
VALDURmZ, P., AND BORAL, H. Evaluation ofrecursive queries using join indices. In Proceedings of the 1st International Expert Database Systems Conference (Charleston, S. C., April 1986), 197-208.
|
 |
28
|
|
 |
29
|
|
CITED BY 24
|
Hans-Peter Kriegel , Peer Kröger , Peter Kunath , Matthias Renz , Tim Schmidt, Proximity queries in large traffic networks, Proceedings of the 15th annual ACM international symposium on Advances in geographic information systems, November 07-09, 2007, Seattle, Washington
|
|
Yun-Wu Huang , Ning Jing , Elke A. Rundensteiner, Effective graph clustering for path queries in digital map databases, Proceedings of the fifth international conference on Information and knowledge management, p.215-222, November 12-16, 1996, Rockville, Maryland, United States
|
|
|
|
|
|
|
|
|
|
Ning Jing , Yun-Wu Huang , Elke A. Rundensteiner, Hierarchical optimization of optimal path finding for transportation applications, Proceedings of the fifth international conference on Information and knowledge management, p.261-268, November 12-16, 1996, Rockville, Maryland, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
Dimitris Papadias , Jun Zhang , Nikos Mamoulis , Yufei Tao, Query processing in spatial network databases, Proceedings of the 29th international conference on Very large data bases, p.802-813, September 09-12, 2003, Berlin, Germany
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Peer to Peer - Readers of this Article have also read:
-
Data structures for quadtree approximation and compression
Communications of the ACM
28, 9
Hanan Samet
-
A hierarchical single-key-lock access control using the Chinese remainder theorem
Proceedings of the 1992 ACM/SIGAPP Symposium on Applied computing
Kim S. Lee
, Huizhu Lu
, D. D. Fisher
-
The GemStone object database management system
Communications of the ACM
34, 10
Paul Butterworth
, Allen Otis
, Jacob Stein
-
Putting innovation to work: adoption strategies for multimedia communication systems
Communications of the ACM
34, 12
Ellen Francik
, Susan Ehrlich Rudman
, Donna Cooper
, Stephen Levine
-
An intelligent component database for behavioral synthesis
Proceedings of the 27th ACM/IEEE conference on Design automation
Gwo-Dong Chen
, Daniel D. Gajski
|