Question: Xxercise 6 Define the predicate subsetsum ( L , Sum, SubL ) that takes a list L of numbers and a number Sum and unifies

Xxercise 6 Define the predicate subsetsum (L, Sum, SubL) that takes a list L of numbers and a number Sum and unifies SubL with a subsequence of L such that he sum of the numbers in SubL, is Sum. For example:
2- subsetsum ([1,2,5,3,2],5, SubSet ).
SubSet =[1,2,2],
SubSet =[2,3],
SubSet =[5],
SubSet =[3,2],
false.
Xxercise 6 Define the predicate subsetsum ( L ,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!