Skip to main content

Rule Based Reasoning

  • Chapter
  • First Online:
Fundamentals of Artificial Intelligence

Abstract

The popularity of rules-based systems (RBSs) is due to their naturalness. This chapter presents the potential applications of RBSs, the working of RBS, forward and backward chaining RBSs, their Algorithms, and inferencing using these systems. The analysis of complexity of preconditions, and efficiency of rule selection are introduced to sufficient depth, as well the cofmparison between the two types of RBSs are presented. A typical RBS, and other methods—model-based and case-based approaches are also discussed. In addition, number of solved, as well exhaustive list of exercises are provided at the end of the chapter for practice. The chapter concludes with its summary.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 64.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 84.99
Price excludes VAT (USA)
  • Durable hardcover 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

References

  1. Allen BP (1994) Case-based reasoning: business applications. Commun ACM 37(3):40–42

    Article  Google Scholar 

  2. Patterson DW (2001) Introduction to artificial intelligence and expert systems. PHI India

    Google Scholar 

  3. Hayes-Roth F (1985) Rule-based systems. Commun ACM 28(9):921–922

    Article  Google Scholar 

  4. Puppe F (1993) Systematic introduction to expert systems. Springer-Verlag

    Google Scholar 

  5. McDermott JP (1980) R1: A rule-based configurator of computer systems—Technical report CMU-CS-80-119, 1–56

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to K. R. Chowdhary .

Exercises

Exercises

  1. 1.

    List the various components of a Production System, and explain each.

  2. 2.

    In the above context, explain the importance of “binding”, “matching” and “conflict resolution”.

  3. 3.

    Suppose there is a production system with four initial facts: A, B, C, D and following three rules:

    $$\begin{aligned}&R_1:~if~A~then~E\\&R_2:~if~B \wedge F~then~G\\&R_3:~if~C\wedge E~then~F \end{aligned}$$
    1. a.

      Using these rules and facts, explain what is meant by “backward chaining” and show explicitly how it can be used to determine the truth of G?

    2. b.

      Explain what is meant by “forward chaining”, and show explicitly how it can be used in this case to determine new facts.

  4. 4.

    Consider the following possibilities, suggest the solution strategy to be adopted if the system is implemented as a rule based system:

    1. a.

      A subgoal literal is generated such that the higher goal is a subset of the subgoal.

    2. b.

      A subgoal literal is generated whose negation unifies with the higher-goal.

    3. c.

      A subgoal S literal is generated that is equal to another goal G, and G is neither higher nor lower to S.

  5. 5.

    Translate the following knowledge base into predicate form.

    • If x is on top of y then y supports x.

    • If x is above y and they are touching each other then x is on top of y.

    • A phone is above a book.

    • A phone is touching a book.

    1. a.

      Use forward-chaining to show that the predicate “supports(book, phone)” is true.

    2. b.

      Use forward-chaining to show that the predicate “supports(book, phone)” is true.

    Count the number of triggering and rule firing in each of the above cases.

  6. 6.

    Given the propositions A, B, C, D and rules \(R_1\) to \(R_4\),

    $$\begin{aligned}&R_1 = if~ A \wedge X \wedge Y~then~Z\\&R_2 = if~B \wedge V ~then ~ Y\\&R_3 = if~C\wedge V ~then ~ X\\&R_4= if~ D~ then ~C \end{aligned}$$
    1. a.

      Use the forward-chaining to determine if Z can be inferred from the above knowledge base.

    2. b.

      Use the backward-chaining to determine if goal Z succeeds from the above knowledge base.

  7. 7.

    What are the conflict resolving strategies in case more than one rule matches with the assertions? Discuss the merits and demerits of each strategy for selection of a rule to fire.

  8. 8.

    Briefly justify each of the following for conflict resolution. Also, give examples in each case.

    1. a.

      Specificity criteria.

    2. b.

      Syntactically longest rule first.

    3. c.

      Ordering rules.

    4. d.

      Most recent first.

    5. e.

      In order of increasing size of the rule.

  9. 9.

    List the following formulas in oder of specificity, and construct a tree such that those having same specificity will stand at the same level in the tree.

    1. a.

      \(b \vee c\)

    2. b.

      \(b \wedge c\)

    3. c.

      \(a \vee c\)

    4. d.

      \(a \wedge c\)

    5. e.

      \(a \wedge b\)

    6. f.

      \(a \wedge b \wedge c\)

    7. g.

      b

    8. h.

      c

  10. 10.

    How the assignment of priority to rules can be implemented? Consider the Table 4.2 to demonstrate the assignment of suitable priorities to rules listed in this table. Suggest the structure as how the priorities are to be stored and rules be invoked based on these priorities.

  11. 11.

    Explain what structures can be used and how they will operate, for knowledge based systems, for the following functionalities?

    1. a.

      If a precondition of one or more rules is false, the system should exclude these rules from participation in the inference process.

    2. b.

      If firing of some rules infer new knowledge, this should be added into the existing knowledge.

    3. c.

      To maintain and use index file for rules.

  12. 12.

    For the rule (4.2), if domain size of p is \(|p| = m\), domain size of variable x is n, and of y is l,

    1. a.

      Find out the worst-case time complexity of the rule to be selected,

    2. b.

      In how many ways ordering can be done?

    3. c.

      Justify that it is NP-hard problem as a general case.

  13. 13.

    Which type of rule chaining you will prefer in the following situations? Also, identify, what is the goal in each case.

    1. a.

      To diagnose the case of malaria infection, based on the symptoms of cough, soar throat, regular fever, shivering.

    2. b.

      Identify a thief, based on the nature of theft, finger prints, and goods stolen.

  14. 14.

    ] Suggest an approach to combine the forward and backward chaining for the knowledge base shown in Table 4.2 (Hint: Try backward chaining to begin with, if it is not doing efficiently, then switch over to forward chaining.)

  15. 15.

    To prove a theorem of geometry using rule-based systems, represent the following statements as production rules:

    1. a.

      Corresponding sides of two congruent triangles are also congruent.

    2. b.

      Corresponding angles of two congruent triangles are also congruent.

    3. c.

      If corresponding sides of two triangles are congruent then the triangles are congruent.

    4. d.

      If corresponding sides and the angle covered by them are equal then the triangles are congruent.

    5. e.

      Base angles of an isosceles triangle are congruent.

  16. 16.

    In what order the rules should be fired for inference efficiency? Discuss the merits and demerits of choosing a particular order of rule firing.

  17. 17.

    What are the criteria of selection of premises for firing the rules? Discuss this based on specificity and generality of the premises.

  18. 18.

    Consider a network of applicability of rules. Imagine that due to firing of a rule, a new inference is generated. This inference may contradict some fact or goal. Explain, what should be the structure of dependency network so that any inconsistency caused due to new inference is taken care of.

  19. 19.

    Suggest the strategy, as how a tree like rules structure can be used for reasoning in forward direction. Explain or suggest your strategy for following:

    1. a.

      Whether the breadth-first or depth-first search is better for rule searching?

    2. b.

      Whether the top-down or bottom-up search is better for firing of rule sequences?

    3. c.

      How to eliminate one or both the rules, say \(R_1\) and \(R_2\), for consideration, if one of the precondition is false, which is common in both \(R_1\) and \(R_2\)?

    4. d.

      In the begin of a reasoning process whether you would prefer to choose to fire a rule with large number of preconditions or small?

  20. 20.

    Analyze the Algorithm 4.1 and justify that it is NP-hard as a general case, however, polynomial in real world situation.

  21. 21.

    Analyze the complexity of preconditions in the forward reasoning process.

  22. 22.

    How the following situations are implemented in knowledge base for rule-chaining? Explain.

    1. a.

      “Is the pain intensifying with respirations?”

    2. b.

      “Did shortening of breadth occur before throat pain?”

  23. 23.

    Given the knowledge base of rule-chaining of Table 4.2, show an analysis as, in general, which type, forward or backward search strategy is better? Also, justify your claim.

  24. 24.

    Why, a rule-based system having combination of forward and backward rule-chaining is more complex than either of these both?

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature India Private Limited

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Chowdhary, K.R. (2020). Rule Based Reasoning. In: Fundamentals of Artificial Intelligence. Springer, New Delhi. https://doi.org/10.1007/978-81-322-3972-7_4

Download citation

  • DOI: https://doi.org/10.1007/978-81-322-3972-7_4

  • Published:

  • Publisher Name: Springer, New Delhi

  • Print ISBN: 978-81-322-3970-3

  • Online ISBN: 978-81-322-3972-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics