一个简化正则表达式的程序(工具论文)
A Program That Simplifies Regular Expressions (Tool paper)
AI总结:
本文提出一个正则表达式简化系统,通过统一全局数据结构、动态归约语言表示及等价类最短代表选择来提升效率,并以文献示例和随机实验验证其有效性。
摘要:
本文介绍了一个旨在将正则表达式转换为更短等价表达式的系统的主要特性。该系统还能够计算其他有助于简化的操作,例如检查正则语言的包含关系。这项工作的主要新颖之处在于,它将已知但不同的正则语言表示方法组合成一个全局统一的数据结构,从而使操作更加高效。此外,随着对正则语言表示执行操作,这些表示会被动态归约。表达式经过规范化,并由唯一标识符(一个整数)表示。被发现等价(即表示同一正则语言)的表达式会被分组到等价类中,并从中选择一个最短代表元。文章简要描述了在该全局数据结构上运行的主要算法。其中一些算法是对著名算法的直接改编,但大多数融入了新思想,这些新思想对于使系统高效确实必不可少。最后,为展示其实用性,将该系统应用于文献中的若干示例。文中还提供了关于随机生成的表达式集合的统计数据。
英文摘要:
This paper presents the main features of a system that aims to transform regular expressions into shorter equivalent expressions. The system is also capable of computing other operations useful for simplification, such as checking the inclusion of regular languages. The main novelty of this work is that it combines known but distinct ways of representing regular languages into a global unified data structure that makes the operations more efficient. In addition, representations of regular languages are dynamically reduced as operations are performed on them. Expressions are normalized and represented by a unique identifier (an integer). Expressions found to be equivalent (i.e. denoting the same regular language) are grouped into equivalence classes from which a shortest representative is chosen. The article briefly describes the main algorithms working on the global data structure. Some of them are direct adaptations of well-known algorithms, but most of them incorporate new ideas, which are really necessary to make the system efficient. Finally, to show its usefulness, the system is applied to some examples from the literature. Statistics on randomly generated sets of expressions are also provided.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。