arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2307.07267cs.DS
收藏

随机 Wheeler 自动机

Random Wheeler Automata

Ruben Becker, Davide Cenzato, Sung-Hwan Kim, Bojana Kodric, Riccardo Maso, Nicola Prezza

AI总结:

本文首次研究随机 Wheeler 自动机,将 Erdős-Rényi 随机图模型扩展到确定性 Wheeler 自动机,提出线性期望时间生成均匀 WDFA 的算法,并给出编码所需比特数的紧界及高效实现。

摘要:

Wheeler 自动机于 2017 年被引入,作为一种推广基于 Burrows-Wheeler 变换的现有索引与压缩技术的工具。直观地说,如果一个自动机的状态上存在一个全序,该全序反映了标记自动机路径的字符串的共词典序,则称该自动机为 Wheeler 自动机;这一性质使得可以用每个转移常数个比特来表示自动机的拓扑结构,并且能够在其接受的正则语言上高效地解决模式匹配查询。自提出以来,Wheeler 自动机已成为一条成果丰富的研究主线,既有算法视角的研究,也有语言论视角的研究。这些研究中反复遇到的一个问题是缺乏大规模的 Wheeler 自动机数据集,使得已开发的算法和理论难以在其上进行测试。克服这一问题的一种可能方法是生成随机 Wheeler 自动机。受此观察的启发,本文启动了随机 Wheeler 自动机的理论研究,重点关注确定性情形(Wheeler DFA——WDFA)。我们首先将 Erdős-Rényi 随机图模型扩展到 WDFA,然后给出一个根据该模型生成均匀 WDFA 的算法。对于所有满足字母表大小 σ ≤ m/ln m 的字母表,我们的算法在 O(m) 期望时间内(以高概率最坏情况时间为 O(m log m))并以常数工作空间生成具有 n 个状态、m 个转移和字母表基数 σ 的均匀 WDFA。作为副产品,我们还给出了不同 WDFA 数量的公式,并得到:编码一个具有 n 个状态和大小为 σ 的字母表的 WDFA,在附加 Θ(n) 项的意义下,nσ + (n - σ) log σ 比特是必要且充分的。我们给出了该算法的实现,并表明它在实践中极快,吞吐量超过每秒 800 万个转移。

英文摘要:

Wheeler automata were introduced in 2017 as a tool to generalize existing indexing and compression techniques based on the Burrows-Wheeler transform. Intuitively, an automaton is said to be Wheeler if there exists a total order on its states reflecting the co-lexicographic order of the strings labeling the automaton's paths; this property makes it possible to represent the automaton's topology in a constant number of bits per transition, as well as efficiently solving pattern matching queries on its accepted regular language. After their introduction, Wheeler automata have been the subject of a prolific line of research, both from the algorithmic and language-theoretic points of view. A recurring issue faced in these studies is the lack of large datasets of Wheeler automata on which the developed algorithms and theories could be tested. One possible way to overcome this issue is to generate random Wheeler automata. Motivated by this observation, in this paper we initiate the theoretical study of random Wheeler automata, focusing on the deterministic case (Wheeler DFAs -- WDFAs). We start by extending the Erdős-Rényi random graph model to WDFAs, and proceed by providing an algorithm generating uniform WDFAs according to this model. Our algorithm generates a uniform WDFA with $n$ states, $m$ transitions, and alphabet's cardinality $σ$ in $O(m)$ expected time ($O(m\log m)$ worst-case time w.h.p.) and constant working space for all alphabets of size $σ\le m/\ln m$. As a by-product, we also give formulas for the number of distinct WDFAs and obtain that $ nσ+ (n - σ) \log σ$ bits are necessary and sufficient to encode a WDFA with $n$ states and alphabet of size $σ$, up to an additive $Θ(n)$ term. We present an implementation of our algorithm and show that it is extremely fast in practice, with a throughput of over 8 million transitions per second.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑