Online Pattern Matching for String Edit Distance with Moves
Online Pattern Matching for String Edit Distance with Moves
复制标题
字符串编辑距离与移动的在线模式匹配
DOI:
10.1007/978-3-319-11918-2_20
复制
发表时间:
2014
期刊:
影响因子:
--
通讯作者:
Hiroshi Sakamoto
中科院分区:
文献类型:
--
作者:
Yoshimasa Takabatake;Yasuo Tabei;Hiroshi Sakamoto
Edit distance with moves (EDM) is a string-to-string distance measure that includes substring moves in addition to ordinal editing operations to turn one string to the other. Although optimizing EDM is intractable, it has many applications especially in error detections. Edit sensitive parsing (ESP) is an efficient parsing algorithm that guarantees an upper bound of parsing discrepancies between different appearances of the same substrings in a string. ESP can be used for computing an approximate EDM as theL1distance between characteristic vectors built by node labels in parsing trees. However, ESP is not applicable to a streaming text data where a whole text is unknown in advance. We present an online ESP (OESP) that enables an online pattern matching for EDM. OESP builds a parse tree for a streaming text and computes theL1distance between characteristic vectors in an online manner. For the space-efficient computation of EDM, OESP directly encodes the parse tree into a succinct representation by leveraging the idea behind recent results of a dynamic succinct tree. We experimentally test OESP on the ability to compute EDM in an online manner on benchmark datasets, and we show OESP’s efficiency.