Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

  1. ahad likes nida

  2. Everyone likes ahad

  3. ahad does not like pizza

  4. ahad likes everybody and everybody likes ahad

  5. Ali studies cs135

  6. Ayesha is daughter of Usman

  7. Ayesha marry ahmed

Rule:

  1. A hates B if A does not like B.

  2. X and Y are friends if they like each other

  3. A and B are enemies if they don't like each other

Q2:

  1. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions

Question

What securities fall under the scope of FASB ASC Topic 320?

Answered: 1 week ago