Fredman’s Trick Meets Dominance Product: Fine-Grained Complexity of Unweighted APSP, 3SUM Counting, and More

In this paper we carefully combine Fredman’s trick [SICOMP’76] and Matoušek’s approach for dominance product [IPL’91] to obtain powerful results in fine-grained complexity. Under the hypothesis that APSP for undirected graphs with edge weights in {1, 2, …, n} requires n3−o(1) time (when ω=2), we show a variety of conditional lower bounds, including an n7/3−o(1) lower bound for unweighted directed APSP and an n2.2−o(1) lower bound for computing the Minimum Witness Product between two n × n Boolean matrices, even if ω=2, improving upon their trivial n2 lower bounds. Our techniques can also be used to reduce the unweighted directed APSP problem to other problems. In particular, we show that (when ω = 2), if unweighted directed APSP requires n2.5−o(1) time, then Minimum Witness Product requires n7/3−o(1) time. We show that, surprisingly, many central problems in fine-grained complexity are equivalent to their natural counting versions. In particular, we show that Min-Plus Product and Exact Triangle are subcubically equivalent to their counting versions, and 3SUM is subquadratically equivalent to its counting version. We also obtain new algorithms using new variants of the Balog-Szemerédi-Gowers theorem from additive combinatorics. For example, we get an O(n3.83) time deterministic algorithm for exactly counting the number of shortest paths in an arbitrary weighted graph, improving the textbook O(n4) time algorithm. We also get faster algorithms for 3SUM in preprocessed universes, and deterministic algorithms for 3SUM on monotone sets in {1, 2, …, n}d.

[1]  Ran Duan,et al.  Faster min-plus product for monotone instances , 2022, STOC.

[2]  Timothy M. Chan,et al.  Hardness for triangle problems under even more believable hypotheses: reductions from real APSP, real 3SUM, and OV , 2022, STOC.

[3]  Ce Jin,et al.  Tight dynamic problem lower bounds from generalized BMM and OMv , 2022, STOC.

[4]  Ran Duan,et al.  Faster Algorithms for Bounded-Difference Min-Plus Product , 2021, SODA.

[5]  Yinzhan Xu,et al.  Faster Monotone Min-Plus Product, Range Mode, and Single Source Replacement Paths , 2021, ICALP.

[6]  Timothy M. Chan,et al.  Algorithms, Reductions and Equivalences for Small Weight Variants of All-Pairs Shortest Paths , 2021, ICALP.

[7]  Josh Alman,et al.  A Refined Laser Method and Faster Matrix Multiplication , 2020, SODA.

[8]  Virginia Vassilevska Williams,et al.  Monochromatic Triangles, Intermediate Matrix Products, and Convolutions , 2020, ITCS.

[9]  Yinzhan Xu,et al.  Monochromatic Triangles, Triangle Listing and APSP , 2020, 2020 IEEE 61st Annual Symposium on Foundations of Computer Science (FOCS).

[10]  A. Lingas,et al.  Quantum and approximation algorithms for maximum witnesses of Boolean matrix products , 2020, CALDAM.

[11]  Andris Ambainis,et al.  Quantum algorithms for computational geometry problems , 2020, TQC.

[12]  O. Weimann,et al.  On the Fine-Grained Complexity of Parity Problems , 2020, ICALP.

[13]  Timothy M. Chan More Logarithmic-factor Speedups for 3SUM, (median,+)-convolution, and Some Geometric 3SUM-hard Problems , 2019, ACM Trans. Algorithms.

[14]  Yinzhan Xu,et al.  Truly Subcubic Min-Plus Product for Less Structured Matrices, with Applications , 2019, SODA.

[15]  Kitty Meeks,et al.  Approximately counting and sampling small witnesses using a colourful decision oracle , 2019, SODA.

[16]  Przemyslaw Uznanski,et al.  Hamming Distance Completeness , 2019, CPM.

[17]  V. V. Williams ON SOME FINE-GRAINED QUESTIONS IN ALGORITHMS AND COMPLEXITY , 2019, Proceedings of the International Congress of Mathematicians (ICM 2018).

[18]  Ran Duan,et al.  Faster Algorithms for All Pairs Non-decreasing Paths Problem , 2019, ICALP.

[19]  Markus Bläser,et al.  Graph Pattern Polynomials , 2018, FSTTCS.

[20]  Vijaya Ramachandran,et al.  Fine-grained complexity for sparse graphs , 2018, STOC.

[21]  Richard Ryan Williams,et al.  Tight Hardness for Shortest Cycles and Paths in Sparse Graphs , 2017, SODA.

[22]  François Le Gall,et al.  Improved Rectangular Matrix Multiplication using Powers of the Coppersmith-Winograd Tensor , 2017, SODA.

[23]  Holger Dell,et al.  Fine-grained reductions from approximate counting to decision , 2017, STOC.

[24]  Dániel Marx,et al.  Homomorphisms are a good basis for counting small subgraphs , 2017, STOC.

[25]  Marvin Künnemann,et al.  On the Fine-grained Complexity of One-Dimensional Dynamic Programming , 2017, ICALP.

[26]  Marek Cygan,et al.  On Problems Equivalent to (min,+)-Convolution , 2017, ICALP.

[27]  Piotr Indyk,et al.  Better Approximations for Tree Sparsity in Nearly-Linear Time , 2017, SODA.

[28]  Fabrizio Grandoni,et al.  Truly Sub-cubic Algorithms for Language Edit Distance and RNA-Folding via Fast Bounded-Difference Min-Plus Product , 2016, 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS).

[29]  Amir Abboud,et al.  Popular Conjectures as a Barrier for Dynamic Planar Graph Algorithms , 2016, 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS).

[30]  Monika Henzinger,et al.  Unifying and Strengthening Hardness for Dynamic Problems via the Online Matrix-Vector Multiplication Conjecture , 2015, STOC.

[31]  Moshe Lewenstein,et al.  Clustered Integer 3SUM via Additive Combinatorics , 2015, STOC.

[32]  Joshua R. Wang,et al.  Finding Four-Node Subgraphs in Triangle Time , 2015, SODA.

[33]  R. Yuster,et al.  On Minimum Witnesses for Boolean Matrix Multiplication , 2014, Algorithmica.

[34]  Moshe Lewenstein,et al.  On Hardness of Jumbled Indexing , 2014, ICALP.

[35]  Allan Grønlund Jørgensen,et al.  Threesomes, Degenerates, and Love Triangles , 2014, 2014 IEEE 55th Annual Symposium on Foundations of Computer Science.

[36]  Amir Abboud,et al.  Popular Conjectures Imply Strong Lower Bounds for Dynamic Problems , 2014, 2014 IEEE 55th Annual Symposium on Foundations of Computer Science.

[37]  Ryan Williams,et al.  Faster all-pairs shortest paths via circuit complexity , 2013, STOC.

[38]  Timothy M. Chan,et al.  Linear-Space Data Structures for Range Mode Query in Arrays , 2011, Theory of Computing Systems.

[39]  Richard Ryan Williams,et al.  Subcubic Equivalences between Path, Matrix and Triangle Problems , 2010, 2010 IEEE 51st Annual Symposium on Foundations of Computer Science.

[40]  Virginia Vassilevska Williams,et al.  Nondecreasing paths in a weighted graph or: How to optimally read a train schedule , 2010, TALG.

[41]  Mihai Patrascu,et al.  Towards polynomial lower bounds for dynamic problems , 2010, STOC '10.

[42]  Nikhil Bansal,et al.  Regularity Lemmas and Combinatorial Algorithms , 2009, 2009 50th Annual IEEE Symposium on Foundations of Computer Science.

[43]  Andrzej Lingas,et al.  Finding a Heaviest Vertex-Weighted Triangle Is not Harder than Matrix Multiplication , 2009, SIAM J. Comput..

[44]  Ryan Williams,et al.  Finding, minimizing, and counting weighted subgraphs , 2009, STOC '09.

[45]  Ran Duan,et al.  Fast algorithms for (max, min)-matrix multiplication and bottleneck shortest paths , 2009, SODA.

[46]  Raphael Yuster,et al.  Efficient algorithms on sets of permutations, dominance, and real-weighted APSP , 2009, SODA.

[47]  A. Lingas,et al.  Faster algorithms for finding lowest common ancestors in directed acyclic graphs , 2007, Theor. Comput. Sci..

[48]  Raphael Yuster,et al.  All-pairs bottleneck paths for general graphs in truly sub-cubic time , 2007, STOC '07.

[49]  Raphael Yuster,et al.  All-Pairs Bottleneck Paths in Vertex Weighted Graphs , 2007, SODA '07.

[50]  Timothy M. Chan,et al.  Necklaces, Convolutions, and X+Y , 2006, Algorithmica.

[51]  Raphael Yuster,et al.  Finding heaviest H-subgraphs in real weighted graphs, with applications , 2006, TALG.

[52]  Eric Vigoda,et al.  A polynomial-time approximation algorithm for the permanent of a matrix with nonnegative entries , 2004, JACM.

[53]  Uri Zwick,et al.  All pairs shortest paths using bridging sets and rectangular matrix multiplication , 2000, JACM.

[54]  Uri Zwick,et al.  All pairs shortest paths in undirected graphs with integer weights , 1999, 40th Annual Symposium on Foundations of Computer Science (Cat. No.99CB37039).

[55]  Uri Zwick,et al.  All pairs lightest shortest paths , 1999, STOC '99.

[56]  Tadao Takaoka,et al.  Subcubic Cost Algorithms for the All Pairs Shortest Path Problem , 1998, Algorithmica.

[57]  Raimund Seidel,et al.  On the All-Pairs-Shortest-Path Problem in Unweighted Undirected Graphs , 1995, J. Comput. Syst. Sci..

[58]  Noga Alon,et al.  Witnesses for Boolean matrix multiplication and for shortest paths , 1992, Proceedings., 33rd Annual Symposium on Foundations of Computer Science.

[59]  Noga Alon,et al.  On the Exponent of the All Pairs Shortest Path Problem , 1991, J. Comput. Syst. Sci..

[60]  Karl R. Abrahamson Generalized String Matching , 1987, SIAM J. Comput..

[61]  Michael L. Fredman,et al.  New Bounds on the Complexity of the Shortest Path Problem , 1976, SIAM J. Comput..

[62]  Michael J. Fischer,et al.  Boolean Matrix Multiplication and Transitive Closure , 1971, SWAT.

[63]  Younan Gao,et al.  Faster Path Queries in Colored Trees via Sparse Matrix Multiplication and Min-Plus Product , 2022, ESA.

[64]  Timothy M. Chan,et al.  Reducing 3SUM to Convolution-3SUM , 2020, SOSA.

[65]  Christopher Umans,et al.  On Multidimensional and Monotone k-SUM , 2017, MFCS.

[66]  Brinch Hansen,et al.  Automata, Languages and Programming , 2005, Lecture Notes in Computer Science.

[67]  Leslie G. Valiant,et al.  The Complexity of Computing the Permanent , 1979, Theor. Comput. Sci..