正则表达式 – 简化数学中的正则表达式

前端之家收集整理的这篇文章主要介绍了正则表达式 – 简化数学中的正则表达式前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我最近发现大约 Kleene algebra用于操纵和简化正则表达式。

我想知道这是否已经建立在像Mathematica这样的计算软件程序中?拥有一个用于进行联合和大型表达式连接的计算工具,并让计算机简化它是非常好的。

如果您不知道内置此代数的任何程序,您是否知道允许使用新代数扩展其引擎的任何程序?

http://www.maplesoft.com/msw/program/MSW04FinalProgram.pdf,它说:

One of the basic results of the theory of finite automata is the
famous Kleene theorem,which states that a language is acceptable by a
finite automaton if and only if it can be represented by a regular
expression.

The main difficulty of the algorithmic treatment of regular
expressions is,however,their simplification. Although several
identities are known concerning regular expressions,e.g.,the rules
of Kleene algebra,there does not exist an effective algorithm for
solving the simplification problem of regular expressions.

Under the circumstances,the only way left is to develop heuristic
algorithms for simplifying regular expressions. For the aut package,
this paper outlines the Maple procedures Rsimplify,Rabsorb and
Rexpand.

我想知道是否存在Kleene代数算法的开源实现。

原文链接:https://www.f2er.com/regex/357391.html

猜你在找的正则表达式相关文章