Recently I was given a question to
Pick few numbers from these 34,32,43,46,36,21,28 such that their sum should nearest to 112 but should be less than that.
Given few subsets A1,A2,A3...................An, find the optimal situation: Optimal situation has been defined as Minimum overlaps and Maximum elements coverage of the superset S with the help of union and intersection.
I have done the first one manually but how can I code for solution-I mean I want to know where I can find algorithms/methods for these types for coding.