We revisit Min-Mean-Cycle, the classical problem of finding a cycle in a weighted directed graph with minimum mean weight. Despite an extensive algorithmic literature, previous work falls short of a near-linear runtime in the number of edges $m$. We propose an approximation algorithm that, for graphs with polylogarithmic diameter, achieves a near-linear runtime. In particular, this is the first algorithm whose runtime scales in the number of vertices $n$ as $\tilde{O}(n^2)$ for the complete graph. Moreover, unconditionally on the diameter, the algorithm uses only $O(n)$ memory beyond reading the input, making it "memory-optimal". Our approach is based on solving a linear programming relaxation using entropic regularization, which reduces the problem to Matrix Balancing -- \'a la the popular reduction of Optimal Transport to Matrix Scaling. The algorithm is practical and simple to implement.
翻译:我们重新审视了典型的以加权定向图找到一个周期并具有最小平均重量的典型问题。 尽管有广泛的算法文献, 先前的工作在边缘数量上没有达到近线运行时间 $m美元 。 我们建议了一个近似算法, 对于具有多元对数直径的图表来说, 能够达到近线运行时间。 特别是, 这是第一个算法, 其运行时间比值为$\tilde{O}(n ⁇ 2)美元, 用于完整图表。 此外, 算法在直径上只能使用 $(n) $(n) 的内存, 而不是读取输入, 使它成为“ 模数- 最佳 ” 。 我们的方法是以使用昆虫定型解决线性编程松动的松动程序为基础, 这可以减少矩阵调和(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\