Artificial Intelligence - Knowledge Representation

11. Consider the following rules in a rule based system:

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


12. If specificity is employed as the conflict-resolution strategy in the answer to above question, what conclusion would be made when one rule is selected and executed? Note that the WMEx are stored in the increasing order of their timestamp values in the memory as indicated

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


13. If recency is employed as the conflict-resolution strategy in the answer to the previous question, what conclusion would be made when one rule is selected and executed? Note the WMEs are stored in increasing order of their timestamp values in the memory as indicated

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


For answering Q15 – Q19, consider the following set of rules used for giving loans in a bank:


(p N
 (applicant ^name <n> ^salary <35000 ^status NIL)
 →
 (modify 1 ^status No)
)
(p LC1
 (applicant ^name <n> ^salary >100000 ^status NIL)
 (stocks ^holder <n> ^worth >20000)
 →
 (modify 1 ^status C1)
)
(p LC2
 (applicant ^name <n> ^salary >85000 ^status NIL)
 (stocks ^holder <n> ^worth >50000)
 (credit ^user <n> ^score >150)
 →
 (modify 1 ^status C2)
)
Consider the following set of working memory elements:
1. (applicant ^name a ^salary 5000 ^status NIL)
2. (applicant ^name b ^salary 1035000 ^status NIL)
3. (applicant ^name c ^salary 95000 ^status NIL)
4. (credit ^user b ^score 100)
5. (credit ^user c ^score 155)
6. (stocks ^holder a ^worth 10000)
7. (stocks ^holder c ^worth 60000)
8. (stocks ^holder b ^worth 25000)

14. If the strategy used by inference engine is Recency then enter the element from the conflict set that will be selected for the execution. The rule data must be entered as a comma separated rule-name followed by the timestamps of matching WMEs (in the increasing order of the timestamps).
For example: If <LC1,1,2> is the selected rule-data then your answer should be: LC1,1,2

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *



(p N
 (applicant ^name <n> ^salary <35000 ^status NIL)
 →
 (modify 1 ^status No)
)
(p LC1
 (applicant ^name <n> ^salary >100000 ^status NIL)
 (stocks ^holder <n> ^worth >20000)
 →
 (modify 1 ^status C1)
)
(p LC2
 (applicant ^name <n> ^salary >85000 ^status NIL)
 (stocks ^holder <n> ^worth >50000)
 (credit ^user <n> ^score >150)
 →
 (modify 1 ^status C2)
)
Consider the following set of working memory elements:
1. (applicant ^name a ^salary 5000 ^status NIL)
2. (applicant ^name b ^salary 1035000 ^status NIL)
3. (applicant ^name c ^salary 95000 ^status NIL)
4. (credit ^user b ^score 100)
5. (credit ^user c ^score 155)
6. (stocks ^holder a ^worth 10000)
7. (stocks ^holder c ^worth 60000)
8. (stocks ^holder b ^worth 25000)

15. If the strategy used by inference engine is Specificity then enter the element from the conflict set that will be selected for the execution. The rule data must be entered as a comma separated rule-name followed by the timestamps of matching WMEs (in the increasing order of the timestamps).
For example: If <LC1,1,2> is the selected rule-data then your answer should be: LC1,1,2

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *