We study the space complexity of four variants of the standard subgraph finding problem in the streaming model. Specifically, given an $n$-vertex input graph and a fixed pattern graph on at least three vertices, we consider two settings: undirected simple graphs, denoted by $G$ and $H$, and oriented graphs, denoted by $\vec{G}$ and $\vec{H}$. Depending on the setting, the task is to decide whether $G$ contains $H$ as a subgraph or as an induced subgraph, or whether $\vec{G}$ contains $\vec{H}$ as a subgraph or as an induced subgraph. Let $\textsc{Sub}(H)$, $\textsc{IndSub}(H)$, $\textsc{Sub}(\vec{H})$, and $\textsc{IndSub}(\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 the same part to the other, and a vertex is internal if both its in-degree and out-degree are non-zero. For each variant, we obtain a complete dichotomy theorem, briefly summarized as follows. \begin{itemize} \item $\textsc{Sub}(H)$ can be solved by an $\tilde{O}(1)$-pass $n^{2-Ω(1)}$-space algorithm if and only if $H$ is bipartite. \item $\textsc{IndSub}(H)$ can be solved by an $\tilde{O}(1)$-pass $n^{2-Ω(1)}$-space algorithm if and only if $H$ is $P_3$, $P_4$, or $\mbox{co-}P_3$. \item $\textsc{Sub}(\vec{H})$ can be solved by a deterministic single-pass $n^{2-Ω(1)}$-space algorithm if and only if every connected component of $\vec H$ is either a well-oriented bipartite graph or a tree containing at most one internal vertex. \item $\textsc{IndSub}(\vec{H})$ can be solved by an $\tilde{O}(1)$-pass $n^{2-Ω(1)}$-space algorithm if and only if the underlying undirected simple graph $H$ is a $\mbox{co-}P_3$. \end{itemize} All our upper bounds are attained by deterministic algorithms that find a copy, whereas all our lower bounds hold even for randomized algorithms that only detect one.S
翻译:暂无翻译