arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.05166cs.DS
收藏

排列模式计数的近似性问题

Inapproximability of Counting Permutation Patterns

Faculty of Information Technology, Czech Technical University in Prague(布拉格捷克理工大学信息技术学院)

Michal Opler

AI总结:

该研究反驳了近似计数比精确计数更容易的猜想,证明在ETH下,近似计数的精度下限与精确计数的下限一致。

摘要:

检测和计数排列模式的副本是基本的算法问题,应用于排名分析、非参数统计和属性测试任务,如独立性和准随机性测试。从算法角度来看,检测和计数给定长度为k的模式在长度为n的排列中的副本在复杂性上有显著差异。前者允许在2^{O(k^2)}·n时间内完成(Guillemot和Marx,2014),而后者除非指数时间假说(ETH)不成立,否则无法在f(k)·n^{o(k/log k)}时间内解决(Berendsohn、Kozma和Marx,2021)。事实上,对于长度为4的模式,精确计数在标准细粒度复杂性假设下可能无法在近线性时间内完成(Dudek和Gawrychowski,2020)。最近,Ben-Eliezer、Mitrović和Sristava(2026)证明,对于长度不超过5的模式,可以在近线性时间内计算模式计数的(1+ε)近似值,从而在小模式上实现了精确计数和近似计数的分离,并推测在一般情况下,近似计数在渐近上比精确计数更容易。我们通过证明,在ETH下,没有任何算法能在f(k)·n^{o(k/log k)}时间内以乘法因子n^{(1/2-ε)k}的精度近似长度为k的模式的副本数量,从而强烈反驳了他们的猜想。该运行时间下限与精确模式计数的条件下限相匹配,而获得的乘法误差因子下限几乎紧,因为使用模式检测算法可以在2^{O(k^2)}·n时间内计算n^{k/2}的近似值。

英文摘要:

Detecting and counting copies of permutation patterns are fundamental algorithmic problems, with applications in the analysis of rankings, nonparametric statistics, and property testing tasks such as independence and quasirandomness testing. From an algorithmic perspective, there is a sharp difference in complexity between detecting and counting the copies of a given length-$k$ pattern in a length-$n$ permutation. The former admits a $2^{\mathcal{O}(k^2)} \cdot n$ time algorithm (Guillemot and Marx, 2014) while the latter cannot be solved in time $f(k)\cdot n^{o(k/\log k)}$ unless the Exponential Time Hypothesis (ETH) fails (Berendsohn, Kozma, and Marx, 2021). In fact already for patterns of length 4, exact counting is unlikely to admit near-linear time algorithms under standard fine-grained complexity assumptions (Dudek and Gawrychowski, 2020). Recently, Ben-Eliezer, Mitrović and Sristava (2026) showed that for patterns of length up to 5, a $(1+\varepsilon)$-approximation of the pattern count can be computed in near-linear time, yielding a separation between exact and approximate counting for small patterns, and conjectured that approximate counting is asymptotically easier than exact counting in general. We strongly refute their conjecture by showing that, under ETH, no algorithm running in time $f(k)\cdot n^{o(k/\log k)}$ can approximate the number of copies of a length-$k$ pattern within a multiplicative factor $n^{(1/2-\varepsilon)k}$. The lower bound on runtime matches the conditional lower bound for exact pattern counting, and the obtained bound on the multiplicative error factor is essentially tight, as an $n^{k/2}$-approximation can be computed in $2^{\mathcal{O}(k^2)}\cdot n$ time using an algorithm for pattern detection.

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

↑