Skip to main content

Fast Inference Based on the Set Theory

  • Conference paper
  • First Online:
Reliability and Statistics in Transportation and Communication (RelStat 2021)

Abstract

During the last decade, model of knowledge based on rules loses its positions in information systems. However, production model of knowledge is still popular in expert system and decision making systems, particularly, in situation centers. The main problem of reasoning from rules is exponential complexity of search. Logical inference usually operates with axioms recorded in plain texts or XML-like files. That means the facts and rules are processed in the order they are written in the source file. It is acceptable for small knowledge bases but when the number of facts increases the reasoning time gets non-acceptable. In this paper, we propose an approach implementing well known techniques to accelerate search – indexing of facts in the knowledge base.

Let say all the facts consist of tuples (subject, predicate, object). First, we enumerate all the facts in the knowledge base. Then, we build the indices. Each index relates to a term and contains the facts’ numbers having this term in a corresponding role (as a subject, as a predicate, or as an object). When the search meets a rule containing particular values in the antecedents (conditions of rules) the inference engine does not need to scan entire knowledge base. Instead, it extracts only facts containing the terms in the proper roles. Moreover, by applying to indices the intersection operation we can dramatically shorten the list of facts that should be processed by rules. In the paper, we show that in some cases set operations under indices allow to eliminate the inference at all because it makes possible to get the final result directly from indices.

In contrary to well known RETE algorithm, our approach does not need to build prefix trees before the processing of each rule. The indices are to be updated only when the new facts appear. The inference acceleration depends on the query. The more explicit query is the better results the search demonstrates.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 229.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 299.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Knuth, D.: Combinatorial Algorithms. The Art of Computer Programming. 4A, 1st edn. Addison-Wesley Professional, Reading (2011)

    Google Scholar 

  2. Russell, S.J., Norvig, P.: Artificial Intelligence a Modern Approach, 4th edn. Pearson, Boston (2018)

    MATH  Google Scholar 

  3. Agnar, A., Plaza, E.: Case-based reasoning: foundational issues, methodological variations, and system approaches. Artif. Intell. Commun. 7(1), 39–52 (1994)

    Google Scholar 

  4. Forgy, C.: RETE: a fast algorithm for the many pattern/many object pattern match problem. In: Artificial Intelligence, vol. 19, pp. 17–37 (1982)

    Google Scholar 

  5. Friedman-Hill, E.: Jess in Action: Rule Based Systems in Java. Manning Publications, Shelter Island (2003)

    Google Scholar 

  6. Giarratano, J.C., Riley, G.D.: Expert Systems: Principles and Programming. Thomson, Boston (2005)

    Google Scholar 

  7. Owen, J.: World's Fastest Rules Engine—Business Rule Management Systems. InfoWorld. (2010). Accessed 07 Apr 2012

    Google Scholar 

  8. OWL/Implementations. https://www.w3.org/2001/sw/wiki/OWL/Implementations. Accessed 30 June 2021

  9. Bessmertny, I.A.: System of Artificial Intelligence, 2nd edn. Ser. 58, vol. 130. Bachelor Academic Course. URAIT Publisher (2018)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Chuqiao Yu .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Yu, C., Bessmertny, I., Koroleva, J. (2022). Fast Inference Based on the Set Theory. In: Kabashkin, I., Yatskiv, I., Prentkovskis, O. (eds) Reliability and Statistics in Transportation and Communication. RelStat 2021. Lecture Notes in Networks and Systems, vol 410. Springer, Cham. https://doi.org/10.1007/978-3-030-96196-1_3

Download citation

Publish with us

Policies and ethics