Question
Q1: Consider the following statements and write down the facts and rules about the statements: Fact: ahad likes nida Everyone likes ahad ahad does not
Q1:
Consider the following statements and write down the facts and rules about the statements:
Fact:
-
ahad likes nida
-
Everyone likes ahad
-
ahad does not like pizza
-
ahad likes everybody and everybody likes ahad
-
Ali studies cs135
-
Ayesha is daughter of Usman
-
Ayesha marry ahmed
Rule:
-
A hates B if A does not like B.
-
X and Y are friends if they like each other
-
A and B are enemies if they don't like each other
Q2:
-
Find the weakest precondition for a sequence of statements given below.
{ ? } b = 1 + a * 1;
a = a +b + 5; {a < 10}
2. Consider the following inference chaining rule diagram. Drive the inference rule by considering the backward chaining.
Detailed solution please.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started