Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

FORMAL LOGIC Computer Science School of Computing 4.1 Convert the formula (xp(x)yq(y,y))x(p(x)yq(x,y)) to clausal form. Use the commutativity of and to minimise the number of

FORMAL LOGIC

Computer Science School of Computing

image text in transcribed

4.1 Convert the formula (xp(x)yq(y,y))x(p(x)yq(x,y)) to clausal form. Use the commutativity of and to minimise the number of skolem functions. Show all the steps. 4.2 Give the (i) Herbrand universe, (ii) the Herbrand base, and (iii) a Herbrand model, for the following set of first-order clauses. {{p(f(x),x)},{p(g(x),y)}} 4.3 Prove by resolution refutation that the following set of clauses is unsatisfiable. {{p(f(y)),q(x,y)},{q(x,a),r(f(x))},{p(x),r(x)},{q(f(x),a),r(x)},{q(f(f(z)),z)}} For each step, indicate the substitutions used and the numbers of parent clauses. (8) 4.4 Consider the following logic program: 1. p(a,x,x) 2. p(f(x),y,f(z))p(x,y,z) 3. p(x,f(y),f(z))p(x,y,z) Draw an SLD-tree to show all attempts to answer each of the following queries: (i) p(f(a),f(a),f(f(a))) (ii) p(f(a),f(x),f(a)) Use the selection rule that resolves on the leftmost literal

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_2

Step: 3

blur-text-image_3

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

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

How often are budgets adjusted?

Answered: 1 week ago

Question

5. Describe how contexts affect listening

Answered: 1 week ago