Skip to content

Lower Bounds for Structured OMv, APSP, and Triangle Detection

Amir Abboud, Shyan Akmal, Ron Safier, Nathan Wallheimer

cs.DS

Abstract

We study the complexity of core graph and matrix problems under two fundamental notions of structure: bounded VC-dimension and exclusion of a fixed subgraph pattern. We obtain the first VC and distance-VC parameterized lower bounds for OMv, APSP, and Triangle Detection. These results show that existing Θ(1/d)Θ(1/d)-type savings in the exponent for inputs with dimension at most dd are the "right answer" for the complexity of these problems. We prove that restricting OMv to matrices of VC-dimension at most dd can reduce the optimal running time of OMv by a factor of at most O~(n1/d+O(1/d2))\widetilde{O}(n^{1/d + O(1/d^2)}). Assuming the OMv Conjecture, this implies a nearly-matching lower bound for the O~(n3−1/d)\widetilde{O}(n^{3-1/d}) algorithm of Anand, van den Brand, and McCarty for solving OMv on instances with dimension at most dd. For Triangle Detection and unweighted APSP, we show that for every sufficiently large dd, restricting the distance VC-dimension to at most dd can improve upon the optimal running time of unrestricted Triangle Detection by a factor of at most nO(1/d)n^{O(1/d)}. In particular, assuming the Boolean Matrix Multiplication (BMM) Conjecture, combinatorial algorithms for APSP and Triangle Detection in graphs of distance VC-dimension at most dd require n3−O(1/d)n^{3-O(1/d)} time, matching existing algorithms up to the constant in the O(1/d)O(1/d) savings. Our methods also extend to other notions of structure, such as HH-freeness in Triangle Detection instances. Under the BMM Conjecture, combinatorial algorithms for Triangle Detection require n3−3v(H)/e(H)−o(1)n^{3-3v(H)/e(H)-o(1)} time on such instances. Finally, we uncover a new algorithmic connection between these two notions of structure: for every bipartite pattern HH, induced HH-freeness allows Triangle Detection to be reduced to instances of bounded VC-dimension. This yields truly subcubic combinatorial algorithms for all bipartite HH.

Create a lesson

Metadata

Comments
To appear in ITCS 2027. Abstract shortened for arXiv