近似字符串匹配:理论与应用(La Recherche Approchée de Motifs:理论与应用)
Approximate String Matching: Theory and Applications (La Recherche Approchée de Motifs : Théorie et Applications)
摘要:
近似字符串匹配是计算机科学中经常出现的基本问题。这个问题可以定义如下:设$D=\{x_1,x_2,\ldots x_d\}$是一组定义在字母表$Σ$上的$d$单词,设$q$是一个也定义在$Σ$上的查询,设$k$是一个正整数。我们希望在$D$上构建一个能够回答以下查询的数据结构:在$D$中找到所有与查询词$q$最多不同的词,并带有$k$错误。在这篇论文中,我们研究了字典、文本和索引中的近似字符串匹配方法,提出了有效解决这个问题的实用方法。我们从三个互补的方向来探讨这个问题:1)字典中的近似字符串匹配。针对这个问题,我们提出了两种解决方案,第一种是使用哈希表来实现$k \geq 2$,第二种是使用Trie和反向Trie,并且限制为(k = 1)。这两个解决方案都适用于文本中的近似字符串匹配,而不会损失性能。2)\textit{autocompletion}的近似字符串匹配,即查找给定前缀中可能包含错误的所有后缀。我们给出了一个新的解决方案,更好地在实践中比所有以前提出的解决方案。3)生物序列的比对问题可以被解释为一个近似的字符串匹配问题。我们提出了一个解决方案的同行和多序列比对。\medskip所有获得的结果表明,我们的算法,给最好的性能集的实际数据(基准从现实世界)。我们所有的方法都是以库的形式提出的,它们都在网上发布。
英文摘要:
The approximate string matching is a fundamental and recurrent problem that arises in most computer science fields. This problem can be defined as follows: Let $D=\{x_1,x_2,\ldots x_d\}$ be a set of $d$ words defined on an alphabet $Σ$, let $q$ be a query defined also on $Σ$, and let $k$ be a positive integer. We want to build a data structure on $D$ capable of answering the following query: find all words in $D$ that are at most different from the query word $q$ with $k$ errors. In this thesis, we study the approximate string matching methods in dictionaries, texts, and indexes, to propose practical methods that solve this problem efficiently. We explore this problem in three complementary directions: 1) The approximate string matching in the dictionary. We propose two solutions to this problem, the first one uses hash tables for $k \geq 2$, the second uses the Trie and reverse Trie, and it is restricted to (k = 1). The two solutions are adaptable, without loss of performance, to the approximate string matching in a text. 2) The approximate string matching for \textit{autocompletion}, which is, find all suffixes of a given prefix that may contain errors. We give a new solution better in practice than all the previous proposed solutions. 3) The problem of the alignment of biological sequences can be interpreted as an approximate string matching problem. We propose a solution for peers and multiple sequences alignment. \medskip All the results obtained showed that our algorithms, give the best performance on sets of practical data (benchmark from the real world). All our methods are proposed as libraries, and they are published online.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。