Table of Contents
Fetching ...

The Complexity of Diameter on H-free graphs

Jelle J. Oostveen, Daniël Paulusma, Erik Jan van Leeuwen

TL;DR

The paper initiates a structured study of the Diameter problem on $H$-free graphs, showing subquadratic-time hardness under SETH when $H$ is not a small linear forest, while giving linear-time algorithms for several small linear-forest cases and examining the boundedness of the maximum diameter $d_{ ext{max}}$ for linear-forest forbidden patterns. It establishes $O(n+m)$-time algorithms for Diameter when $H subseteq_i$ a few patterns such as $P_2+2P_1$, $P_3+P_1$, and $P_4$, and analyzes the $d_{ ext{max}}( ext{G})$-Diameter problem across several linear-forest families, including $2P_2$, $P_t$ (odd $t\ge 5$ via augmentation), and $P_3+2P_1$, $2P_2+P_1$, and $P_2+3P_1$. The results imply a nuanced landscape where certain forbidden patterns yield linear-time solvability for diameter-related questions, while nearby open cases and odd-$t$ path-free graphs continue to resist subquadratic algorithms under SETH. The work highlights potential generalizations and conjectures guiding future exploration of Diameter in restricted graph classes, with practical impact on fast exact computation in structured sparse graphs. Overall, the paper bridges hardness and algorithmic results for Diameter in $H$-free graphs, revealing both tight linear-time regimes and important, unresolved boundaries.

Abstract

The intensively studied Diameter problem is to find the diameter of a given connected graph. We investigate, for the first time in a structured manner, the complexity of Diameter for H-free graphs, that is, graphs that do not contain a fixed graph H as an induced subgraph. We first show that if H is not a linear forest with small components, then Diameter cannot be solved in subquadratic time for H-free graphs under SETH. For some small linear forests, we do show linear-time algorithms for solving Diameter. For other linear forests H, we make progress towards linear-time algorithms by considering specific diameter values. If H is a linear forest, the maximum value of the diameter of any graph in a connected H-free graph class is some constant dmax dependent only on H. We give linear-time algorithms for deciding if a connected H-free graph has diameter dmax, for several linear forests H. In contrast, for one such linear forest H, Diameter cannot be solved in subquadratic time for H-free graphs under SETH. Moreover, we even show that, for several other linear forests H, one cannot decide in subquadratic time if a connected H-free graph has diameter dmax under SETH.

The Complexity of Diameter on H-free graphs

TL;DR

The paper initiates a structured study of the Diameter problem on -free graphs, showing subquadratic-time hardness under SETH when is not a small linear forest, while giving linear-time algorithms for several small linear-forest cases and examining the boundedness of the maximum diameter for linear-forest forbidden patterns. It establishes -time algorithms for Diameter when a few patterns such as , , and , and analyzes the -Diameter problem across several linear-forest families, including , (odd via augmentation), and , , and . The results imply a nuanced landscape where certain forbidden patterns yield linear-time solvability for diameter-related questions, while nearby open cases and odd- path-free graphs continue to resist subquadratic algorithms under SETH. The work highlights potential generalizations and conjectures guiding future exploration of Diameter in restricted graph classes, with practical impact on fast exact computation in structured sparse graphs. Overall, the paper bridges hardness and algorithmic results for Diameter in -free graphs, revealing both tight linear-time regimes and important, unresolved boundaries.

Abstract

The intensively studied Diameter problem is to find the diameter of a given connected graph. We investigate, for the first time in a structured manner, the complexity of Diameter for H-free graphs, that is, graphs that do not contain a fixed graph H as an induced subgraph. We first show that if H is not a linear forest with small components, then Diameter cannot be solved in subquadratic time for H-free graphs under SETH. For some small linear forests, we do show linear-time algorithms for solving Diameter. For other linear forests H, we make progress towards linear-time algorithms by considering specific diameter values. If H is a linear forest, the maximum value of the diameter of any graph in a connected H-free graph class is some constant dmax dependent only on H. We give linear-time algorithms for deciding if a connected H-free graph has diameter dmax, for several linear forests H. In contrast, for one such linear forest H, Diameter cannot be solved in subquadratic time for H-free graphs under SETH. Moreover, we even show that, for several other linear forests H, one cannot decide in subquadratic time if a connected H-free graph has diameter dmax under SETH.
Paper Structure (34 sections, 22 theorems, 1 equation, 9 figures)

This paper contains 34 sections, 22 theorems, 1 equation, 9 figures.

Key Result

Theorem 1

Let $H$ be a graph that contains an induced $2P_2$ or is not a linear forest. Under SETH, Diameter on $H$-free graphs cannot be solved in $O(n^{2-\epsilon})$ time for any $\epsilon > 0$.

Figures (9)

  • Figure 1: A sketch of a $(P_2 + 2P_1)$-free graph as seen from some vertex $u$.
  • Figure 2: An illustration of the types of a diameter-4 shortest path appearing in a $(P_4+P_1)$-free graph, with respect to the vertex $u$ and its neighbourhood $N(u) = B$. Only the highlighted types (1a), (2a), (3b), (3c) require algorithmic computation.
  • Figure 3: Structure for type (2a) with respect to a $d\in D$ and a $d' \in D$ for which $(d,b_2)$ is good and $(d',b_2)$ is bad for $b_2 \in B_2$. The path from $d'$ to $b_2$ goes through either some $c_2'\in C_2$ (left, (2a.2.1)) or some $b_1'\in B_1$ (right, (2a.2.2)).
  • Figure 4: Structure for type (3b), where for $i\in \{1,2\}$, vertices in $B_{C_i}$ are complete to all components of $G[C]$ except for $C_i$, due to Claim \ref{['clm:completetoallC']}. $C_1$ and $C_2$ have layers corresponding to which vertices are marked by the algorithm, with the bottom layer consisting of unmarked vertices.
  • Figure 5: An illustration of the conversion of a graph $G$ (left) to a graph $G'$ (right) as in (3c.1.algorithm). Note that for image simplicity, the drawn graph $G$ is not actually a $(P_4+P_1)$-free graph.
  • ...and 4 more figures

Theorems & Definitions (62)

  • Theorem 1
  • Theorem 2: ducoffe2022diameter
  • Theorem 3
  • Theorem 4
  • Theorem 5
  • Theorem 6
  • proof
  • Theorem 7: HabibPV98
  • Proposition 8
  • proof
  • ...and 52 more