Hi all,
this is my attempt to the "Holy Grail" challenge.. being a practical person, i prefer a quick fix to the problem to an academic approach.. my attempt is not a "find all solutions" method (i'll leave that to the academics) but a solution which is a quick fix to the accounts receivable department problem which took me about 2 hours.. here goes..
you may think it is crazy to randomly pick numbers fro the list to add up to 4556.92.. but this method is easy and it produces millions of guesses in a short time.. however, i hv an added twist to this (if not, you'll take forever to find just one solution).. i hv decided on a "half-guess half-calculate" method..
i will call the list of 54 (or 53) given numbers the universal set and the a list of numbers that add up to 4556.92 the solution set..
first, i produce a list of added pairs of numbers from the universal set.. this is because i know for sure that a potential solution set will have at least 2 numbers (any 2).. 53 numbers will give 1378 combination of added pairs.. you can derive this manually, which is not too difficult or write a simple macro for this.. i did manually..
second, i generate a potential solution set by randomly picking numbers from the universal set, taking the difference of the numbers with 4556.92 and comparing the difference with the list of added pairs to get 4556.92.. that is to say, the sum of randomly picked numbers plus an added pair = 4556.92.
you may say this is really weird.. but who cares, so long as it works and i can produce the solution for the accounts dept in 2 hours! (being practical).. well, the reason for producing the added pairs is to drastically reduce the guessing time for a solution set by greatly increasing the probability of a perfect match.. each solution set takes less than 30 seconds to run..
i hv problems attaching my spreadsheet and macro (can someone show me?).. anyway, these are some of my solutions using the above method..
185.58
194.58
222.52
228.31
230.72
630.92
1,021.70
1,842.59
630.92
144.77
324.84
515.11
538.64
628.89
789.77
983.98
89.40
126.69
160.62
280.71
698.27
718.32
895.39
1,587.52
409.17
722.73
858.97
978.53
1,587.52
77.74
192.65
222.52
346.35
507.08
722.73
2,487.85
440.93
444.98
456.68
673.47
698.27
1,842.59