[Paper Review] Efficient Parameterized Algorithms for Computing All-Pairs Shortest Paths
This paper presents efficient parameterized algorithms for vertex-weighted all-pairs shortest paths (APSP) using clique-width (cw) and modular-width (mw) as parameters. It achieves O(mw²n + n²) time with a combinatorial algorithm and O(mw¹.⁸⁴²n + n²) with fast matrix multiplication, with the modular-width algorithm being adaptive—outperforming unparameterized methods when mw ∈ O(n¹⁻ε) for any ε > 0.
Computing all-pairs shortest paths is a fundamental and much-studied problem with many applications. Unfortunately, despite intense study, there are still no significantly faster algorithms for it than the $\mathcal{O}(n^3)$ time algorithm due to Floyd and Warshall (1962). Somewhat faster algorithms exist for the vertex-weighted version if fast matrix multiplication may be used. Yuster (SODA 2009) gave an algorithm running in time $\mathcal{O}(n^{2.842})$, but no combinatorial, truly subcubic algorithm is known. Motivated by the recent framework of efficient parameterized algorithms (or "FPT in P"), we investigate the influence of the graph parameters clique-width ($cw$) and modular-width ($mw$) on the running times of algorithms for solving All-Pairs Shortest Paths. We obtain efficient (and combinatorial) parameterized algorithms on non-negative vertex-weighted graphs of times $\mathcal{O}(cw^2n^2)$, resp. $\mathcal{O}(mw^2n + n^2)$. If fast matrix multiplication is allowed then the latter can be improved to $\mathcal{O}(mw^{1.842}n + n^2)$ using the algorithm of Yuster as a black box. The algorithm relative to modular-width is adaptive, meaning that the running time matches the best unparameterized algorithm for parameter value $mw$ equal to $n$, and they outperform them already for $mw \in \mathcal{O}(n^{1 - \varepsilon})$ for any $\varepsilon > 0$.
Motivation & Objective
- To develop faster algorithms for vertex-weighted all-pairs shortest paths (APSP) by exploiting structural graph parameters.
- To investigate the influence of clique-width (cw) and modular-width (mw) on APSP computation time.
- To design adaptive algorithms that match or outperform the best unparameterized algorithms when the parameter is small.
- To achieve truly subcubic running times for graphs with small cw, and improved performance for mw < n.
- To provide a framework for efficient parameterized computation of APSP in tractable graph classes.
Proposed method
- Use modular decomposition to recursively break down the graph into modules and process them top-down.
- Construct a weighted quotient graph G*/P for each module partition to abstract inter-module distances.
- Apply Yuster’s O(n².⁸⁴²) fast matrix multiplication-based APSP algorithm on quotient graphs for improved runtime.
- Use a k-capped APSP formulation to bound recursion depth and ensure correctness during recursive processing.
- Leverage Lemma 28 to compute inter-module shortest paths in constant time after preprocessing.
- Recursively solve k-capped APSP on each module with a reduced k-value derived from adjacent module weights.
Experimental results
Research questions
- RQ1Can modular-width be used to design an adaptive parameterized algorithm for vertex-weighted APSP that outperforms unparameterized methods for small parameter values?
- RQ2What is the best possible running time for vertex-weighted APSP parameterized by clique-width, and can it achieve truly subcubic performance?
- RQ3How does the use of fast matrix multiplication interact with modular-width to further improve runtime?
- RQ4Is it possible to achieve a running time of O(cw·n²) for APSP parameterized by clique-width, despite structural challenges?
- RQ5Can the framework be extended to edge-weighted graphs with low clique-width or modular-width?
Key findings
- The algorithm parameterized by modular-width runs in O(mw²n + n²) time using a combinatorial approach, and in O(mw¹.⁸⁴²n + n²) time with fast matrix multiplication.
- The modular-width algorithm is adaptive: it matches the best unparameterized algorithm when mw = n and outperforms it for mw ∈ O(n¹⁻ε) for any ε > 0.
- For clique-width, the algorithm achieves O(cw²n²) time, which is truly subcubic when cw ∈ O(n⁰.⁵⁻ε) for any ε > 0.
- The algorithm for modular-width is efficient in practice because modular decomposition can be computed in linear time.
- The approach complements a conditional lower bound by Coudert et al., which rules out O(2^o(cw)·n²⁻ε) time for diameter computation.
- The results are restricted to vertex-weighted graphs; edge-weighted graphs with low clique-width or modular-width cannot be efficiently processed due to structural degeneracy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.