THE IMPORTANCE OF PATTERN ORDER.pptVIP

  • 2
  • 0
  • 约4.92千字
  • 约 19页
  • 2016-11-04 发布于河南
  • 举报
THE IMPORTANCE OF PATTERN ORDER

EXPERT SYSTEMS Final Report 0523026陳瑩融 0523036彭源勇 THE IMPORTANCE OF PATTERN ORDER Programmers new to rule-based language often have misconceptions about the importance of ordering the patterns in rules correctly for both speed and memory efficiency. Since the Rete algorithm saves state from one cycle to the next, it is very important to make sure that rules do not generate large number for partial matches. (deffacts information (find-match a c e g) (item a) (item b) (item c) (item d) (item e) (item f) (item g)) (defrule match-1 (find-match ?x ?y ?z ?w) (item ?x) (item ?y) (item ?z) (item ?w)

文档评论(0)

1亿VIP精品文档

相关文档