Convert finite state machine to regular expression

后端 未结 5 601
面向向阳花
面向向阳花 2021-01-31 22:14

Is there a tool (or an algorithm) to convert a finite state machine into a regular expression?

(not the other way around, that would be easy).

5条回答
  •  情深已故
    2021-01-31 23:07

    I have implemented the state elimination algorithm for the http://www.brics.dk/automaton/ Java package. The implementation is based on the algorithm illustrated in Sipser, Michael. Introduction to the Theory of Computation. Vol. 2. Boston: Thomson Course Technology, 2006.

    You can check it out at https://github.com/julianthome/autorex. Would be happy to get some feedback.

提交回复
热议问题