I wrote a Java program that uses the odometer technique to come up with
all totals for up to five values in combination for 100 values. That
took about 4 minutes to run on a 1.8 Ghz laptop. That solution is far
from optimized because I created an object to contain all result
combinations that is pretty heavy (I adapted an existing program). I
would guess I could get it down to a minute or so but for combinations
of more than 6 values you would likely need to use something like a
genetic algorithm. If you sample fits this criteria, I could run it.

David Morris

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.