光电工程, 2014, 41 (7): 44, 网络出版: 2014-08-18  

基于代价模型的RETE优化算法

Improved RETE Optimized Algorithm Based on Cost Model
作者单位
1 中国科学院光电技术研究所,成都 610209
2 中国科学院大学,北京100049
摘要
RETE匹配算法是基于规则推理系统中的经典高效算法,但是在飞行器评估这种规则和事实数量较多的系统,推理效率并不高,因为在模式匹配中,join 操作的开销与事实的平方成正比。事实和规则数量较多时,产生的中间匹配信息大大增加,增加了时间复杂度和空间复杂度,严重降低了推理效率。针对飞行器评估系统的特点,本文分析了优化RETE 拓扑结构是提高推理效率的关键,然后提出了基于代价模型的RETE 优化算法,该算法可以自动寻找最优的RETE 拓扑结构,减少了join 中间结点的数据,大大降低RETE 算法的时间复杂度和空间复杂度。经实验测试,基于代价模型的RETE 算法在飞行器评估系统中的运行效率较高,满足飞行器评估的需求。
Abstract
The RETE matching algorithm was a classical algorithm in the rule-based reasoning system, but when the number of rules and facts increased in the knowledge base, the generated intermediate match information greatly increased too, resulting to the large time complexity and space complexity, severely reduced the reasoning efficiency. To address this issue, this paper compared several improvement strategies of RETE algorithm, and optimization algorithm was proposed based on RETE cost model. The algorithm can automatically find the optimal RETE topology, reduce intermediate nodes, and greatly reduce RETE algorithm's time complexity and space complexity. The experiment shows that the running cost of optimized RETE algorithm is only about half the time than before optimization, and the reasoning efficiency is improved.

陈帅均, 蒋平, 吴钦章. 基于代价模型的RETE优化算法[J]. 光电工程, 2014, 41(7): 44. CHEN Shuaijun, JIANG Ping, WU Qinzhang. Improved RETE Optimized Algorithm Based on Cost Model[J]. Opto-Electronic Engineering, 2014, 41(7): 44.

关于本站 Cookie 的使用提示

中国光学期刊网使用基于 cookie 的技术来更好地为您提供各项服务,点击此处了解我们的隐私策略。 如您需继续使用本网站,请您授权我们使用本地 cookie 来保存部分信息。
全站搜索
您最值得信赖的光电行业旗舰网络服务平台!