English

Near-linear time subhypergraph counting in bounded degeneracy hypergraphs

Data Structures and Algorithms 2025-10-21 v1 Discrete Mathematics

Abstract

Counting small patterns in a large dataset is a fundamental algorithmic task. The most common version of this task is subgraph/homomorphism counting, wherein we count the number of occurrences of a small pattern graph HH in an input graph GG. The study of this problem is a field in and of itself. Recently, both in theory and practice, there has been an interest in \emph{hypergraph} algorithms, where G=(V,E)G = (V,E) is a hypergraph. One can view GG as a set system where hyperedges are subsets of the universe VV. Counting patterns HH in hypergraphs is less studied, although there are many applications in network science and database algorithms. Inspired by advances in the graph literature, we study when linear time algorithms are possible. We focus on input hypergraphs GG that have bounded \emph{degeneracy}, a well-studied concept for graph algorithms. We give a spectrum of definitions for hypergraph degeneracy that cover all existing notions. For each such definition, we give a precise characterization of the patterns HH that can be counted in (near) linear time. Specifically, we discover a set of ``obstruction patterns". If HH does not contain an obstruction, then the number of HH-subhypergraphs can be counted exactly in O(nlogn)O(n\log n) time (where nn is the number of vertices in GG). If HH contains an obstruction, then (assuming hypergraph variants of fine-grained complexity conjectures), there is a constant γ>0\gamma > 0, such that there is no o(n1+γ)o(n^{1+\gamma}) time algorithm for counting HH-subhypergraphs. These sets of obstructions can be defined for all notions of hypergraph degeneracy.

Keywords

Cite

@article{arxiv.2510.16330,
  title  = {Near-linear time subhypergraph counting in bounded degeneracy hypergraphs},
  author = {Daniel Paul-Pena and C. Seshadhri},
  journal= {arXiv preprint arXiv:2510.16330},
  year   = {2025}
}
R2 v1 2026-07-01T06:44:36.887Z