A predicate matching algorithm for database rule systems

  • Authors:
  • Eric N. Hanson;Moez Chaabouni;Chang-Ho Kim;Yu-Wang Wang

  • Affiliations:
  • USAF Wright R & D Center, WRDC/TXI, Dayton, OH and Wright State University, Dept of Computer Science, Dayton, OH;Wright State University, Dept of Computer Science, Dayton, OH;Wright State University, Dept of Computer Science, Dayton, OH;Wright State University, Dept of Computer Science, Dayton, OH

  • Venue:
  • SIGMOD '90 Proceedings of the 1990 ACM SIGMOD international conference on Management of data
  • Year:
  • 1990

Quantified Score

Hi-index 0.00

Visualization

Abstract

Forward-chaining rule systems must test each newly asserted fact against a collection of predicates to find those rules that match the fact. Expert system rule engines use a simple combination of hashing and sequential search for this matching. We introduce an algorithm for finding the matching predicates that is more efficient than the standard algorithm when the number of predicates is large. We focus on equality and inequality predicates on totally ordered domains. This algorithm is well-suited for database rule systems, where predicate-testing speed is critical. A key component of the algorithm is the interval binary search tree (IBS-tree). The IBS-tree is designed to allow efficient retrieval of all intervals (e.g. range predicates) that overlap a point, while allowing dynamic insertion and deletion of intervals. The algorithm could also be used to improve the performance of forward-chaining inference engines for large expert systems applications.