English

The Complexity of Counting Small Sub-Hypergraphs

Computational Complexity 2025-06-18 v1 Data Structures and Algorithms

Abstract

Subgraph counting is a fundamental and well-studied problem whose computational complexity is well understood. Quite surprisingly, the hypergraph version of subgraph counting has been almost ignored. In this work, we address this gap by investigating the most basic sub-hypergraph counting problem: given a (small) hypergraph HH and a (large) hypergraph GG, compute the number of sub-hypergraphs of GG isomorphic to HH. Formally, for a family H\mathcal{H} of hypergraphs, let #Sub(H\mathcal{H}) be the restriction of the problem to HHH \in \mathcal{H}; the induced variant #IndSub(H\mathcal{H}) is defined analogously. Our main contribution is a complete classification of the complexity of these problems. Assuming the Exponential Time Hypothesis, we prove that #Sub(H\mathcal{H}) is fixed-parameter tractable if and only if H\mathcal{H} has bounded fractional co-independent edge-cover number, a novel graph parameter we introduce. Moreover, #IndSub(H\mathcal{H}) is fixed-parameter tractable if and only if H\mathcal{H} has bounded fractional edge-cover number. Both results subsume pre-existing results for graphs as special cases. We also show that the fixed-parameter tractable cases of #Sub(H\mathcal{H}) and #IndSub(H\mathcal{H}) are unlikely to be in polynomial time, unless respectively #P = P and Graph Isomorphism \in P. This shows a separation with the special case of graphs, where the fixed-parameter tractable cases are known to actually be in polynomial time.

Keywords

Cite

@article{arxiv.2506.14081,
  title  = {The Complexity of Counting Small Sub-Hypergraphs},
  author = {Marco Bressan and Julian Brinkmann and Holger Dell and Marc Roth and Philip Wellnitz},
  journal= {arXiv preprint arXiv:2506.14081},
  year   = {2025}
}
R2 v1 2026-07-01T03:20:57.124Z