More efficient algorithm for ordered tree inclusion

被引:23
作者
Chen, WM [1 ]
机构
[1] IPSI, GMD, D-64293 Darmstadt, Germany
关键词
D O I
10.1006/jagm.1997.0899
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Given two ordered trees S and J the tree inclusion problem is to determine whether it is possible to obtain S from J by deleting nodes. Recently, this problem has been recognized as an important primitive in query processing for structured text databases. In this paper we present an O(\leaves(S)\\J\) time and O(\leaves(S)\min(depth(J), \leave(J)\)) space algorithm for ordered tree inclusion, by means of a sophisticated bottom-up-matching strategy. Our algor algorithm improves the previous best one (Kilpelainen, 1992, Ph.D, thesis, Dept. Computer Science, Univ. Helsinki) that requires O(\S\J\) time and O(\S\min(depth(J), \leaves(J)\)) space. (C) 1998 Academic Press.
引用
收藏
页码:370 / 385
页数:16
相关论文
共 11 条
[1]  
ALONSO L, 1993, P MATH FDN COMP SCI, P211
[2]  
Gonnet G. H., 1987, Proceedings of the Thirteenth International Conference on Very Large Data Bases: 1987 13th VLDB, P339
[3]   ORDERED AND UNORDERED TREE INCLUSION [J].
KILPELAINEN, P ;
MANNILA, H .
SIAM JOURNAL ON COMPUTING, 1995, 24 (02) :340-356
[4]  
KILPELAINEN P, 1992, THESIS U HELSINKI
[5]  
Knuth D.E., 1969, The Art of Computer Programming. Vol. 1: Fundamental Algorithms, V1
[6]  
Mannila H., 1990, Information modelling and knowledge bases, P469
[7]   ON THE COMPLEXITY OF FINDING ISOMORPHISMS AND OTHER MORPHISMS FOR PARTIAL K-TREES [J].
MATOUSEK, J ;
THOMAS, R .
DISCRETE MATHEMATICS, 1992, 108 (1-3) :343-364
[8]   FAST ALGORITHMS FOR THE UNIT COST EDITING DISTANCE BETWEEN TREES [J].
SHASHA, D ;
ZHANG, KZ .
JOURNAL OF ALGORITHMS, 1990, 11 (04) :581-621
[9]  
TAGUE J, 1991, P ACM SIGIR 91 NEW Y, P14
[10]   TREE-TO-TREE CORRECTION PROBLEM [J].
TAI, KC .
JOURNAL OF THE ACM, 1979, 26 (03) :422-433