排列中4-模式的计数等价于图中4-圈的计数
Counting 4-Patterns in Permutations Is Equivalent to Counting 4-Cycles in Graphs
摘要:
如果存在顺序同构于$σ$的$π$的子序列,则置换$σ$出现在置换$π$中。自然的问题是检查$σ$是否出现在$π$中,如果出现,则计算出现的次数。我们知道,对于任何固定的长度~k,我们可以检查长度为k的给定模式是否出现在长度为n的排列中,在时间上是n的线性,但是能够在$f(k)\cdot n^{o(k/\log k)}$时间内计数所有这样的出现将反驳指数时间假设(ETH)。这激发了对固定小长度k的不同模式的计数发生的复杂性的系统研究。我们在k=4的情况下研究这个问题。最近,Even-Zohar和Leng [arXiv 2019]确定了两种类型的4-模式。对于第一种类型,他们设计了$Õ(n)$时间算法,而对于第二种类型,他们能够提供$Õ(n^{1.5})$时间算法。这就提出了一个问题,第二种类型的排列是否本质上比第一种类型更难。我们建立了第二类4-模式计数和稀疏无向图4-圈计数之间的联系。通过设计双向约简,我们表明这两个问题的复杂性是相同的,直到多对数因子。这使我们能够提供一个合理的论点,为什么在计算两种类型的4-模式的复杂性有差异。特别地,即使对于在m个边上检测图中的4-圈的更简单的问题,最已知的算法也在$O(m^{4/3})$时间内工作。我们的减少意味着一个$O(n^{4/3-\varepsilon})$时间算法计数发生将意味着一个令人兴奋的突破计数(因此也检测)4周期。在另一个方向,通过插入已知的最快的算法计数4-周期,我们得到一个算法计数出现的任何4-模式在$O(n^{1.48})$时间。
英文摘要:
Permutation $σ$ appears in permutation $π$ if there exists a subsequence of $π$ that is order-isomorphic to $σ$. The natural question is to check if $σ$ appears in $π$, and if so count the number of occurrences. We know that for any fixed length~k, we can check if a given pattern of length k appears in a permutation of length n in time linear in n, but being able to count all such occurrences in $f(k)\cdot n^{o(k/\log k)}$ time would refute the exponential time hypothesis (ETH). This motivates a systematic study of the complexity of counting occurrences for different patterns of fixed small length k. We investigate this question for k=4. Very recently, Even-Zohar and Leng [arXiv 2019] identified two types of 4-patterns. For the first type they designed an $Õ(n)$ time algorithm, while for the second they were able to provide an $Õ(n^{1.5})$ time algorithm. This brings up the question whether the permutations of the second type are inherently harder than the first type. We establish a connection between counting 4-patterns of the second type and counting 4-cycles in a sparse undirected graph. By designing two-way reductions we show that the complexities of both problems are the same, up to polylogarithmic factors. This allows us to provide a reasonable argument for why there is a difference in the complexities for counting 4-patterns of the two types. In particular, even for the simpler problem of detecting a 4-cycle in a graph on m edges, the best known algorithm works in $O(m^{4/3})$ time. Our reductions imply that an $O(n^{4/3-\varepsilon})$ time algorithm for counting occurrences would imply an exciting breakthrough for counting (and hence also detecting) 4-cycles. In the other direction, by plugging in the fastest known algorithm for counting 4-cycles, we obtain an algorithm for counting occurrences of any 4-pattern in $O(n^{1.48})$ time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。