# 自动机理论、语言和计算导论

《自动机理论、语言和计算导论》（*Introduction to Automata Theory, Languages, and Computation*）是一部关于形式语言、自动机与可计算性的标准教科书，作者为约翰·E·霍普克罗夫特（John E. Hopcroft）与杰弗里·D·乌尔曼（Jeffrey D. Ullman），自第二版起拉吉夫·莫特瓦尼（Rajeev Motwani）作为第三作者加入。其前身《形式语言及其与自动机的关系》（*Formal Languages and Their Relation to Automata*）在此后十余年间塑造了自动机理论这一领域，而1979年的第一版面向的是理论计算机科学方向的研究生与研究人员；其后的2000年版与2006年版则改以本科生为对象，并侧重应用。<sup>[1](https://infosekolah.net/en/Introduction_to_Automata_Theory,_Languages,_and_Computation)</sup><sup> • </sup><sup>[2](https://www.informit.com/store/introduction-to-automata-theory-languages-and-computation-9780321455369)</sup><sup> • </sup><sup>[3](https://michaellevet.github.io/S26/CSCI410/index.html)</sup> 计算机科学家称1979年版为“灰姑娘书”（Cinderella Book），这一绰号见于《行话文件》（Jargon File），其中解释说，得名于封面图案：一个据说是灰姑娘的女孩坐在一台鲁布·戈德堡式装置前，手里攥着一根从装置上垂下来的绳子。<sup>[1](https://infosekolah.net/en/Introduction_to_Automata_Theory,_Languages,_and_Computation)</sup>

| 关键事实 | 详情 |
|---|---|
| 前身 | 《形式语言及其与自动机的关系》，霍普克罗夫特与乌尔曼著，艾迪生-韦斯利出版社，1969年，242页<sup>[4](https://garfield.library.upenn.edu/classics1989/A1989AF70300001.pdf)</sup> |
| 第一版 | 霍普克罗夫特与乌尔曼著，艾迪生-韦斯利出版社，马萨诸塞州雷丁，1979年，x+418页<sup>[5](https://mathscinet.ams.org/mathscinet/relay-station?mr=0645539)</sup> |
| 第二版 | 霍普克罗夫特、莫特瓦尼与乌尔曼著，艾迪生-韦斯利·朗曼出版社，2000年11月1日出版（开放图书馆将其定为2001年，ISBN 0201441241）<sup>[6](https://dl.acm.org/doi/book/10.5555/557657)</sup><sup> • </sup><sup>[7](https://openlibrary.org/books/OL4748554M/Introduction_to_automata_theory_languages_and_computation)</sup> |
| 第三版 | 培生出版社，2006年6月29日出版，版权年份2007，560页，ISBN-13 978-0-321-45536-9<sup>[2](https://www.informit.com/store/introduction-to-automata-theory-languages-and-computation-9780321455369)</sup> |
| 核心内容 | 有限自动机、正则表达式、上下文无关文法、下推自动机、图灵机、不可判定性与难解性<sup>[8](https://www.informit.com/store/introduction-to-automata-theory-languages-and-computation-9780321462251)</sup> |
| 绰号 | “灰姑娘书”，得自1979年版封面<sup>[1](https://infosekolah.net/en/Introduction_to_Automata_Theory,_Languages,_and_Computation)</sup> |
| 影响范围 | ACM记录显示第二版有10,711次引用与174,257次累计下载；SciSpace记录1979年版有14,525次引用<sup>[6](https://dl.acm.org/doi/book/10.5555/557657)</sup> |

## 主题内容：本书所讲授的理论

本书讲授的是语言类与机器模型之间的经典对应关系。正则语言由有限自动机识别、由正则表达式描述；上下文无关语言由上下文无关文法生成、由下推自动机识别，后者在有限控制器上增加了一个栈；而递归可枚举语言则是图灵机所识别的语言。1979年版以乔姆斯基层级（由诺姆·乔姆斯基（Noam Chomsky）提出、马塞尔-保罗·舒岑贝格尔（Marcel-Paul Schützenberger）等先驱共同参与建立的文法四级分类）以及计算复杂性理论作结。<sup>[10](https://books.google.com/books/about/Introduction_to_Automata_Theory_Language.html?id=i_BQAAAAMAAJ)</sup><sup> • </sup><sup>[11](https://www.comp.nus.edu.sg/~fstephan/fullautomatatheory-pdflatex.pdf)</sup>

第三版以固定的顺序组织这些材料：有限自动机（第2章）、正则表达式与正则语言（第3章）、正则语言的性质（包括证明语言非正则）以及自动机的等价性与最小化（第4章）、上下文无关文法与语言（第5章）、下推自动机（第6章）、上下文无关语言的性质（包括泵引理与闭包性质，第7章）、图灵机（第8章）、不可判定性（第9章）。<sup>[8](https://www.informit.com/store/introduction-to-automata-theory-languages-and-computation-9780321462251)</sup> 其后各章讨论难解性：P类与NP类、可满足性问题与SAT的NP完全性、量化布尔公式的PSPACE完全性，以及随机类RP与ZPP及素性测试。<sup>[12](https://dpvipracollege.ac.in/wp-content/uploads/2023/01/John-E.-Hopcroft-Rajeev-Motwani-Jeffrey-D.-Ullman-Introduction-to-Automata-Theory-Languages-and-Computations-Prentice-Hall-2006.pdf)</sup>

**实践中的层级。** 本书将语言类与机器模型配对，把正则语言与有限自动机对应、把上下文无关语言与下推自动机对应。<sup>[10](https://books.google.com/books/about/Introduction_to_Automata_Theory_Language.html?id=i_BQAAAAMAAJ)</sup> 后来的工作通过引入并研究其他文法类及其所定义的形式语言，细化了这一层级的各个层次。<sup>[8](https://www.informit.com/store/introduction-to-automata-theory-languages-and-computation-9780321462251)</sup><sup> • </sup><sup>[11](https://www.comp.nus.edu.sg/~fstephan/fullautomatatheory-pdflatex.pdf)</sup>

## 关键技术与结果

**泵引理。** 正则语言的泵引理及其上下文无关语言的对应版本（第三版第7.2节）是证明一个语言非正则或非上下文无关的标准工具。它们的局限本身就是理论的一部分：泵条件对于正则性或上下文无关性是必要条件而非充分条件，因此违反某一条件即可排除相应的语言类，而通过泵测试并不能确立隶属关系。<sup>[8](https://www.informit.com/store/introduction-to-automata-theory-languages-and-computation-9780321462251)</sup><sup> • </sup><sup>[11](https://www.comp.nus.edu.sg/~fstephan/fullautomatatheory-pdflatex.pdf)</sup>

**构造与判定过程。** 本书涵盖确定性有限自动机与非确定性有限自动机经由子集构造的等价性、epsilon转移、自动机的等价性与最小化，以及正则语言与上下文无关语言二者的闭包性质与判定性质。<sup>[8](https://www.informit.com/store/introduction-to-automata-theory-languages-and-computation-9780321462251)</sup><sup> • </sup><sup>[12](https://dpvipracollege.ac.in/wp-content/uploads/2023/01/John-E.-Hopcroft-Rajeev-Motwani-Jeffrey-D.-Ullman-Introduction-to-Automata-Theory-Languages-and-Computations-Prentice-Hall-2006.pdf)</sup>

**不可判定性。** 第9章从图灵机出发发展不可判定性，包括赖斯定理（Rice's theorem）、递归可枚举语言的性质（第9.3.3节）以及波斯特对应问题（Post's Correspondence Problem）。<sup>[12](https://dpvipracollege.ac.in/wp-content/uploads/2023/01/John-E.-Hopcroft-Rajeev-Motwani-Jeffrey-D.-Ullman-Introduction-to-Automata-Theory-Languages-and-Computations-Prentice-Hall-2006.pdf)</sup>

## 版本及本书的演变

1969年的前身著作始于霍普克罗夫特与乌尔曼各自讲授的一门自动机理论研究生课程——霍普克罗夫特1964年在普林斯顿，乌尔曼1965年秋在哥伦比亚大学，当时他任职于贝尔电话实验室。他们发现相关材料散见于各类期刊，既无参考书也无教科书，认为这阻碍了一门学科的形成，并为新入门的研究者设置了巨大的门槛。他们拟定了一份章目清单，将其一分为二，各自负责奇数章或偶数章；成果便是艾迪生-韦斯利出版社一本242页的著作。<sup>[4](https://garfield.library.upenn.edu/classics1989/A1989AF70300001.pdf)</sup>

1979年的第一版仍仅由霍普克罗夫特与乌尔曼署名，包含许多前作中没有的专题，篇幅约为前作的两倍，反映了当时自动机理论研究的活跃。<sup>[12](https://dpvipracollege.ac.in/wp-content/uploads/2023/01/John-E.-Hopcroft-Rajeev-Motwani-Jeffrey-D.-Ullman-Introduction-to-Automata-Theory-Languages-and-Computations-Prentice-Hall-2006.pdf)</sup><sup> • </sup><sup>[5](https://mathscinet.ams.org/mathscinet/relay-station?mr=0645539)</sup> 其习题带有难度标记：最高难度与中等难度的题目分别以双星号或单星号标出。<sup>[13](https://dl.acm.org/doi/10.5555/574901)</sup>

第二版增加了拉吉夫·莫特瓦尼为合著者，由艾迪生-韦斯利·朗曼出版社于2000年11月1日出版；开放图书馆将同一版定为2001年，ISBN 0201441241。<sup>[6](https://dl.acm.org/doi/book/10.5555/557657)</sup><sup> • </sup><sup>[7](https://openlibrary.org/books/OL4748554M/Introduction_to_automata_theory_languages_and_computation)</sup> 第三版由培生出版社于2006年6月29日出版，版权年份2007，简明地呈现理论概念，同时增加了动手实践应用，并配有Gradiance在线学习与评估系统，该系统使用一系列“根问题”与提示来模拟一对一的师生辅导，还包含编程实验。<sup>[2](https://www.informit.com/store/introduction-to-automata-theory-languages-and-computation-9780321455369)</sup><sup> • </sup><sup>[8](https://www.informit.com/store/introduction-to-automata-theory-languages-and-computation-9780321462251)</sup><sup> • </sup><sup>[14](https://www.pearsoned.co.in/web/books/9788131720479_Introduction-to-Automata-Theory-Languages-and-Computation_Jeffrey-D-Ullman.aspx)</sup> 前言解释了其动机：到第三版问世时，自动机理论本身（相对于其应用）已少有直接研究，该学科已从研究生阶段的专门领域变为本科生课程的基本内容，所需先修知识更少，背景细节更多。<sup>[12](https://dpvipracollege.ac.in/wp-content/uploads/2023/01/John-E.-Hopcroft-Rajeev-Motwani-Jeffrey-D.-Ullman-Introduction-to-Automata-Theory-Languages-and-Computations-Prentice-Hall-2006.pdf)</sup>

**先修要求。** 本书假定读者已修过离散数学课程（涵盖图、树、逻辑与证明技巧）以及若干门编程课程，熟悉数据结构、递归与编译器。<sup>[12](https://dpvipracollege.ac.in/wp-content/uploads/2023/01/John-E.-Hopcroft-Rajeev-Motwani-Jeffrey-D.-Ullman-Introduction-to-Automata-Theory-Languages-and-Computations-Prentice-Hall-2006.pdf)</sup> 在斯坦福大学，作者们将这些材料用于CS154——一门为期一学季的自动机与语言理论课程，并设有CS154N选项，仅涵盖第8至第10章（图灵机、不可判定性与难解性），面向缺乏相应背景的研究生。<sup>[12](https://dpvipracollege.ac.in/wp-content/uploads/2023/01/John-E.-Hopcroft-Rajeev-Motwani-Jeffrey-D.-Ullman-Introduction-to-Automata-Theory-Languages-and-Computations-Prentice-Hall-2006.pdf)</sup><sup> • </sup><sup>[15](http://infolab.stanford.edu/~ullman/ialc.html)</sup> 乌尔曼的斯坦福主页还指向一门基于本书材料的Coursera自动机课程。<sup>[15](http://infolab.stanford.edu/~ullman/ialc.html)</sup>

## 与其他教科书的比较

主要竞争者是迈克尔·西普瑟（Michael Sipser）的《计算理论导论》（*Introduction to the Theory of Computation*）。在纽约大学，2026年春季的计算理论课程（CSCI-UA.0453）以西普瑟的著作为教材，同时将霍普克罗夫特、莫特瓦尼与乌尔曼的合著列为推荐的替代参考书——这是一种常见的格局：西普瑟的著作作为默认课程教材，霍普克罗夫特-乌尔曼的著作作为参考书。<sup>[16](https://cs.nyu.edu/~mmb586/courses/Spring26-ToC/index.html)</sup> 霍普克罗夫特与乌尔曼的1979年版被描述为一部严谨论述形式语言与计算模型的著作，同时引入了计算复杂性，适合能够驾驭数学推理的高年级本科生。<sup>[9](https://doi.org/10.1016/0096-0551(80)90011-9)</sup>

专家们对后续版本意见不一。1979年第一版面向理论计算机科学的研究生与研究人员，而一种常见的批评认为第二版和第三版删减过多：计算机科学家杰弗里·沙利特（Jeffrey Shallit）引用一位教授对后续版本的评价——“他们把好东西全删了”，而一位2026年春季课程的教师也附和这一抱怨，称修订“把好东西全拿掉了”。<sup>[1](https://infosekolah.net/en/Introduction_to_Automata_Theory,_Languages,_and_Computation)</sup><sup> • </sup><sup>[3](https://michaellevet.github.io/S26/CSCI410/index.html)</sup> 作者自己的前言则以不同方式框定这一变化，将其视为对该领域从研究课题转变为本科服务性课程的回应。<sup>[12](https://dpvipracollege.ac.in/wp-content/uploads/2023/01/John-E.-Hopcroft-Rajeev-Motwani-Jeffrey-D.-Ullman-Introduction-to-Automata-Theory-Languages-and-Computations-Prentice-Hall-2006.pdf)</sup>

## 数据一览

本书的书目记录涵盖七个或更多版本与印次，包括2002年的德文译本《自动机理论、形式语言与复杂性理论导论》（*Einführung in die Automatentheorie, Formale Sprachen und Komplexitätstheorie*，第2修订版，培生德国教育出版）。<sup>[7](https://openlibrary.org/books/OL4748554M/Introduction_to_automata_theory_languages_and_computation)</sup> 页数逐代增长：1969年242页，1979年x+418页，第三版560页（培生印度平装本554页）。<sup>[4](https://garfield.library.upenn.edu/classics1989/A1989AF70300001.pdf)</sup><sup> • </sup><sup>[5](https://mathscinet.ams.org/mathscinet/relay-station?mr=0645539)</sup><sup> • </sup><sup>[2](https://www.informit.com/store/introduction-to-automata-theory-languages-and-computation-9780321455369)</sup><sup> • </sup><sup>[14](https://www.pearsoned.co.in/web/books/9788131720479_Introduction-to-Automata-Theory-Languages-and-Computation_Jeffrey-D-Ullman.aspx)</sup>

引用次数因数据库及所汇总的记录而异。ACM数字图书馆中第二版的记录显示10,711次引用与174,257次累计下载，涵盖1968至2026年间的148条出版记录；而一条相关的ACM记录显示24,811次引用，涵盖1965至2023年间的268条记录；SciSpace记录1979年版有14,525次引用。<sup>[6](https://dl.acm.org/doi/book/10.5555/557657)</sup>

## 接受度、影响与实际用途

1969年的前身著作既构成了相关课程的基础，也构成了进一步研究的基础，并在十余年间塑造了自动机理论这一领域。<sup>[1](https://infosekolah.net/en/Introduction_to_Automata_Theory,_Languages,_and_Computation)</sup> 霍普克罗夫特将成功归因于教学法：“也许这本书的成功来自我们努力在真正给出证明之前先呈现每个证明的精髓。”<sup>[4](https://garfield.library.upenn.edu/classics1989/A1989AF70300001.pdf)</sup>

本书所讲授的理论已嵌入实际运行的软件之中。有限自动机用于编译器的词法分析组件，以及用于验证电路或协议正确性的系统。前言还列举了数字电路设计软件、文本扫描软件、通信协议等有限状态系统的验证、用于验证协议的模型检测算法，以及仿照上下文无关文法设计的文档描述语言。<sup>[12](https://dpvipracollege.ac.in/wp-content/uploads/2023/01/John-E.-Hopcroft-Rajeev-Motwani-Jeffrey-D.-Ullman-Introduction-to-Automata-Theory-Languages-and-Computations-Prentice-Hall-2006.pdf)</sup> 在软件之外，自动机、文法与表达式仍是形式语言理论的基本概念，应用于群、半群、自动结构以及有限图上的博弈。<sup>[11](https://www.comp.nus.edu.sg/~fstephan/fullautomatatheory-pdflatex.pdf)</sup>

## 近期发展

自动机理论已成为评估大语言模型的基准。ChomskyBench（2026）是一个包含115项任务的基准，覆盖乔姆斯基层级全部四个层级（从3型到0型），用于评估大语言模型的形式推理能力；其中约15%的任务取自经典教科书，包括霍普克罗夫特、莫特瓦尼与乌尔曼的《自动机理论、语言和计算导论》（2001）以及1969年的前身著作。<sup>[17](https://arxiv.org/pdf/2604.02709)</sup> 其结果按层级分层的方式恰好映照了理论本身：大语言模型在正则（3型）任务（如词法分析与正则表达式验证）上表现出尚可的能力，在上下文相关（1型）任务上有明显局限，而在递归可枚举（0型）任务（如终止性分析）上则根本不可靠；一项时间复杂度分析发现，在这些形式任务上，大语言模型的效率显著低于传统算法程序。<sup>[17](https://arxiv.org/pdf/2604.02709)</sup>

2026年ACL Findings上一项关于DFA构造的研究发现，模型在事实性问题上达到完美准确率，在见过的构造任务上达到84%至90%，但在未见过的题目上准确率下降30%至64%，失败源于对语言约束的系统性误解、对克莱尼星号语义的错误处理以及全局一致性的丧失；这些错误在直接提示、思维链（Chain-of-Thought）与思维树（Tree-of-Thought）提示下均持续存在。<sup>[18](https://aclanthology.org/2026.findings-acl.1495/)</sup> 课程采用也在继续：本书仍是2026年春季纽约大学课程大纲中推荐的替代教材。<sup>[16](https://cs.nyu.edu/~mmb586/courses/Spring26-ToC/index.html)</sup>

## References

1. [Introduction to Automata Theory, Languages, and Computation (reference article)](https://infosekolah.net/en/Introduction_to_Automata_Theory,_Languages,_and_Computation)
2. [Introduction to Automata Theory, Languages, and Computation, 3rd Edition, InformIT](https://www.informit.com/store/introduction-to-automata-theory-languages-and-computation-9780321455369)
3. [CSCI 410/CSIS 616 Automata Theory course notes](https://michaellevet.github.io/S26/CSCI410/index.html)
4. [Citation Classic commentary on Hopcroft & Ullman, Formal Languages and their Relation to Automata (1969)](https://garfield.library.upenn.edu/classics1989/A1989AF70300001.pdf)
5. [MR0645539, MathSciNet review of the 1979 first edition](https://mathscinet.ams.org/mathscinet/relay-station?mr=0645539)
6. [Introduction to Automata Theory, Languages and Computability (2nd edition), ACM Digital Library](https://dl.acm.org/doi/book/10.5555/557657)
7. [Introduction to automata theory, languages, and computation, Open Library](https://openlibrary.org/books/OL4748554M/Introduction_to_automata_theory_languages_and_computation)
8. [Introduction to Automata Theory, Languages, and Computation, 3rd Edition (alternate record), InformIT](https://www.informit.com/store/introduction-to-automata-theory-languages-and-computation-9780321462251)
9. [Introduction to Automata Theory, Languages, and Computation (1979), SciSpace](https://doi.org/10.1016/0096-0551(80)90011-9)
10. [Introduction to Automata Theory, Languages, and Computation, Google Books](https://books.google.com/books/about/Introduction_to_Automata_Theory_Language.html?id=i_BQAAAAMAAJ)
11. [Methods and Theory of Automata and Languages, NUS lecture notes](https://www.comp.nus.edu.sg/~fstephan/fullautomatatheory-pdflatex.pdf)
12. [Hopcroft, Motwani, Ullman (2006). Introduction to Automata Theory, Languages, and Computation, 3rd Edition, full text, Prentice Hall](https://dpvipracollege.ac.in/wp-content/uploads/2023/01/John-E.-Hopcroft-Rajeev-Motwani-Jeffrey-D.-Ullman-Introduction-to-Automata-Theory-Languages-and-Computations-Prentice-Hall-2006.pdf)
13. [Introduction To Automata Theory, Languages, And Computation, ACM Guide books](https://dl.acm.org/doi/10.5555/574901)
14. [Introduction to Automata Theory, Languages, and Computation, 3/e, Pearson Education India](https://www.pearsoned.co.in/web/books/9788131720479_Introduction-to-Automata-Theory-Languages-and-Computation_Jeffrey-D-Ullman.aspx)
15. [Introduction to Automata Theory, Languages, and Computation, Ullman's Stanford page](http://infolab.stanford.edu/~ullman/ialc.html)
16. [Theory of Computation, Spring 2026, NYU CSCI-UA.0453](https://cs.nyu.edu/~mmb586/courses/Spring26-ToC/index.html)
17. [ChomskyBench: Evaluating LLMs through the Chomsky Hierarchy, arXiv](https://arxiv.org/pdf/2604.02709)
18. [Beyond Memorization: Testing LLM Reasoning on Unseen Theory of Computation Tasks, ACL Findings 2026](https://aclanthology.org/2026.findings-acl.1495/)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026; Oct 25, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Formal languages and automata theory › Hopcroft–Ullman, Introduction to Automata Theory

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/introduction-to-automata-theory-languages-and-computation

English original: https://www.edgepedia.org/introduction-to-automata-theory-languages-and-computation
