English

On the instance optimality of detecting collisions and subgraphs

Data Structures and Algorithms 2024-08-05 v2 Computational Complexity Cryptography and Security

Abstract

Suppose you are given a function f ⁣:[n][n]f\colon [n] \to [n] via (black-box) query access to the function. You are looking to find something local, like a collision (a pair xyx \neq y s.t. f(x)=f(y)f(x)=f(y)). The question is whether knowing the "shape" of the function helps you or not (by shape we mean that some permutation of the function is known). Formally, we investigate the unlabeled instance optimality of substructure detection problems in graphs and functions. A problem is g(n)g(n)-instance optimal if it admits an algorithm AA satisfying that for any possible input, the (randomized) query complexity of AA is at most g(n)g(n) times larger than the query complexity of any algorithm AA' which solves the same problem while holding an unlabeled copy of the input (i.e., any AA' that "knows the structure of the input"). Our results point to a trichotomy of unlabeled instance optimality among substructure detection problems in graphs and functions: 1. A few very simple properties have an O(1)O(1)-instance optimal algorithm. 2. Most properties of graphs and functions, with examples such as containing a fixed point or a 33-collision in functions, or a triangle in graphs, are nΩ(1)n^{\Omega(1)}-far from instance optimality. 3. The problems of collision detection in functions and finding a claw in a graph serve as a middle ground between the two regimes. We show that these two properties are Ω(logn)\Omega(\log n)-far from instance optimality, and conjecture that this bound is tight. We provide evidence towards this conjecture, by proving that finding a claw in a graph is O(log(n))O(\log(n))-instance optimal among all input graphs for which the query complexity of an algorithm holding an unlabeled certificate is O(nlogn)O\left(\sqrt{\frac{n}{\log n}}\right).

Keywords

Cite

@article{arxiv.2312.10196,
  title  = {On the instance optimality of detecting collisions and subgraphs},
  author = {Omri Ben-Eliezer and Tomer Grossman and Moni Naor},
  journal= {arXiv preprint arXiv:2312.10196},
  year   = {2024}
}
R2 v1 2026-06-28T13:53:01.685Z