English

Space Complexity Dichotomies for Subgraph Finding Problems in the Streaming Model

Data Structures and Algorithms 2026-02-10 v1 Computational Complexity

Abstract

We study the space complexity of four variants of the standard subgraph finding problem in the streaming model. Specifically, given an nn-vertex input graph and a fixed-size pattern graph, we consider two settings: undirected simple graphs, denoted by GG and HH, and oriented graphs, denoted by G\vec{G} and H\vec{H}. Depending on the setting, the task is to decide whether GG contains HH as a subgraph or as an induced subgraph, or whether G\vec{G} contains H\vec{H} as a subgraph or as an induced subgraph. Let Sub(H)(H), IndSub(H)(H), Sub(H)(\vec{H}), and IndSub(H)(\vec{H}) denote these four variants, respectively. An oriented graph is well-oriented if it admits a bipartition in which every arc is oriented from one part to the other, and a vertex is non-well-oriented if both its in-degree and out-degree are non-zero. For each variant, we obtain a complete dichotomy theorem, briefly summarized as follows. (1) Sub(H)(H) can be solved by an O~(1)\tilde{O}(1)-pass n2Ω(1)n^{2-\Omega(1)}-space algorithm if and only if HH is bipartite. (2) IndSub(H)(H) can be solved by an O~(1)\tilde{O}(1)-pass n2Ω(1)n^{2-\Omega(1)}-space algorithm if and only if H{P3,P4,co\mboxP3}H \in \{P_3, P_4, co\mbox{-}P_3\}. (3) Sub(H)(\vec{H}) can be solved by a single-pass n2Ω(1)n^{2-\Omega(1)}-space algorithm if and only if every connected component of H\vec H is either a well-oriented bipartite graph or a tree containing at most one non-well-oriented vertex. (4) IndSub(H)(\vec{H}) can be solved by an O~(1)\tilde{O}(1)-pass n2Ω(1)n^{2-\Omega(1)}-space algorithm if and only if the underlying undirected simple graph HH is a co\mboxP3co\mbox{-}P_3.

Keywords

Cite

@article{arxiv.2602.08002,
  title  = {Space Complexity Dichotomies for Subgraph Finding Problems in the Streaming Model},
  author = {Yu-Sheng Shih and Meng-Tsung Tsai and Yen-Chu Tsai and Ying-Sian Wu},
  journal= {arXiv preprint arXiv:2602.08002},
  year   = {2026}
}
R2 v1 2026-07-01T10:26:48.762Z