A Rule-Based Approach to Implementing Inference Using C++ STL

Xiang Wang
2007-01-01
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.
What problem does this paper attempt to address?