Search arXiv⌕ Search

arXiv subjects

Ron Safier

Publications and source records attributed to Ron Safier.

6 recordsLinked to original sources

Lower Bounds for Structured OMv, APSP, and Triangle Detection

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)$-type savings in the exponent for inputs with dimension at most $d$ are the "right answer" for the complexity of these problems. We prove that restricting OMv to matrices of VC-dimension at most $d$ can reduce the optimal running time of OMv by a factor of at most $\widetilde{O}(n^{1/d + O(1/d^2)})$. Assuming the OMv Conjecture, this implies a nearly-matching lower bound for the $\widetilde{O}(n^{3-1/d})$ algorithm of Anand, van den Brand, and McCarty for solving OMv on instances with dimension at most $d$. For Triangle Detection and unweighted APSP, we show that for every sufficiently large $d$, restricting the distance VC-dimension to at most $d$ can improve upon the optimal running time of unrestricted Triangle Detection by a factor of at most $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 $d$ require $n^{3-O(1/d)}$ time, matching existing algorithms up to the constant in the $O(1/d)$ savings. Our methods also extend to other notions of structure, such as $H$-freeness in Triangle Detection instances. Under the BMM Conjecture, combinatorial algorithms for Triangle Detection require $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 $H$, induced $H$-freeness allows Triangle Detection to be reduced to instances of bounded VC-dimension. This yields truly subcubic combinatorial algorithms for all bipartite $H$.

cs.DS↗

Equivalent Dichotomies for Triangle Detection in Subgraph, Induced, and Colored H-Free Graphs

A recent paper by the authors (ITCS'26) initiates the study of the Triangle Detection problem in graphs avoiding a fixed pattern H as a subgraph and proposes a dichotomy hypothesis characterizing which patterns H make the Triangle Detection problem easier in H-free graphs than in general graphs. In this work, we demonstrate that this hypothesis is, in fact, equivalent to analogous hypotheses in two broader settings that a priori seem significantly more challenging: induced H-free graphs and colored H-free graphs. Our main contribution is a reduction from the induced H-free case to the non-induced H'-free case, where H' preserves the structural properties of H that are relevant for the dichotomy, namely 3-colorability and triangle count. A similar reduction is given for the colored case. A key technical ingredient is a self-reduction to Unique Triangle Detection that preserves the induced H-freeness property, via a new color-coding-like reduction.

cs.DS↗

Triangle Detection in H-Free Graphs

We initiate the study of combinatorial algorithms for Triangle Detection in $H$-free graphs. The goal is to decide if a graph that forbids a fixed pattern $H$ 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 $H$ 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 $k$, our algorithm runs in $\tilde O(n^{3-\frac{1}{2^{k-3}}})$ time, where $\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 $H$-sensitive algorithm for embeddable patterns, which runs faster when the number of copies of $H$ is significantly smaller than the maximum possible $Ω(n^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 $C_{2k+1}$-free graphs that runs in $\tilde O(m+n^{1+2/k})$ time for every $k\geq2$, where $m$ is the number of edges in the graph. 2) A combinatorial $C_5$-sensitive algorithm that runs in $\tilde O(n^2+n^{4/3}t^{1/3})$ time, where $t$ is the number of $5$-cycles in the graph.

cs.DS↗

Recognizing Sumsets is NP-Complete

Sumsets are central objects in additive combinatorics. In 2007, Granville asked whether one can efficiently recognize whether a given set $S$ is a sumset, i.e. whether there is a set $A$ such that $A+A=S$. Granville suggested an algorithm that takes exponential time in the size of the given set, but can we do polynomial or even linear time? This basic computational question is indirectly asking a fundamental structural question: do the special characteristics of sumsets allow them to be efficiently recognizable? In this paper, we answer this question negatively by proving that the problem is NP-complete. Specifically, our results hold for integer sets and over any finite field. Assuming the Exponential Time Hypothesis, our lower bound becomes $2^{Ω(n^{1/4})}$.

cs.DS↗

Can You Solve Closest String Faster than Exhaustive Search?

We study the fundamental problem of finding the best string to represent a given set, in the form of the Closest String problem: Given a set $X \subseteq Σ^d$ of $n$ strings, find the string $x^*$ minimizing the radius of the smallest Hamming ball around $x^*$ that encloses all the strings in $X$. In this paper, we investigate whether the Closest String problem admits algorithms that are faster than the trivial exhaustive search algorithm. We obtain the following results for the two natural versions of the problem: $\bullet$ In the continuous Closest String problem, the goal is to find the solution string $x^*$ anywhere in $Σ^d$. For binary strings, the exhaustive search algorithm runs in time $O(2^d poly(nd))$ and we prove that it cannot be improved to time $O(2^{(1-ε) d} poly(nd))$, for any $ε> 0$, unless the Strong Exponential Time Hypothesis fails. $\bullet$ In the discrete Closest String problem, $x^*$ is required to be in the input set $X$. While this problem is clearly in polynomial time, its fine-grained complexity has been pinpointed to be quadratic time $n^{2 \pm o(1)}$ whenever the dimension is $ω(\log n) < d < n^{o(1)}$. We complement this known hardness result with new algorithms, proving essentially that whenever $d$ falls out of this hard range, the discrete Closest String problem can be solved faster than exhaustive search. In the small-$d$ regime, our algorithm is based on a novel application of the inclusion-exclusion principle. Interestingly, all of our results apply (and some are even stronger) to the natural dual of the Closest String problem, called the Remotest String problem, where the task is to find a string maximizing the Hamming distance to all the strings in $X$.

cs.CC↗

Listing 4-Cycles

In this note we present an algorithm that lists all $4$-cycles in a graph in time $\tilde{O}(\min(n^2,m^{4/3})+t)$ where $t$ is their number. Notably, this separates $4$-cycle listing from triangle-listing, since the latter has a $(\min(n^3,m^{3/2})+t)^{1-o(1)}$ lower bound under the $3$-SUM Conjecture. Our upper bound is conditionally tight because (1) $O(n^2,m^{4/3})$ is the best known bound for detecting if the graph has any $4$-cycle, and (2) it matches a recent $(\min(n^3,m^{3/2})+t)^{1-o(1)}$ $3$-SUM lower bound for enumeration algorithms. The latter lower bound was proved very recently by Abboud, Bringmann, and Fischer [arXiv, 2022] and independently by Jin and Xu [arXiv, 2022]. In an independent work, Jin and Xu [arXiv, 2022] also present an algorithm with the same time bound.

cs.DS↗