Question: Suppose a Prolog database exists that gives information about the parts in an automobile engine. Predicates of big, small, and part-of: are included. 1. Write

Suppose a Prolog database exists that gives information about the parts in an automobile engine. Predicates of "big", "small", and "part-of": are included. 1. Write a query to find all small items that are part of other items. 2. Write a query to find all big items that have small subitems. 3. Formulate a recursive rule to define "component-of". Suppose a Prolog database exists that gives information about the parts in an automobile engine. Predicates of "big", "small", and "part-of": are included. 1. Write a query to find all small items that are part of other items. 2. Write a query to find all big items that have small subitems. 3. Formulate a recursive rule to define "component-of
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
