摘要
Delayed input DFA(D2FA)中引入默认边来对确定状态机(DFA)进行状态转移精简.为了提高D2FA生成算法的效率,分析了对正则表达式X得到的DFA(∧X)与DFA(X)间的相关性,提出一种从DFA(∧X)到D2FA(X)的构造型算法.该算法将DFA(X)中的状态用DFA(∧X)中的状态序列进行表示,从而基于状态序列进行默认边的选择,而不需要生成实际的DFA(X).理论分析和实验结果表明,该算法降低了构造D2FA的算法复杂度,同时仍能保证进行模式匹配时的解析时间下限,以及对DFA的状态转移精简能力.
Delayed input deterministic finite automata (D^2FA) reduces the transition edges of de- terministic finite automata (DFA) by introducing default edges. The relevance between DFA(^X) and DFA(X) is analyzed to improve the efficiency of constructing algorithm to create D^2FA. A constructing algorithm is presented to create D^2FA from DFA. The algorithm expresses the state of DFA(X) with the state sequence of DFA (^X), hence the choice of default edges is relayed on the state sequence, rather than creating actual DFA(X). Experiments show that the algorithm greatly reduces the complexity of constructing D^2FA, meanwhile it ensures a lower time bounds of pattern match and capacity of reducing state transition.
出处
《北京邮电大学学报》
EI
CAS
CSCD
北大核心
2009年第B04期40-43,48,共5页
Journal of Beijing University of Posts and Telecommunications
基金
国家自然科学基金项目(6087200960602016)
国家"863计划"项目(2007AA01Z4282009AA01Z148)
安徽高校省级自然科学研究计划重大项目(ZD2008005-2
ZD200904
JK2009A013
JK2009A025)
关键词
确定状态机
D2FA
默认边
deterministic finite automata
delayed input deterministic finite automata
default edge