FAST 2-DIMENSIONAL PATTERN-MATCHING

被引:20
作者
BAEZAYATES, R [1 ]
REGNIER, M [1 ]
机构
[1] INRIA,F-78153 LE CHESNAY,FRANCE
关键词
D O I
10.1016/0020-0190(93)90250-D
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
An algorithm for searching for a two-dimensional m X m pattern in a two-dimensional n x n text is presented. It performs on the average less comparisons than the size of the text: n2/m using m2 extra space. Basically, it uses multiple string matching on only n/m rows of the text. It runs in at most 2n2 time and is close to the optimal n2 time for many patterns. It steadily extends to an alphabet-independent algorithm with a similar worst case. Experimental results are included for a practical version.
引用
收藏
页码:51 / 57
页数:7
相关论文
共 15 条