English

Witness-Sensitive Detection of Induced Diamonds

Data Structures and Algorithms 2026-05-12 v1

Abstract

We provide a fast \emph{witness-sensitive} algorithm for detecting an induced diamond (a K4K_4 minus an edge) in an nn-vertex graph containing tt induced diamonds. Our algorithm runs in time O~(min(n2.425/t0.25+n2,nω))\tilde{O}(\min(n^{2.425}/t^{0.25}+n^2, n^\omega)) with high probability, improving upon the prior state of the art (witness-oblivious) algorithm that runs in time O(nωlogn)O(n^\omega\log{n}) [Vassilevska Williams, Wang, Williams, Yu, SODA 2014] whenever tn(3ω)/3t \geq n^{(3-\omega)/3}, where ω<2.372\omega < 2.372 is the matrix multiplication exponent. Our key insight is that the size of a clique containing one of the triangles of an induced diamond plays a crucial role in detecting such a diamond. We say that a diamond is rr-heavy if this size is at least rr, and we provide a fast detection algorithm for rr-heavy diamonds in O~(r(n/r)ω+(n/r)3+nr)\tilde{O}(r \cdot (n/r)^\omega + (n/r)^3+ nr) time. When there are no rr-heavy diamonds, we provide a different fast detection algorithm in O~(MM(n,n,nr/t))\tilde{O}(\mathsf{MM}(n,n,n\sqrt{r/t})) time, where MM(a,b,c)\mathsf{MM}(a,b,c) denotes the time to multiply an a×ba \times b matrix by a b×cb \times c matrix, which is conditionally optimal for r=O~(1)r=\tilde{O}(1). Our main technical contribution is in designing a refinement framework for sampling vectors, which allows sampling vertices for detecting diamonds in a manner that is adaptive to the structure of graphs with no rr-heavy diamonds. We establish that our technique is of a wide applicability, by showing how it also allows for faster witness-sensitive algorithms for 44-SUM and for a special case of 44-cycles.

Keywords

Cite

@article{arxiv.2605.09006,
  title  = {Witness-Sensitive Detection of Induced Diamonds},
  author = {Keren Censor-Hillel and Tomer Even and Virginia Vasillevska Williams and Nathan Wallheimer},
  journal= {arXiv preprint arXiv:2605.09006},
  year   = {2026}
}

Comments

60 pages, to appear in ICALP 2026