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

应用C++STL实现基于知识规则推理的方法
引用本文:王向东,刘康.应用C++STL实现基于知识规则推理的方法[J].四川理工学院学报(自然科学版),2007,20(5):112-115.
作者姓名:王向东  刘康
作者单位:四川理工学院机电工程系,四川,自贡,643000
摘    要:对基于产生式规则的知识表示与推理,结合面向对象技术,提出一种应用STL的C++语言实现方法。该方法将规则的结构、创建及释放定义成规则类,具体规则定义成对象,依据STL对序列容器中表的定义构造规则表容器和事实表容器,以创建知识库及动态数据库;推理机独立于知识库;类属算法和成员函数的使用,使推理算法易于编程实现;程序通用性好且便于知识更新。在刀具智能选择专家系统中的应用表明,该方法简单、高效、灵活。

关 键 词:标准模板库STL  表容器  类属算法  产生式规则
文章编号:1673-1549(2007)05-0112-04
收稿时间:2007-03-06

A Rule-Based Approach to Implementing Inference Using C++ STL
WANG Xiang-Dong,LIU Kang.A Rule-Based Approach to Implementing Inference Using C++ STL[J].Journal of Sichuan University of Science & Engineering:Natural Science Editton,2007,20(5):112-115.
Authors:WANG Xiang-Dong  LIU Kang
Abstract:A new method is proposed to implement knowledge representation and inference which is integrated with production rule and object-oriented technique of using STL(Standard Template Library) of C++ language.In this method,the structure,found and release of the rule are defined as a rule class and the specific rule is defined as an object of the rule class,then,based on the define of list of sequence container in STL,the knowledge base and global datebase can be constructed.On this way,rule list container and fact list container could be constructed.The inference engine is independent of the knowledge base;The application of generic algorithm and member function makes programming of inference algorithms easy to come true;Procedures have good commonality and knowledge could be updated easily.The result has showed that the method is simple,efficient and flexible in the application of the intelligentized cutter selecting expert system.
Keywords:STL(Standard Template Library)  list container  generic algorithm  production rule
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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