基于位运算的轻量级指纹快速近似关键字匹配
Lightweight Fingerprints for Fast Approximate Keyword Matching Using Bitwise Operations
摘要:
我们的目标是通过为每个字符串存储一个轻量级的、固定大小的数据块(称为指纹)来加速近似关键字匹配。它们的工作方式与哈希值类似;但是,它们也可以用于匹配错误。它们使用单个位存储关于符号出现的信息,并且可以通过恒定数量的逐位操作来相互比较。以这种方式,某些字符串可以被推断为彼此至少在距离$k$内(使用汉明或Levenshtein距离),而无需执行显式验证。我们的实验表明,对于预处理的字符串集合,指纹可以提供大量的加速$k = 1$,即超过$2.5$倍的汉明距离和超过$10$倍的Levenshtein距离。对合成和真实世界的英语和URL数据进行了测试。
英文摘要:
We aim to speed up approximate keyword matching by storing a lightweight, fixed-size block of data for each string, called a fingerprint. These work in a similar way to hash values; however, they can be also used for matching with errors. They store information regarding symbol occurrences using individual bits, and they can be compared against each other with a constant number of bitwise operations. In this way, certain strings can be deduced to be at least within the distance $k$ from each other (using Hamming or Levenshtein distance) without performing an explicit verification. We show experimentally that for a preprocessed collection of strings, fingerprints can provide substantial speedups for $k = 1$, namely over $2.5$ times for the Hamming distance and over $10$ times for the Levenshtein distance. Tests were conducted on synthetic and real-world English and URL data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。