首页> 外文期刊>LIPIcs : Leibniz International Proceedings in Informatics >Counting 4-Patterns in Permutations Is Equivalent to Counting 4-Cycles in Graphs
【24h】

Counting 4-Patterns in Permutations Is Equivalent to Counting 4-Cycles in Graphs

机译:在排列中计数4模式相当于图表中的4个周期

获取原文
           

摘要

Permutation ?f appears in permutation ?? if there exists a subsequence of ?? that is order-isomorphic to ?f. The natural algorithmic question is to check if ?f appears in ??, and if so count the number of occurrences. Only since very recently 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)a. n^o(k/log k) time would refute the exponential time hypothesis (ETH). Together with practical applications in statistics, 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 e?'aìf(n) time algorithm, while for the second they were able to provide an e?'aìf(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 (not necessarily induced) 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 leverage the work done on the latter to provide a reasonable argument for why there is a difference in the complexities for counting 4-patterns of the first and the second type. In particular, even for the seemingly simpler problem of detecting a 4-cycle in a graph on m edges, the best known algorithm works in e?'a(m^{4/3}) time. Our reductions imply that an e?'a(n^{4/3-?μ}) time algorithm for counting occurrences of any 4-pattern of the second type in a permutation of length n 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 of the second type in e?'a(n^1.48) time.
机译:排列?F出现在排列中?如果存在后续的子序列这是命令同性的?f。自然算法问题是检查是否出现在??,如果是,则计算出现的次数。只有自最近我们知道对于任何固定长度k,我们可以检查长度K的给定模式是否在n中的时间线性的长度n置换中,但能够计算f(k)a中的所有此类出现<。 n ^ o(k / log k)时间将反驳指数时间假设(Eth)。与统计数据的实际应用一起,这激励了对不同模式的不同模式的计数成因的复杂性的系统研究。我们调查了K = 4的这个问题。最近,偶数Zohar和Leng [Arxiv 2019]确定了两种类型的4型模式。对于他们设计的第一类型,它们设计了一个e?'aìf(n)时间算法,而第二种类型,它们能够提供e?'aìf(n ^ 1.5)时间算法。这使得第二种类型的排列是多于第一类型的问题。我们在稀疏无向图中计算第二种类型的4型模式和计数4周期(不一定感应)之间的连接。通过设计双向减少,我们表明,这两个问题的复杂性都是相同的,直到积极的因素。这使我们能够利用在后者上完成的工作,以提供合理的参数,以为为什么对第一和第二类型的4-模式的复杂性存在差异。特别是,即使对于在M边缘上的图表中检测4周期的看似更简单的问题,也是最着名的算法在e?'a(m ^ {4/3})中工作。我们的减少意味着用于计数长度N置换中的用于计数任何4模式的任何4型模式的发生的时间算法将意味着计数的令人兴奋的突破(和因此还检测到4个循环。在另一个方向上,通过以最快的已知算法插入用于计数4周期的算法,我们获得了一种用于计数E中的任何4型模式的发生的算法?'a(n ^ 1.48)时间。

著录项

获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号