计算:一种通用且基础的概念
Computation as a universal and fundamental concept

原始链接: https://ergo.org/courses/computation-as-a-universal-and-fundamental-concept

蒂姆·拉夫加登(Tim Roughgarden)对计算机科学的探索始于艾伦·图灵(Alan Turing)1936 年的发现:某些问题从根本上是任何算法都无法解决的,例如“停机问题”。在超越理论极限之后,拉夫加登研究了为什么有些可解问题很容易解决,而另一些则极其困难。 他强调了算法捷径(如 Dijkstra 算法)的威力,这些捷径使计算机无需通过暴力搜索即可找到高效的解决方案。然而,这种效率在遇到诸如“旅行商问题”(TSP)等难题时会遇到瓶颈。这些难题构成了“NP完全”问题的基础,该框架揭示了成千上万种不同的任务是相互关联的;如果其中一个能被高效解决,那么所有的任务都能被解决。 这引出了计算机科学中最重要的未解之谜——“P 对 NP”问题。通过将历史数学探究与现代计算理论相结合,拉夫加登阐述了这些局限性如何影响从密码学到人工智能的方方面面。该课程专为大众设计,揭示了计算机能实现——以及很可能永远无法实现——的深刻边界。

这篇 Hacker News 讨论探讨了计算究竟是宇宙的基本定律,还是仅仅由人类发明的隐喻。 参与者辩论了几个核心观点: * **隐喻视角:** 批评者认为,“计算”是以人类为中心的视角,类似于过去几代人将宇宙视为时钟或蒸汽机。他们坚持认为计算是用于映射现实的符号工具,而非现实本身。 * **基础视角:** 支持者认为信息和计算是物理定律的固有属性。他们强调香农熵与热力学之间的联系,提出物理过程实际上就是信息的转化。 * **可判定性之争:** 讨论中相当大一部分内容集中在物理过程是否“可计算”上。虽然有人认为普遍的不可判定性(如停机问题)限制了我们预测物理系统的能力,但另一些人指出,不可判定性是抽象数学类别的属性,未必适用于具体的物理实例。 最终,这场讨论反映出一种张力:一方面是利用计算模型解释世界的实用性,另一方面是对这些模型是否捕捉到了现实本质的哲学怀疑。
相关文章

原文

Tim Roughgarden begins with a deceptively simple question: is there anything computers cannot do? To answer it, he takes us back to 1936, when Alan Turing, a decade before actual computers existed, laid the foundations of computer science as a byproduct of solving an obscure mathematical problem. Turing's paper introduced the theoretical machine that bears his name and proved something startling: there are problems no algorithm can ever solve, no matter how much time or computing power we throw at them. The halting problem, which asks whether a program will eventually stop running, is forever beyond the reach of any computer.

From this foundation, Roughgarden pivots to a more subtle question. Among the problems computers can solve, which ones can they solve quickly? He introduces us to algorithmic shortcuts, clever tricks that let programs avoid examining every possible solution. Your phone's map application builds on Dijkstra's algorithm to find the shortest route without checking every conceivable path. Karatsuba's multiplication method beats the grade-school approach we all learned. These shortcuts seem almost magical, and they raise a natural hope: perhaps such shortcuts exist for every problem.

That hope crashes against the Traveling Salesman Problem. Despite looking nearly identical to shortest-path routing, TSP has resisted every attempt to find a fast algorithm. Roughgarden explains how this puzzle led to the theory of NP-completeness, one of computer science's most surprising discoveries. Thousands of seemingly unrelated problems (scheduling, puzzle-solving, network optimization) turn out to be disguised versions of the same underlying challenge. If anyone finds a fast algorithm for any one of them, all become easy. If any one is truly hard, all are hard.

This brings us to P versus NP, the most important open question in computer science and one of the great unsolved problems in mathematics. Roughgarden traces its history through figures like Hilbert, Gödel, and von Neumann, showing how two separate research traditions, one focused on what algorithms can achieve, the other on their limitations, converged on this single question. The course concludes by examining what the answer might mean for cryptography, artificial intelligence, quantum computing, and our understanding of computation itself. No prior background in computer science or mathematics is required.

You can watch the lectures below, browse the chapter index, or watch on YouTube.

联系我们 contact @ memedata.com