arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.13577cs.FL
收藏

正则语言、导数和有限自动机

Regular languages, derivatives and finite automata

Ola Wingbrant

摘要:

这篇报道主要是为了教育目的而写的。它是对正则语言、正则表达式和使用Brzozowski导数的正则表达式匹配的自包含介绍。因此,它主要基于Brzozowski[4]和Owens等人的工作。[12]语言基础材料的灵感来自书籍[2]和网络材料[16]。第1章介绍了形式语言的基本概念,以及字符串导数的概念。在第二章中,我们定义了正则语言类,并进一步发展了该类的导数理论。我们使用导数来证明Myhill-Nerod定理,泵引理,以及所有布尔连接词下的正则语言的封闭性。第三章介绍正则表达式和正则表达式匹配。第四章将正则语言及其导数理论与有限自动机理论联系起来。第5章介绍了锚点的概念,以及如何将其纳入基于导数的匹配器。第6章讨论了使用导数的子匹配,该方法受到Laurikari及其标记转换工作的启发[11]。这是我们认为我们对该领域的主要贡献。在最后一章,第七章,我们总结了前面讨论的技术,并给出了一个正则表达式匹配算法。我们还讨论了其他人的相关工作。

英文摘要:

This report is mostly written for educational purposes. It is meant as a self contained introduction to regular languages, regular expressions, and regular expression matching by using Brzozowski derivatives. As such it is mostly based on the work by Brzozowski[4] and Owens et al.[12] The language basics material have been inspired by books[2] and web material[16]. Chapter 1 introduces the fundamental concepts of formal languages, as well as the idea of string derivatives. In chapter 2 we define the class of regular languages, and further develops the theory of derivatives for that class. We use derivatives to prove the Myhill-Nerod theorem, the Pumping lemma, and the closure of regular languages under all Boolean connectives. In chapter 3 we introduce regular expressions and regular expression matching. Chapter 4 connects the theory of regular languages and derivatives with that of finite automata. Chapter 5 looks at the concept of anchors, and how this can be incorporated into a matcher based on derivatives. Chapter 6 discusses submatching using derivatives with an approach inspired by Laurikari and his work on tagged transitions[11]. This is the part we consider as our main contribution to the field. In the last chapter, chapter 7, we summarize by giving a regular expression matching algorithm using the previously discussed techniques. We also discuss related work by others.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑