简化 Mathematica 中的正则表达式

发布于 2024-12-26 12:37:52 字数 221 浏览 1 评论 0原文

我最近发现了用于操作和简化正则表达式的克林代数

我想知道这是否已内置到 Mathematica 等任何计算软件程序中?如果有一个计算工具来进行大型表达式的并集和串联并让计算机简化它们,那就太好了。

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

I recently found out about Kleene algebra for manipulating and simplifying regular expressions.

I'm wondering if this has been build into any computational software programs like Mathematica? It would be great to have a computational tool for doing unions and concatenations of large expressions and have the computer simplify them.

If you are not aware of any programs with this algebra built in, do you know any programs that allow extending their engines with new algebras?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清风挽心 2025-01-02 12:37:52

关于http://www.maplesoft.com/msw/program/MSW04FinalProgram.pdf,它指出:

有限自动机理论的基本结果之一是
著名的克林定理,该定理指出,一种语言可以被某种语言所接受
有限自动机当且仅当它可以用正则表示
表达。

正则算法处理的主要难点
然而,表达式是它们的简化。虽然有几个
关于正则表达式的恒等式是已知的,例如规则
对于 Kleene 代数,不存在有效的算法
解决正则表达式的简化问题。

在这种情况下,唯一的办法就是发展启发式
简化正则表达式的算法。对于 aut 包,
本文概述了 Maple 程序 Rsimplify、Rabsorb 和
重新展开。

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

On http://www.maplesoft.com/msw/program/MSW04FinalProgram.pdf, it states:

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.

and

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.

and

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.

Im wondering if open-source implementations of Kleene Algebra algorithms exist.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文