# 沈林

**沈林**（Shen Lin，1931年2月4日生于厦门，当时称Amoy）是一位数学家和计算机科学家，职业生涯主要在[贝尔实验室](https://www.edgepedia.org/zh/bell-labs)度过，最为人熟知的是旅行商问题的[Lin–Kernighan启发式算法](https://www.edgepedia.org/zh/lin-kernighan-heuristic)、Kernighan–Lin图划分算法，以及他在博士论文中对[忙碌海狸](https://www.edgepedia.org/zh/busy-beaver)问题的早期研究。<sup>[1](https://wiki.bbchallenge.org/wiki/Shen_Lin)</sup><sup> • </sup><sup>[2](https://www.cs.princeton.edu/~bwk/btl.mirror/tsp.pdf)</sup> 这两个以他名字命名的算法都建立在一种共同的、不依赖具体问题的机制之上，即变深度搜索；而且两者至今仍在使用：TSP启发式算法是LKH求解器家族的核心，划分算法则是VLSI网表划分系统的核心。<sup>[3](https://arxiv.org/html/2502.00316)</sup><sup> • </sup><sup>[4](https://cecs.uci.edu/~papers/compendium94-03/papers/1997/iccad97/pdffiles/06c_3.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 出生 | 1931年2月4日生于中国厦门（Amoy）；1951年获菲律宾大学数学学士学位<sup>[1](https://wiki.bbchallenge.org/wiki/Shen_Lin)</sup> |
| 博士 | 数学博士，俄亥俄州立大学，1963年，导师Tibor Radó；博士论文解决了忙碌海狸问题BB(3)<sup>[1](https://wiki.bbchallenge.org/wiki/Shen_Lin)</sup> |
| 贝尔实验室 | 1963年10月入职；1965年、1970年和1973年发表三篇里程碑论文<sup>[1](https://wiki.bbchallenge.org/wiki/Shen_Lin)</sup><sup> • </sup><sup>[5](https://archive.org/details/bstj44-10-2245)</sup> |
| Lin–Kernighan TSP | 对所有测试问题均给出最优解，最大规模达110个城市；运行时间约为n²；在GE635上，一个100城市问题每种情形耗时不到25秒<sup>[2](https://www.cs.princeton.edu/~bwk/btl.mirror/tsp.pdf)</sup> |
| Kernighan–Lin划分 | 基于交换的图二分法，《贝尔系统技术杂志》，1970年2月；据1997年的一项调查报告，该方法在VLSI网表划分中仍在使用<sup>[6](https://archive.org/details/bstj49-2-291)</sup><sup> • </sup><sup>[4](https://cecs.uci.edu/~papers/compendium94-03/papers/1997/iccad97/pdffiles/06c_3.pdf)</sup> |
| 影响 | 现代后继者LKH已求得最大7,397个城市的最优解，并改进了85,900城市问题的最优已知路线<sup>[7](http://webhotel4.ruc.dk/~keld/research/LKH/LKH-2.0/DOC/LKH_REPORT.pdf)</sup> |

## 生平与职业生涯

沈林出生于中国厦门（Amoy），是王水仙（Shui-Hsian Wang）与林秋水（Chio-Shih Lin）的长子。二战前全家移居菲律宾，他于1951年在[菲律宾大学](https://www.edgepedia.org/zh/university-of-the-philippines)获得数学学士学位。1952年他赴美进入[俄亥俄州立大学](https://www.edgepedia.org/zh/ohio-state-university)学习，1963年在[Tibor Radó](https://www.edgepedia.org/zh/tibor-rado)指导下获得数学博士学位。<sup>[1](https://wiki.bbchallenge.org/wiki/Shen_Lin)</sup>

他的博士论文已经触及计算的基础问题：沈林解决了BB(3)，即三状态图灵机的忙碌海狸问题，并且是第一个描述“平移循环器”（Translated Cyclers）的人——他称之为“部分递归”（partial recurrence）——并发表了检测这类循环的算法。<sup>[1](https://wiki.bbchallenge.org/wiki/Shen_Lin)</sup> 他于1963年10月加入贝尔实验室，此后十年的发表记录恰好映照出组合优化作为一门计算领域的兴起：1965年在《贝尔系统技术杂志》上发表《旅行商问题的计算机解法》（第44卷第10期，第2245–2269页），1970年与[Brian Kernighan](https://www.edgepedia.org/zh/brian-kernighan)合写划分论文，1973年在《运筹学》（*Operations Research*）上发表Lin–Kernighan论文。<sup>[5](https://archive.org/details/bstj44-10-2245)</sup><sup> • </sup><sup>[6](https://archive.org/details/bstj49-2-291)</sup><sup> • </sup><sup>[8](https://dlnext.acm.org/doi/10.1287/opre.21.2.498)</sup>

## Lin–Kernighan启发式算法

**从3-opt到变深度。** 沈林1965年的论文强化了Croes更早提出的一种方法：Croes通过翻转一个子序列（即2-opt移动）来改进路线，而沈林还考虑了在翻转后的子序列插入到另外两个相邻城市之间能降低成本时进行这种插入。Croes的算法和沈林的算法通常被称为2-opt和3-opt。<sup>[9](https://www.math.uwaterloo.ca/tsp/methods/papers/lk_report.pdf)</sup> 沈林还将一条路线定义为λ-最优，如果不存在任何边替换能带来更低的成本；他证明无交叉路线恰好是2-最优的，而在翻转和插入操作下最优的路线是3-最优的。<sup>[9](https://www.math.uwaterloo.ca/tsp/methods/papers/lk_report.pdf)</sup>

1973年与Kernighan合写的论文推广了这一思想。Lin–Kernighan邻域搜索以结构化方式生成k-opt移动，即删除k条边并插入k条新边，利用的是任何k-opt移动都可以构造为一系列2-opt移动这一事实。搜索不预先固定k，而是变化深度：只要累计增益保持为正，就不断延伸删除边与添加边交替的序列。<sup>[10](https://leeds-faculty.colorado.edu/glover/fred%20pubs/429%20-%20TSP%20-%20problem%20heuristics%20-%20leading%20methods,%20implementations,%20latest%20advances.pdf)</sup><sup> • </sup><sup>[2](https://www.cs.princeton.edu/~bwk/btl.mirror/tsp.pdf)</sup> 作者将其描述为一种具有广泛适用性的通用启发式方法，相信在组合优化中有广阔的应用前景。<sup>[2](https://www.cs.princeton.edu/~bwk/btl.mirror/tsp.pdf)</sup>

**为何重要。** 在这项工作之前，对超过约60个城市的TSP实例研究甚少；Held和Karp的精确方法最多报告到64个城市。Lin–Kernighan对每一个测试问题都给出了最优解，无论是文献中的经典实例还是随机生成的实例，规模最大到110个城市。<sup>[2](https://www.cs.princeton.edu/~bwk/btl.mirror/tsp.pdf)</sup> 运行时间大致按n²增长；一个典型的100城市问题在GE635上每种情形耗时不到25秒，而以超过95%的置信度获得最优解约需三分钟。（Helsgaun的回顾文章给出原始1971年实现的平均运行时间为n^2.2量级，并称它对大多数少于100个城市的问题都找到了最优解。）<sup>[2](https://www.cs.princeton.edu/~bwk/btl.mirror/tsp.pdf)</sup><sup> • </sup><sup>[7](http://webhotel4.ruc.dk/~keld/research/LKH/LKH-2.0/DOC/LKH_REPORT.pdf)</sup> 1989年的一项综述指出，该算法的其他实现都未能达到Lin和Kernighan自己的实现那样高的效率。<sup>[7](http://webhotel4.ruc.dk/~keld/research/LKH/LKH-2.0/DOC/LKH_REPORT.pdf)</sup>

Concorde团队（Applegate、Bixby、Chvátal、Cook及其同事）的回顾性综述判断：迄今为止最成功的路线寻找方法，其核心正是Lin–Kernighan算法——考虑到原始研究仅限于最多110个城市的实例，这是一个了不起的评价。<sup>[9](https://www.math.uwaterloo.ca/tsp/methods/papers/lk_report.pdf)</sup>

**后继发展。** 1973年之后的主要传承脉络经由重启与扰动展开。Martin、Otto和Felten于1991年提出用双桥4-opt移动对Lin–Kernighan找到的路线进行“踢动”，而不是从头重启；由此产生的链式Lin–Kernighan大大优于此前十五年多来一直作为标准的重复Lin–Kernighan方法。<sup>[9](https://www.math.uwaterloo.ca/tsp/methods/papers/lk_report.pdf)</sup> Keld Helsgaun的LKH实现在许多方面改进了LK，包括使用由1-树结构导出的α值，并对所有已求解的实例都找到了最优解，包括一个7,397城市问题——当时已求得最优解的最大非平凡实例——同时改进了85,900城市问题（最优解未知）的最优已知解。<sup>[11](https://arxiv.org/html/2501.04072)</sup><sup> • </sup><sup>[7](http://webhotel4.ruc.dk/~keld/research/LKH/LKH-2.0/DOC/LKH_REPORT.pdf)</sup> 在一台300 MHz的G3 Power Macintosh上，LKH对典型的100城市问题在一秒内找到最优解，对典型的1,000城市问题在一分钟内找到最优解。<sup>[7](http://webhotel4.ruc.dk/~keld/research/LKH/LKH-2.0/DOC/LKH_REPORT.pdf)</sup> LKH-2将实验扩展到10,000至10,000,000个城市的欧几里得实例，运行时间几乎随问题规模线性增长。<sup>[12](https://www2.seas.gwu.edu/~simhaweb/champalg/tsp/papers/Helsgaun2.pdf)</sup>

## Kernighan–Lin划分

第二个以他们命名的算法解决的是另一个问题：将图的顶点分成大小相等的两部分，使得跨两部分之间的边数（或总权重）很小。该算法以《一种高效的图划分启发式方法》（"An Efficient Heuristic Procedure for Partitioning Graphs"）为题发表于《贝尔系统技术杂志》第49卷第2期，1970年2月，第291–307页。<sup>[6](https://archive.org/details/bstj49-2-291)</sup> 分工情况在Kernighan本人的回忆中有据可查：“沈有一个如何攻克一般情形的想法，Kernighan让算法在Fortran程序中跑了起来”，这成为他普林斯顿博士论文的核心，外加一些特殊情况。<sup>[1](https://wiki.bbchallenge.org/wiki/Shen_Lin)</sup> Lin–Kernighan TSP论文指出，同样的启发式方法已经被相当成功地应用于图划分，证实两个算法共享同一种机制。<sup>[2](https://www.cs.princeton.edu/~bwk/btl.mirror/tsp.pdf)</sup>

推动这一研究方向的应用在其后续影响中可见：1997年ICCAD的一项综述报告称，Kernighan–Lin算法及其由Fiduccia和Mattheyses提出的变体仍然在许多VLSI网表划分系统的核心中使用——在芯片电路中，电路必须被分配到相互连接较少的组件之间。<sup>[4](https://cecs.uci.edu/~papers/compendium94-03/papers/1997/iccad97/pdffiles/06c_3.pdf)</sup>

## 分支定界背景

[分支定界](https://www.edgepedia.org/zh/branch-and-bound)是一种精确优化方案，它通过称为分支的过程将所有可行解的集合不断划分为越来越小的子集，同时为每个子集计算下界，使得整个子集可以被丢弃而无须探索。1963年《运筹学》（*Operations Research*）上发表了一种用于旅行商问题的分支定界算法，使用基于指派问题思想的下界（第11卷，第972页）。<sup>[13](https://pubsonline.informs.org/doi/abs/10.1287/opre.11.6.972)</sup>

## 与其他方法的比较

相较于更简单的局部搜索，Lin–Kernighan的优势是结构性的：2-opt和3-opt预先固定移动规模，而LK以增益准则在所有k-opt深度上搜索并剪枝；Lin–Kernighan对最大110个城市的问题给出了最优解，而此前的工作对超过约60个城市的问题几乎没有建树。<sup>[2](https://www.cs.princeton.edu/~bwk/btl.mirror/tsp.pdf)</sup><sup> • </sup><sup>[10](https://leeds-faculty.colorado.edu/glover/fred%20pubs/429%20-%20TSP%20-%20problem%20heuristics%20-%20leading%20methods,%20implementations,%20latest%20advances.pdf)</sup>

相较于精确求解器，2024年的基准研究认定Concorde是精确TSP算法中一致公认的最先进方法，而在非精确启发式方法中则不存在单一的最先进方法；基准测试和算法选择研究显示出EAX和LKH占优的总体趋势，而自两者都经过外部重启机制改进以来，这一趋势更加明显。<sup>[14](https://arxiv.org/html/2407.03927v1)</sup> EAX、Mixing GA和MAOS比精确方法运行更快，但不提供最优性保证。<sup>[14](https://arxiv.org/html/2407.03927v1)</sup>

局部搜索家族内部也存在竞争者。对stem-and-cycle弹射链方法的比较测试发现，在约70%的对称测试问题上，它们找到了比四种领先的Lin–Kernighan变体中最好的一个更好的解；在28个标准非对称实例上，双根S&C算法找到了21个最佳解，而一个专用LK变体只找到4个。<sup>[10](https://leeds-faculty.colorado.edu/glover/fred%20pubs/429%20-%20TSP%20-%20problem%20heuristics%20-%20leading%20methods,%20implementations,%20latest%20advances.pdf)</sup> 在划分领域，比较的方向恰恰相反：ICCAD综述指出，LK TSP算法在大规模问题上所得解与最优解的差距经常在2%以内，而FM划分算法可能需要运行约50次才能找到接近最优的解，对于10,000个或更多节点的问题可能需要更多次运行；尽管表面上相似，FM的一次运行实际上只相当于LK算法的内循环。<sup>[4](https://cecs.uci.edu/~papers/compendium94-03/papers/1997/iccad97/pdffiles/06c_3.pdf)</sup>

## References

1. [Shen Lin, BusyBeaverWiki.](https://wiki.bbchallenge.org/wiki/Shen_Lin)
2. [S. Lin and B. W. Kernighan (1973). An Effective Heuristic Algorithm for the Traveling-Salesman Problem. *Operations Research* 21(2), mirror at Princeton.](https://www.cs.princeton.edu/~bwk/btl.mirror/tsp.pdf)
3. [The Kernighan-Lin Search Algorithm (2025), arXiv.](https://arxiv.org/html/2502.00316)
4. [Adaptive Methods for Netlist Partitioning, ICCAD 1997.](https://cecs.uci.edu/~papers/compendium94-03/papers/1997/iccad97/pdffiles/06c_3.pdf)
5. [Shen Lin (1965). Computer Solutions of the Traveling Salesman Problem. Bell System Technical Journal 44(10), 2245–2269.](https://archive.org/details/bstj44-10-2245)
6. [B. W. Kernighan and S. Lin (1970). An Efficient Heuristic Procedure for Partitioning Graphs. Bell System Technical Journal 49(2), 291–307.](https://archive.org/details/bstj49-2-291)
7. [Keld Helsgaun. An Efficient Implementation of the Lin-Kernighan Traveling Salesman Heuristic (LKH report).](http://webhotel4.ruc.dk/~keld/research/LKH/LKH-2.0/DOC/LKH_REPORT.pdf)
8. [An Effective Heuristic Algorithm for the Traveling-Salesman Problem, publisher record, *Operations Research* 21(2):498–516.](https://dlnext.acm.org/doi/10.1287/opre.21.2.498)
9. [Applegate, Bixby, Chvátal, Cook et al. Finding Tours in the TSP (retrospective survey).](https://www.math.uwaterloo.ca/tsp/methods/papers/lk_report.pdf)
10. [Glover et al. Traveling salesman problem heuristics: Leading methods, implementations and latest advances.](https://leeds-faculty.colorado.edu/glover/fred%20pubs/429%20-%20TSP%20-%20problem%20heuristics%20-%20leading%20methods,%20implementations,%20latest%20advances.pdf)
11. [Multi-armed Bandit and Backbone boost Lin-Kernighan-Helsgaun Algorithm (2025), arXiv.](https://arxiv.org/html/2501.04072)
12. [Keld Helsgaun. General k-opt submoves for the Lin–Kernighan TSP heuristic (LKH-2).](https://www2.seas.gwu.edu/~simhaweb/champalg/tsp/papers/Helsgaun2.pdf)
13. [An Algorithm for the Traveling Salesman Problem, *Operations Research* 11:972 (1963).](https://pubsonline.informs.org/doi/abs/10.1287/opre.11.6.972)
14. [Dancing to the State of the Art? TSP heuristic benchmark study (2024), arXiv.](https://arxiv.org/html/2407.03927v1)

---
*Initially written Oct 10, 2026 · Edited: Oct 11, 2026; Oct 15, 2026*

Topic: 技术与人造世界 › 工程师与计算机科学家 › 计算机科学家与人工智能研究者 › Researchers in theoretical computer science, cryptography, quantum computing, graphics, and HCI › Algorithms and data structures

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/shen-lin

English original: https://www.edgepedia.org/shen-lin
