arXiv:2610.41519cs.DSOct 2026

Manuscript Offprint

arXiv:2610.41519

Steiner Tree Parameterized by Multiway Cut: Single-Exponential Time and Polynomial Space

Lukas Van de Voorde, Brecht Verbeken, Vincent Ginis

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Lukas Van de Voorde Data Analytics Lab Vrije Universiteit Brussel (VUB) Brussels, Belgium lukas.van.de.voorde2@vub.be ORCID: 0009-0006-8797-0676

Brecht Verbeken Data Analytics Lab Vrije Universiteit Brussel (VUB) Brussels, Belgium brecht.verbeken@vub.be ORCID: 0000-0002-7506-3298

Vincent Ginis Data Analytics Lab Vrije Universiteit Brussel (VUB) Brussels, Belgium vincent.ginis@vub.be ORCID: 0000-0003-0063-9608

30 October 2026

ABSTRACT

In the Steiner Tree problem, the goal is to find a minimum-weight tree containing a given set of terminals in an edge-weighted graph. Given a multiway cut of size ss, we propose a deterministic algorithm running in 2O(s)poly(n,b)2^{O(s)} \text{poly}(n, b) time and polynomial space (nn vertices, non-negative bb-bit integer weights). A multiway cut for the terminals is a set of vertices whose deletion leaves at most one terminal in each connected component. This result answers a question of Jansen and Swennenhuis (ESA 2024). Building on their component decomposition, we show that it suffices to connect the selected cut vertices together with O(s)O(s) additional terminals and attach the remaining terminals by shortest paths. We use colour coding to optimize over the choice of these additional terminals.

Keywords Steiner Tree · multiway cut · parameterized algorithms · polynomial space · colour coding

1 Introduction

In this work, we resolve an open question of Jansen and Swennenhuis [6] by giving a polynomial-space algorithm for the Steiner Tree problem whose running time is single-exponential in the size of a multiway cut for the terminals.

In the Steiner Tree problem, the input is an undirected graph G=(V,E)G = (V, E) with non-negative edge weights and a set of terminals K⊆VK \subseteq V. The goal is to find a minimum-weight connected subgraph containing all vertices of KK. An optimum can be chosen to be a tree, called a Steiner tree for KK. We write n=∣V∣,m=∣E∣n = |V|, m = |E|, and k=∣K∣k = |K|. This work considers non-negative integer weights represented with at most b≥1b \geq 1 bits.

We study the Steiner Tree problem using a multiway cut SS for KK: a vertex set S⊆VS \subseteq V such that each component of G−SG - S contains at most one terminal. Terminals are allowed to belong to SS. We present an algorithm parameterized by s=∣S∣s = |S|. The size of a multiway cut can be much smaller than ∣K∣|K|: in a star whose leaves are terminals, the centre vertex alone is a multiway cut.

Karp [7] proved that the Steiner Tree problem is NP-hard. The classical Dreyfus–Wagner algorithm [2] runs in 3kpoly(n,b)3^k \text{poly}(n, b) time, where k=∣K∣k = |K|. Fuchs et al. [4] improve this to (2+ε)kpolyε(n,b)(2 + \varepsilon)^k \text{poly}_\varepsilon(n, b) time for every fixed ε>0\varepsilon > 0. Both algorithms use exponential space. Fomin et al. [3] combine single-exponential time in kk with polynomial space (see Theorem A). We use their algorithm in our approach.

Jansen and Swennenhuis [6] give an algorithm using 2O(slog⁡s)poly(n,b)2^{O(s \log s)} \text{poly}(n, b) time and polynomial space, as well as an algorithm that runs in 2O(s)poly(n,b)2^{O(s)} \text{poly}(n, b) time but uses exponential space. For each chosen set of cut vertices used by the solution, their polynomial-space algorithm enumerates connecting systems that describe how subtrees connect these vertices. Counting these systems using Cayley's formula gives the 2O(slog⁡s)2^{O(s \log s)} factor. They explicitly ask whether single-exponential time and polynomial space can be achieved simultaneously [6, Section 5]. This is the main result of this work.

30 October 2026

Theorem 1.1. There exists a deterministic algorithm that, given an undirected graph G=(V,E)G = (V, E) with weight function w:E→N0w: E \to \mathbb{N}_0, a set of terminals K⊆VK \subseteq V, and a multiway cut SS for KK, finds a minimum-weight Steiner tree for KK in GG, if it exists, in 2O(s)2^{O(s)} poly(n,b)(n, b) time using polynomial space.

Since terminals may belong to a multiway cut, S=KS = K is a valid choice. Theorem 1.1 therefore yields a 2O(k)2^{O(k)} poly(n,b)(n, b)-time algorithm using polynomial space.

The algorithm of Chen, Liu, and Lu [1] requires the cut to avoid terminals. We can handle this by forming an auxiliary graph G+G^+: for each terminal t∈Kt \in K, add a new leaf t′t' adjacent to tt, and use K′={t′:t∈K}K' = \{t' : t \in K\} as the new terminal set. A multiway cut for K′K' in G+G^+ is also a multiway cut for KK and may contain original terminals. Since G+G^+ has at most 2n2n vertices, the running-time and space bounds of Chen, Liu, and Lu remain unchanged.

A minimum multiway cut can therefore be found in 4σ4^\sigma poly(n)(n) time and polynomial space,1^1 where σ\sigma is the minimum multiway cut size. Combining this with Theorem 1.1 gives 2O(σ)2^{O(\sigma)} poly(n,b)(n, b) time and polynomial space if no multiway cut is supplied.

Our approach. We build on the component decomposition of Jansen and Swennenhuis [6]. For each chosen set of cut vertices used by the solution, we reduce the optimization to choosing O(s)O(s) core terminals outside the multiway cut (Lemma 3.3), avoiding the enumeration of connecting systems. Using colour coding [5] and the reduction of Lemma 3.4, we optimize over these terminal sets without enumerating them explicitly. The resulting Steiner Tree instances have O(s)O(s) terminals and can be solved using the single-exponential-time, polynomial-space algorithm of Fomin et al. [3].

Organization. Section 2 states the algorithmic ingredients. Section 3 proves the selection identity and its coloured reduction. Section 4 gives the algorithm and its analysis.