压缩式无环确定性有限自动机
Packed Acyclic Deterministic Finite Automata
AI总结:
本文提出紧凑的压缩式无环确定性有限自动机(PADFA),通过将特定路径编码为连续内存中的压缩字符串优化模式搜索,理论和实验均证明其在空间和时间效率上优于传统结构。
摘要:
无环确定性有限自动机(ADFA)是一种表示字符串集合(即字典)的数据结构,可用于解决判断给定模式串是否存在于字典中的模式搜索问题。本文提出压缩式ADFA(PADFA),它是ADFA的紧凑变体,通过将特定路径编码为存储在连续内存中的压缩字符串,实现更高效的模式搜索。我们从理论上证明,PADFA中的模式搜索接近时间最优,仅带有少量额外开销,且当模式足够长时可达到完全时间最优。此外,我们证明当字典规模相对小于PADFA的状态数时,PADFA比前缀树(trie)占用的比特数更少。最后,我们通过实验表明,在真实数据集上,PADFA同时提升了模式搜索的空间效率和时间效率。
英文摘要:
An acyclic deterministic finite automaton (ADFA) is a data structure that represents a set of strings (i.e., a dictionary) and facilitates a pattern searching problem of determining whether a given pattern string is present in the dictionary. We introduce the packed ADFA (PADFA), a compact variant of ADFA, which is designed to achieve more efficient pattern searching by encoding specific paths as packed strings stored in contiguous memory. We theoretically demonstrate that pattern searching in PADFA is near time-optimal with a small additional overhead and becomes fully time-optimal for sufficiently long patterns. Moreover, we prove that a PADFA requires fewer bits than a trie when the dictionary size is relatively smaller than the number of states in the PADFA. Lastly, we empirically show that PADFAs improve both the space and time efficiency of pattern searching on real-world datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。