Simplify Regular Expression in Mathematica

前端 未结 1 1370
难免孤独
难免孤独 2021-02-01 06:40

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 pro

相关标签:
1条回答
  • 2021-02-01 07:27

    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.

    0 讨论(0)
提交回复
热议问题