发明授权
- 专利标题: Direct construction of finite state machines
- 专利标题(中): 直接构造有限状态机
-
申请号: US12262853申请日: 2008-10-31
-
公开(公告)号: US08346697B2公开(公告)日: 2013-01-01
- 发明人: Branimir Lambov
- 申请人: Branimir Lambov
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 代理机构: Holland & Knight LLP
- 代理商 Brian J. Colandreo, Esq.; Michael T. Abramson, Esq.
- 主分类号: G06F17/00
- IPC分类号: G06F17/00 ; G06F7/38 ; G06F17/27 ; G06N5/00
摘要:
A method and system for direct construction of a minimal deterministic finite state machine corresponding to a regular expression are provided. The method includes providing a regular expression represented as a regular expression tree with nodes of operators and leaves of elementary character transitions and traversing the regular expression tree recursively to build minimal finite state automata (FSAs) corresponding to the branches of the tree, wherein the FSAs end in a specified tail automaton. The operators are concatenation, alternation, and Kleene closure. A concatenation operation is performed by recursive construction in reverse order wherein each automaton built becomes the tail for the preceding argument of the operation. An alternation operation is performed by recursively building automata corresponding to the arguments of the operation with the same tail and merging them. A Kleene closure operation is performed by: building an automaton terminating in a unique marker; merging the automaton with the tail automaton to form a combined automaton; and traversing the combined automaton to expand the marker into transitions and states to achieve the intended behaviour.
公开/授权文献
- US20100114811A1 DIRECT CONSTRUCTION OF FINITE STATE MACHINES 公开/授权日:2010-05-06
信息查询