# 斯坦纳树问题

斯坦纳树问题是组合优化中的一个问题：在带权图或几何空间中，给定一组称为终端的顶点，要求找出一棵连接这些终端的最小代价树，而这棵树可以经过一些本身并非终端的额外顶点，这些顶点称为斯坦纳点<sup>[1](https://theory.cs.uni-bonn.de/info5/steinerkompendium/node2.html)</sup>。该问题以瑞士数学家雅各布·斯坦纳（Jakob Steiner）命名，而其三终端的前身——寻找一点使得到三个给定点的距离之和最小——最早由费马（Fermat，1601–1665）研究<sup>[2](https://link.springer.com/book/10.1007/978-1-4613-0255-1)</sup>。与最小生成树不同——后者必须只用给定的节点来连接它们——斯坦纳树可以添加中间分支点以缩短整个网络；这种额外的自由度使得该问题在一般形式下是NP难的，尽管生成树问题是可以在多项式时间内求解的<sup>[3](https://technav.ieee.org/topic/steiner-trees/)</sup>。

| 关键事实 | 详情 |
|---|---|
| 形式化陈述 | 给定图 \( G=(V,E) \)，边代价 \( c: E \to \mathbb{R}^{+} \)，终端集 \( S \subseteq V \)，求 \( G \) 中一棵树 \( T \)，满足 \( S \subseteq V_{T} \subseteq V \)，且总代价最小<sup>[1](https://theory.cs.uni-bonn.de/info5/steinerkompendium/node2.html)</sup> |
| 复杂度 | NP难，即使单位权重时亦然（卡普，1972）；对一般平面点集计算斯坦纳最小树是NP难的（加里、格雷厄姆和约翰逊，1977）<sup>[4](https://www.mathematik.uni-muenchen.de/~kpanagio/KombOpt/book.pdf)</sup><sup> • </sup><sup>[5](https://epubs.siam.org/doi/abs/10.1137/0132072?journalCode=smjmap)</sup>  |
| 精确算法 | Dreyfus–Wagner（1971）动态规划，对于 \( n \) 顶点图中的 \( k \) 个终端，时间为 \( n^{3}/2 + n^{2}(2^{k-1} - k - 1) + n(3^{k-1} - 2^{k} + 3)/2 \)<sup>[6](https://onlinelibrary.wiley.com/doi/abs/10.1002/net.3230010302)</sup> |
| 参数化状态 | 以终端数为参数是固定参数可解的（Dreyfus–Wagner 运行时间为 \( 3^{\|K\|} \, \mathrm{poly}(n) \)）；以最优解中斯坦纳点数为参数是W[2]难的<sup>[7](https://arxiv.org/abs/2406.19819)</sup><sup> • </sup><sup>[8](https://arxiv.org/abs/1710.00668)</sup>  |
| 可近似性 | APX难；除非 P = NP，否则无法在 96/95 以内近似；已知最佳比值为 \( \ln 4 + \varepsilon \approx 1.39 \)（贝尔卡等）<sup>[9](https://escholarship.mcgill.ca/downloads/9g54xj04d.pdf)</sup><sup> • </sup><sup>[10](https://people.idsia.ch/~grandoni/Pubblicazioni/BGT25ipco.pdf)</sup>  |
| 经典近似 | Kou–Markowsky–Berman 2-近似，在 \( O(n^{3}) \) 时间内通过在终端的最短路径闭包上构造最小生成树实现<sup>[4](https://www.mathematik.uni-muenchen.de/~kpanagio/KombOpt/book.pdf)</sup> |
| 应用 | 超大规模集成电路布线、电信网络设计、IP组播路由、系统发育树重建、管道与道路网络规划<sup>[3](https://technav.ieee.org/topic/steiner-trees/)</sup> |

## 问题陈述与变体

在图版本中，输入是一个连通图，边权非负，并给定一个终端集；输出是一棵包含所有终端、但可以包含额外顶点的最小权重树<sup>[1](https://theory.cs.uni-bonn.de/info5/steinerkompendium/node2.html)</sup>。当终端集是顶点集的真子集时，最优斯坦纳树可以省略非终端顶点，也可以选用某些非终端顶点作为交汇点<sup>[11](https://watanabe.you/wiki/Steiner%20Tree%20Problem)</sup>。如果每个顶点都是终端，问题就退化为最小生成树，可在多项式时间内求解；其难度来自选择纳入哪些非终端顶点<sup>[3](https://technav.ieee.org/topic/steiner-trees/)</sup>。

该问题主要出现在两种几何设定中：欧几里得平面，其中边具有直线长度；以及直线（曼哈顿）平面，其中边被限制为水平和垂直线段<sup>[3](https://technav.ieee.org/topic/steiner-trees/)</sup>。直线斯坦纳树问题本身是NP完全的，由加里和约翰逊于1977年证明<sup>[12](https://cir.nii.ac.jp/crid/1360845538915947264)</sup>。一个相关的推广是斯坦纳森林问题：给定一组终端对，要求找出连接每一对的最小权重森林<sup>[13](https://drops.dagstuhl.de/storage/00lipics/lipics-vol297-icalp2024/LIPIcs.ICALP.2024.61/LIPIcs.ICALP.2024.61.pdf)</sup>。

## 计算复杂度

斯坦纳树问题是网络设计中早期展示其难解性的问题之一。卡普于1972年证明，即使边权为单位权重，该问题也是NP难的<sup>[4](https://www.mathematik.uni-muenchen.de/~kpanagio/KombOpt/book.pdf)</sup>。同年，加里、格雷厄姆和约翰逊证明，对一般平面点集计算斯坦纳最小树至少与任何NP完全问题一样难，用他们的话说，这实际上摧毁了任何获得高效通用算法的希望<sup>[5](https://epubs.siam.org/doi/abs/10.1137/0132072?journalCode=smjmap)</sup>。

近似能力也受到限制。该问题是APX难的，除非 P = NP，否则无法在 96/95 的因子内近似<sup>[9](https://escholarship.mcgill.ca/downloads/9g54xj04d.pdf)</sup>。从参数化角度看，情况取决于把哪个量作为参数。以终端数为参数，问题是固定参数可解的；以最优解中非终端（斯坦纳）顶点数为参数，则是W[2]难的<sup>[8](https://arxiv.org/abs/1710.00668)</sup>。

## 精确算法与参数化算法

**Dreyfus–Wagner。** 1971年，S. E. 德雷福斯和 R. A. 瓦格纳提出了一种动态规划算法，用于计算 \( n \) 顶点图中连接指定 \( k \) 个节点的最小长度弧集，其时间与 \( n^{3}/2 + n^{2}(2^{k-1} - k - 1) + n(3^{k-1} - 2^{k} + 3)/2 \) 成正比<sup>[6](https://onlinelibrary.wiley.com/doi/abs/10.1002/net.3230010302)</sup>。如果已有全对最短路径，则可以消去 \( n^{3}/2 \) 项<sup>[6](https://onlinelibrary.wiley.com/doi/abs/10.1002/net.3230010302)</sup>。这是固定参数算法的早期例子，远在参数化复杂度理论被形式化之前就已发表<sup>[14](https://ndl.ethernet.edu.et/bitstream/123456789/77489/1/84.pdf)</sup>，它确立了该问题以终端数为参数是固定参数可解的，运行时间为 \( 3^{\|K\|} \, \mathrm{poly}(n) \)<sup>[7](https://arxiv.org/abs/2406.19819)</sup>。

**结构参数。** 斯坦纳树在各种图宽度度量下表现良好：以树宽为参数是固定参数可解的，当 \( k \) 为树宽时，可以在单指数 \( 2^{O(k)} n^{O(1)} \) 时间内求解<sup>[13](https://drops.dagstuhl.de/storage/00lipics/lipics-vol297-icalp2024/LIPIcs.ICALP.2024.61/LIPIcs.ICALP.2024.61.pdf)</sup>。其近亲斯坦纳森林则表现迥异：在树宽为3的图上它是NP难的，这由加斯纳以及巴特尼、哈吉亚盖伊和马克思分别独立证明，从而甚至排除了以树宽为参数的XP算法<sup>[13](https://drops.dagstuhl.de/storage/00lipics/lipics-vol297-icalp2024/LIPIcs.ICALP.2024.61/LIPIcs.ICALP.2024.61.pdf)</sup>。对于以反馈边集大小 \( k \) 为参数的斯坦纳森林，已知有 \( 2^{O(k)} \cdot n^{O(1)} \) 时间的算法，而在指数时间假设下这一算法无法改进<sup>[13](https://drops.dagstuhl.de/storage/00lipics/lipics-vol297-icalp2024/LIPIcs.ICALP.2024.61/LIPIcs.ICALP.2024.61.pdf)</sup>。

空间也一直是关注目标：对于 \( k = \omega(\log n) \)，已有的参数化算法内存消耗很大，作为替代，人们为该问题开发了多项式空间的精确算法<sup>[15](https://sites.cs.ucsb.edu/~daniello/papers/steinerPolySpace.pdf)</sup>。

## 近似算法

由于问题是NP难的，大规模实例的实用算法依赖于近似或启发式方法<sup>[3](https://technav.ieee.org/topic/steiner-trees/)</sup>。

经典的 Kou–Markowsky–Berman 算法发表于1981年，它计算图限制在终端上的度量闭包，在终端间最短路径距离上构造最小生成树，并将每条边替换为其最短路径。这是一个2因子近似，运行时间为 \( O(n^{3}) \)<sup>[4](https://www.mathematik.uni-muenchen.de/~kpanagio/KombOpt/book.pdf)</sup>。该启发式的原始分析保证所得树的总距离至多为最优解的 \( 2(1 - 1/l) \) 倍，其中 \( l \) 是最优树的叶子数，在距离图上的最坏情况时间为 \( O(\|S\|^{2}) \)<sup>[16](https://www.researchgate.net/publication/227056882_A_Fast_Algorithm_for_Steiner_Trees)</sup>。

近似比一直在稳步改进。从泽利科夫斯基的 11/6-近似开始，组合算法到2000年达到了 \( 1.55 + \varepsilon \) 的保证<sup>[17](https://tcs.uos.de/_media/pubs/memics14_preprint_139steinerapx.pdf)</sup>。目前最佳的近似算法达到 \( \ln 4 + \varepsilon \approx 1.39 \)，由贝尔卡等人提出，基于对超图割松弛应用的迭代随机舍入方法<sup>[10](https://people.idsia.ch/~grandoni/Pubblicazioni/BGT25ipco.pdf)</sup>。对于度量情形，后续改进已将比值降到1.644以下，而诸如迭代1-斯坦纳之类的直线算法在实践中达到约为最优值1.15倍的结果<sup>[3](https://technav.ieee.org/topic/steiner-trees/)</sup>。在固定维欧几里得几何中，阿罗拉（JACM 1998）和米切尔（SICOMP 1999）的开创性工作提供了多项式时间近似方案<sup>[18](https://arxiv.org/abs/2312.01252)</sup>。

## 应用

斯坦纳树出现在网络设计的各个领域，凡是需要一种最便宜的连接结构来跨越所需点的地方<sup>[3](https://technav.ieee.org/topic/steiner-trees/)</sup>：

- 超大规模集成电路布线，芯片上的每个多引脚网络都是一个斯坦纳树实例，引脚为终端，布线网格为度量<sup>[3](https://technav.ieee.org/topic/steiner-trees/)</sup>。
- 电信网络设计，最小化光纤或电缆长度；以最小代价连接给定点集被评为电信网络设计中最重要的课题之一<sup>[3](https://technav.ieee.org/topic/steiner-trees/)</sup><sup> • </sup><sup>[19](https://ideas.repec.org/h/spr/sprchp/978-0-387-30165-5_18.html)</sup>。
- IP网络中的组播路由以最小化带宽消耗，组播路由通过构造一棵跨越源和所有目的地的树来实现<sup>[3](https://technav.ieee.org/topic/steiner-trees/)</sup><sup> • </sup><sup>[20](https://www.sciencedirect.com/science/article/pii/S037722179700369X)</sup>。
- 计算生物学中的系统发育树重建<sup>[3](https://technav.ieee.org/topic/steiner-trees/)</sup>。
- 基础设施工程中的管道与道路网络规划<sup>[3](https://technav.ieee.org/topic/steiner-trees/)</sup>。

在超大规模集成电路物理设计中，斯坦纳最小树算法在全局布线过程中可能被调用数百万次，使得运行时间与解的质量同样关键<sup>[21](https://www.mendeley.com/catalogue/f3a8b208-90d2-3933-9ee8-f94dd035e550/)</sup>。现代的问题建模不再局限于线长：时序驱动的变体最小化到最关键的时序汇点的埃尔莫尔延迟，而不是总线长<sup>[3](https://technav.ieee.org/topic/steiner-trees/)</sup>。

## 精确求解器与基准测试

通过整数规划，精确计算对于大型实例仍然实用。SCIP-Jack 是在 SCIP 框架内构建的分支切割求解器，处理经典的图斯坦纳树问题以及十四个相关问题，包括收奖斯坦纳树问题和最大权重连通子图问题；它通常能在几分钟内为具有数十万条边的大规模图计算出最小斯坦纳树，并被用于区域供热规划和光纤网络设计等应用<sup>[22](https://scipjack.zib.de/)</sup>。基准实例通过社区努力维护，例如第11届 DIMACS 实现挑战赛，该赛事收集了经典问题及其变体的实例<sup>[23](https://dimacs11.zib.de/downloads.html)</sup>。

## References

1. [Minimum Steiner Tree Problem, Steiner Kompendium, University of Bonn](https://theory.cs.uni-bonn.de/info5/steinerkompendium/node2.html)
2. [Steiner Trees in Industry, Springer](https://link.springer.com/book/10.1007/978-1-4613-0255-1)
3. [Steiner trees, IEEE Technology Navigator](https://technav.ieee.org/topic/steiner-trees/)
4. [Network Design Problems (KombOpt book), LMU Munich](https://www.mathematik.uni-muenchen.de/~kpanagio/KombOpt/book.pdf)
5. [Garey, Graham, Johnson (1977). The Complexity of Computing Steiner Minimal Trees. SIAM J. Appl. Math. 32(4), 835–859](https://epubs.siam.org/doi/abs/10.1137/0132072?journalCode=smjmap)
6. [Dreyfus, Wagner (1971). The Steiner Problem in Graphs. Networks 1(3), 195–207](https://onlinelibrary.wiley.com/doi/abs/10.1002/net.3230010302)
7. [Steiner Tree Parameterized by Multiway Cut and Even Less, arXiv](https://arxiv.org/abs/2406.19819)
8. [Parameterized Approximation Schemes for Steiner Trees with Small Number of Steiner Vertices, arXiv](https://arxiv.org/abs/1710.00668)
9. [Chapter 2. Background, McGill eScholarship](https://escholarship.mcgill.ca/downloads/9g54xj04d.pdf)
10. [Byrka, Grandoni, Traub. Steiner Tree approximation, IPCO](https://people.idsia.ch/~grandoni/Pubblicazioni/BGT25ipco.pdf)
11. [Steiner Tree Problem, watanabe.you wiki](https://watanabe.you/wiki/Steiner%20Tree%20Problem)
12. [The Rectilinear Steiner Tree Problem is NP-Complete, CiNii Research](https://cir.nii.ac.jp/crid/1360845538915947264)
13. [Parameterized Algorithms for Steiner Forest in Bounded Width Graphs, ICALP 2024, Dagstuhl](https://drops.dagstuhl.de/storage/00lipics/lipics-vol297-icalp2024/LIPIcs.ICALP.2024.61/LIPIcs.ICALP.2024.61.pdf)
14. [Dynamic Programming chapter (Dreyfus–Wagner as early FPT algorithm)](https://ndl.ethernet.edu.et/bitstream/123456789/77489/1/84.pdf)
15. [Computing Optimal Steiner Trees in Polynomial Space, UC Santa Barbara](https://sites.cs.ucsb.edu/~daniello/papers/steinerPolySpace.pdf)
16. [Kou, Markowsky, Berman (1981). A Fast Algorithm for Steiner Trees. Acta Informatica 15(2), 141–145](https://www.researchgate.net/publication/227056882_A_Fast_Algorithm_for_Steiner_Trees)
17. [Steiner Tree 1.39-Approximation in Practice, MEMICS 2014](https://tcs.uos.de/_media/pubs/memics14_preprint_139steinerapx.pdf)
18. [On Steiner Trees of the Regular Simplex, arXiv](https://arxiv.org/abs/2312.01252)
19. [Voß (2006). Steiner Tree Problems in Telecommunications. Handbook of Optimization in Telecommunications](https://ideas.repec.org/h/spr/sprchp/978-0-387-30165-5_18.html)
20. [Ghanwani. Neural and delay based heuristics for the Steiner problem in networks, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S037722179700369X)
21. [Tang, Liu, Chen, Xiong (2020). A Survey on Steiner Tree Construction and Global Routing for VLSI Design. IEEE Access 8, 68593–68622](https://www.mendeley.com/catalogue/f3a8b208-90d2-3933-9ee8-f94dd035e550/)
22. [SCIP-Jack: exact solver for Steiner tree problems in graphs and related problems, ZIB](https://scipjack.zib.de/)
23. [11th DIMACS Implementation Challenge, ZIB](https://dimacs11.zib.de/downloads.html)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Graph theory › Computational graph problems and algorithms › NP-hard graph problems and their algorithms

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/steiner-tree-problem

English original: https://www.edgepedia.org/steiner-tree-problem
