我们重新研究了在图中寻找三角形的算法问题:提出了一种随机组合算法,用于在给定的含$n$个顶点、$m$条边的图中进行三角形检测,其时间复杂度为$O(n^{7/3})$,另一种表述为$O(m^{4/3})$。这一结果可能出人意料,因为它推翻了文献中的若干猜想。具体而言:\n- $O(n^{7/3})$的运行时间超越了由Itai和Rodeh(1978)提出的、长期以来最快的基于矩阵乘法的三角形检测算法,该算法时间复杂度为$O(n^ω) = O(n^{2.372})$。\n- $O(m^{4/3})$的运行时间超越了由Alon、Yuster和Zwick(1997)提出的、长期以来最快的稀疏图三角形检测基于矩阵乘法的算法,该算法时间复杂度为$O(m^{2ω/(ω+1)})= O(m^{1.407})$。\n- 通过V. V. Williams和R. R. Williams(2018)的归约方法,该$O(n^{7/3})$时间的三角形检测算法可推导出一种时间复杂度为$O(n^{25/9} \log{n})$的$n \times n$布尔矩阵乘法组合算法,这推翻了A. Abboud和V. V. Williams(FOCS 2014)的一个猜想。\n- $O(m^{4/3})$的运行时间推翻了A. Abboud和V. V. Williams(FOCS 2014)的猜想,即任何三角形检测组合算法都需要$m^{3/2 - o(1)}$的时间。\n- 作为该三角形检测算法的直接应用,我们得到了一种更快的$k$-团问题精确算法,超越了Nešetřil和Poljak(1985)提出的已有近40年历史的算法,该结果强有力地证伪了组合$k$-团猜想。\n- 作为该三角形检测算法的另一项直接应用,我们得到了一种更快的\textsc{Max-Cut}(最大割)问题精确算法,超越了R. R. Williams(2005)提出的已有近20年历史的算法。
英文摘要:
We revisit the algorithmic problem of finding a triangle in a graph: We give a randomized combinatorial algorithm for triangle detection in a given $n$-vertex graph with $m$ edges running in $O(n^{7/3})$ time, or alternatively in $O(m^{4/3})$ time. This may come as a surprise since it invalidates several conjectures in the literature. In particular,
- the $O(n^{7/3})$ runtime surpasses the long-standing fastest algorithm for triangle detection based on matrix multiplication running in $O(n^ω) = O(n^{2.372})$ time, due to Itai and Rodeh (1978).
- the $O(m^{4/3})$ runtime surpasses the long-standing fastest algorithm for triangle detection in sparse graphs based on matrix multiplication running in $O(m^{2ω/(ω+1)})= O(m^{1.407})$ time due to Alon, Yuster, and Zwick (1997).
- the $O(n^{7/3})$ time algorithm for triangle detection leads to a $O(n^{25/9} \log{n})$ time combinatorial algorithm for $n \times n$ Boolean matrix multiplication, by a reduction of V. V. Williams and R.~R.~Williams (2018).This invalidates a conjecture of A.~Abboud and V. V. Williams (FOCS 2014).
- the $O(m^{4/3})$ runtime invalidates a conjecture of A.~Abboud and V. V. Williams (FOCS 2014) that any combinatorial algorithm for triangle detection requires $m^{3/2 - o(1)}$ time.
- as a direct application of the triangle detection algorithm, we obtain a faster exact algorithm for the $k$-clique problem, surpassing an almost $40$ years old algorithm of Ne{š}et{ř}il and Poljak (1985). This result strongly disproves the combinatorial $k$-clique conjecture.
- as another direct application of the triangle detection algorithm, we obtain a faster exact algorithm for the \textsc{Max-Cut} problem, surpassing an almost $20$ years old algorithm of R.~R.~Williams (2005).