Directed graph pattern matching and topological embedding

被引:6
作者
Fu, JJH
机构
[1] Department of Computer Science, University of Waterloo, Waterloo
来源
JOURNAL OF ALGORITHMS-COGNITION INFORMATICS AND LOGIC | 1997年 / 22卷 / 02期
关键词
D O I
10.1006/jagm.1996.0818
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Pattern matching in directed graphs is a natural extension of pattern matching in trees and has many applications to different areas. In this paper, we study several pattern matching problems in ordered labeled directed graphs. For the rooted directed graph pattern matching problem, we present an efficient algorithm which, given a pattern graph P and a target graph T, runs in time and space O(\E(P)\ \V-T\ + \E(T)\). It is faster than the best known method by a factor of min{\E(T)\, \E(P)\ \V-T\}. This algorithm can also solve the directed graph pattern matching problem without increasing time or space complexity. Our solution to this problem outperforms the best existing method by Katzenelson, Pinter and Schenfeld by a factor of min{\V-P\ \E(T)\, \V-P\ \E(P)\ \V-T\}. We also present an algorithm for the directed graph topological embedding problem which runs in time O(\V-P\ \E(T)\ + \E(P)\) and space O(\V-P\ \V-T\ + \E(P)\ + \E(T)\). To our knowledge, this algorithm is the first one for this problem. (C) 1997 Academic Press.
引用
收藏
页码:372 / 391
页数:20
相关论文
共 17 条
[1]  
Aho Alfred V., 1986, ADDISON WESLEY SERIE
[2]  
AIKEN A., 1991, P 18 ANN ACM S PRINC, P279, DOI DOI 10.1145/99583.99621
[3]  
AIKEN A, 1991, P 5 ACM C FUNCT PROG, P427
[4]  
Cook S.A., 1971, P 3 ANN ACM S THEOR, P151, DOI DOI 10.1145/800157.805047
[5]  
Corradini A., 1993, P TAPSOFT 93 THEOR P, P468
[6]  
DERSHOWITZ N, 1989, PRINCIPLES PROGRAMMI, P250
[7]  
Dubiner M., 1990, Proceedings. 31st Annual Symposium on Foundations of Computer Science (Cat. No.90CH2925-6), P145, DOI 10.1109/FSCS.1990.89533
[8]  
FU J, 1995, P 6 ANN S COMB PATT, P64
[9]  
GLAUERT JRW, 1990, P 4 INT WORKSH GRAPH, P378
[10]  
HEINTZE N, 1990, P 17 ANN ACM S PRINC, P197