基于子集构造法的优化的NFA确定化算法
发布时间:2023-02-25 15:00:21 来源:文档文库
小
中
大
字号:
第21卷第1期 计算机技术与发展 Vo1.21 No.1 2011年1月 COMPUTER TECHNO1 0GY ANI)DEVEI OPM ENq、 Jan. 20l1 基于子集构造法的优化的N FA确定化算法 任平红,陈 矗,曹宝香,禹继国 (山东曲阜师范大学计算机科学学院,山东日照276826) 摘要:使用子集构造法对非确定有限自动机进行确定化的过程中存在大量重复计算的问题。为解决此问题,基于非确 定有限自动机的特点并针对子集构造法的不足,提出了一种优化的非确定有限自动机确定化算法。首先定义了识别符的 有效引出状态集概念并证明了P ̄c]osure的并定理以保证算法的正确性,其次给出了用于避免重复计算的识别符的有效 引出状态集的构造子算法和单状态集的s—closure的求算子算法,基于这两个子算法给出了优化的非确定有限自动机确 定化算法,最后将算法应用于实例,实验结果表明计算量远小于子集构造法的计算量。相比子集构造法,算法能更有效地 对非确定有限自动机进行确定化。 关键词:子集构造法;非确定有限自动机;优化的;确定化算法 中图分类号:TP301.1 文献标识码:A 文章编号:1673—629X(2011)O1 ̄0070—04 An Optimized Algorithm for Transition from NFA to DFA Based on Subset Construction Method REN Ping—hong,CHEN Chu,CAO Bao-xiang,YU Ji-guo (College of Computer Science,Qufu Normal University,Rizhao 276826,China) Abstract:The problem of repetitive computing exits in the process of transition from non-deterministic ifnite automata tO deterministic fi— nite automata using the subset construction method,To solve this problem,all optimized algorithm for transition from NFA tO DFA is put forward on the basis of characters of NFA and according to shortcomings of the subset construction method.First,the concept that effec— tive source state set for a mark symbol is defined and the theorem that combination of s—closure is proved.The theorem guarantees the irghtness of the following algorithms.Second,two sub algorithms that constructi