3.8 Define the relation subset(Set, Subset) where Set and Subset are two lists representing two sets. We

Question:

3.8 Define the relation subset(Set, Subset) where Set and Subset are two lists representing two sets. We would like to be able to use this relation not only to check for the subset relation, but also to generate all possible subsets of a given set. For example: ?- subset( [a,b,c], S). S = [a,b,c]; S = [a,b]; S = [a,c]; S = [a]; S = [b,c]; S = [b];

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: