格函数的紧逼近及其在大字母文本搜索中的应用
Compact Approximation of Lattice Functions with Applications to Large-Alphabet Text Search
摘要:
我们提出了一个非常简单的随机数据结构,存储从上面的一个格值函数的近似。计算函数值需要恒定的步骤数,并且错误概率可以与空间使用相平衡,就像在Bloom过滤器中一样。该结构特别适合于在其大多数域上处于底层的函数。然后,我们将展示如何使用我们的方法来存储在一个紧凑的方式坏字符移位函数的变体的博耶-摩尔文本搜索算法。因此,我们获得了这些算法的实际实现,可以用于大型字母表,如Unicode排序规则元素,与一个小的设置时间。本文中描述的想法已在MG 4J项目(http://mg4j.dsi.unimi.it/)中根据GNU通用公共许可证作为自由软件实现。
英文摘要:
We propose a very simple randomised data structure that stores an approximation from above of a lattice-valued function. Computing the function value requires a constant number of steps, and the error probability can be balanced with space usage, much like in Bloom filters. The structure is particularly well suited for functions that are bottom on most of their domain. We then show how to use our methods to store in a compact way the bad-character shift function for variants of the Boyer-Moore text search algorithms. As a result, we obtain practical implementations of these algorithms that can be used with large alphabets, such as Unicode collation elements, with a small setup time. The ideas described in this paper have been implemented as free software under the GNU General Public License within the MG4J project (http://mg4j.dsi.unimi.it/).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。