首页 | 本学科首页   官方微博 | 高级检索  
     

有穷自动机计算中数据结构的设计
引用本文:安立新,蓝向阳.有穷自动机计算中数据结构的设计[J].中国计量学院学报,2007,18(2):127-130.
作者姓名:安立新  蓝向阳
作者单位:中国计量学院,信息工程学院,浙江,杭州,310018
摘    要:尽管邻接矩阵是有穷自动机的一种常用存储方法,但是,邻接矩阵并不适合存储所有类型的有穷自动机.原因是两个状态间可能有两条以上同方向的弧,而邻接矩阵只能记录两个状态间存在的一条弧.所以,有穷自动机的存储结构最好采用邻接链表来存储.将此数据结构应用于NFA转换为DFA的计算,将传统的子集法中状态转换矩阵,由三维数组降低为二维数组.

关 键 词:有穷自动机  数据结构  邻接链表  邻接矩阵
文章编号:1004-1540(2007)02-0127-04
修稿时间:2007-01-30

Data structure designed for finite automata computation
AN Li-xin,LAN Xiang-yang.Data structure designed for finite automata computation[J].Journal of China Jiliang University,2007,18(2):127-130.
Authors:AN Li-xin  LAN Xiang-yang
Affiliation:College of Information Engineering, China Jiliang University, Hangzhou 310018, China
Abstract:Although the adjacency matrix was a storage structure of finite automaton in common use, it was not proper to store all kinds of finite automata. Perhaps existing two arcs above in the same direction between two states, adjacency matrix could only record one of them. So the storage structure of finite automaton should the choosed adjacency lists. We use it to realize the computation of transition from NFA to DFA by reducing the number of the transition matrix dimensions from a three-dimensional array in traditional subset approach to a two-dimensional array in the new algorithm.
Keywords:finite automata  data structure  adjacency lists  adjacency matrix
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号