Papers
Topics
Authors
Recent
Search
2000 character limit reached

Triangle Detection in H-Free Graphs

Published 21 Nov 2025 in cs.DS and cs.DM | (2511.17224v1)

Abstract: We initiate the study of combinatorial algorithms for Triangle Detection in HH-free graphs. The goal is to decide if a graph that forbids a fixed pattern HH as a subgraph contains a triangle, using only "combinatorial" methods that notably exclude fast matrix multiplication. Our work aims to classify which patterns admit a subcubic speedup, working towards a dichotomy theorem. On the lower bound side, we show that if HH is not $3$-colorable or contains more than one triangle, the complexity of the problem remains unchanged, and no combinatorial speedup is likely possible. On the upper bound side, we develop an embedding approach that results in a strongly subcubic, combinatorial algorithm for a rich class of "embeddable" patterns. Specifically, for an embeddable pattern of size kk, our algorithm runs in O~(n<sup>312<sup>k3)\tilde O(n<sup>{3-\frac{1}{2<sup>{k-3}}}) time, where O~()\tilde O(\cdot) hides poly-logarithmic factors. This algorithm also extends to listing all the triangles within the same time bound. We supplement this main result with two generalizations: 1) A generalization to patterns that are embeddable up to a single obstacle that arises from a triangle in the pattern. This completes our classification for small patterns, yielding a dichotomy theorem for all patterns of size up to eight. 2) An HH-sensitive algorithm for embeddable patterns, which runs faster when the number of copies of HH is significantly smaller than the maximum possible Ω(n<sup>k)Ω(n<sup>k). Finally, we focus on the special case of odd cycles. We present specialized Triangle Detection algorithms that are very efficient: 1) A combinatorial algorithm for C2k+1C_{2k+1}-free graphs that runs in O~(m+n<sup>1+2/k)\tilde O(m+n<sup>{1+2/k}) time for every k2k\geq2, where mm is the number of edges in the graph. 2) A combinatorial C5C_5-sensitive algorithm that runs in O~(n<sup>2+n<sup>4/3t<sup>1/3)\tilde O(n<sup>2+n<sup>{4/3}t<sup>{1/3}) time, where tt is the number of $5$-cycles in the graph.

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.