arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.13320cs.DScs.CCcs.LOcs.PL
收藏

一种用于 #NFA 的更快 FPRAS

A faster FPRAS for #NFA

Kuldeep S. Meel, Sourav Chakraborty, Umang Mathur

AI总结:

针对现有 #NFA 的 FPRAS 复杂度过高的问题,本文改进计数与采样方案,将每状态样本数降为与 m 无关的 \widetilde{O}(n^4/ε^2)。

摘要:

给定一个具有 m 个状态的非确定性有限自动机(NFA)A,以及一个自然数 n(以一元形式给出),#NFA 问题要求确定 A 所接受的长度为 n 的单词集合 L(A_n) 的大小。尽管检查 L(A_n) 是否为空这一相应的判定问题可以在多项式时间内求解,但众所周知 #NFA 问题是 #P 困难的。最近,一个长期存在的开放问题——#NFA 是否存在 FPRAS(完全多项式时间随机近似方案)——在文献 \cite{ACJR19} 中得到解决。由文献 \cite{ACJR19} 提出的 FPRAS 依赖于计数与采样之间的可相互归约性,并且对于每一对状态 q 和自然数 i ≤ n,它会从长度为 i 且存在一条终止于 q 的运行的单词集合中,计算 O(\frac{m^7 n^7}{epsilon^7}) 个均匀选取的样本(ε 是该 FPRAS 的误差容限参数)。这一信息性度量——即每个状态和每个长度所维护的样本数量——还以二次依赖关系影响总体时间复杂度。鉴于文献 \cite{ACJR19} 所提出 FPRAS 在每一个输入参数方面都具有高得令人却步的时间复杂度,同时考虑到近似计数(以及采样)在计算机科学各类任务中的广泛应用,一个自然的问题随之产生:是否存在一种更快的 #NFA FPRAS,能够为近似 #NFA 工具的实际实现铺平道路?在本工作中,我们证明时间复杂度可以获得显著改进。具体而言,我们已经将每个状态所需的样本数量降低为与 m 无关,并且对 n 和 ε 的依赖也显著减少,每个状态仅维护 \widetilde{O}(\frac{n^4}{epsilon^2}) 个样本。

英文摘要:

Given a non-deterministic finite automaton (NFA) A with m states, and a natural number n (presented in unary), the #NFA problem asks to determine the size of the set L(A_n) of words of length n accepted by A. While the corresponding decision problem of checking the emptiness of L(A_n) is solvable in polynomial time, the #NFA problem is known to be #P-hard. Recently, the long-standing open question -- whether there is an FPRAS (fully polynomial time randomized approximation scheme) for #NFA -- was resolved in \cite{ACJR19}. The FPRAS due to \cite{ACJR19} relies on the interreducibility of counting and sampling, and computes, for each pair of state q and natural number i <= n, a set of O(\frac{m^7 n^7}{epsilon^7}) many uniformly chosen samples from the set of words of length i that have a run ending at q (εis the error tolerance parameter of the FPRAS). This informative measure -- the number of samples maintained per state and length -- also affects the overall time complexity with a quadratic dependence. Given the prohibitively high time complexity, in terms of each of the input parameters, of the FPRAS due to \cite{ACJR19}, and considering the widespread application of approximate counting (and sampling) in various tasks in Computer Science, a natural question arises: Is there a faster FPRAS for #NFA that can pave the way for the practical implementation of approximate #NFA tools? In this work, we demonstrate that significant improvements in time complexity are achievable. Specifically, we have reduced the number of samples required for each state to be independent of m, with significantly less dependence on $n$ and $ε$, maintaining only \widetilde{O}(\frac{n^4}{epsilon^2}) samples per state.

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

↑