Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mathematics knundrum
Message
De
23/04/2003 22:42:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00780672
Message ID:
00780971
Vues:
23
Bruce:

I concure with your conceptual analysis of the math involved and extend it further.

We cannot ignore single sum solutions = where the solution is itself a member of the original list.

Also, we would need to allow for more than one solution - a set of solutions that could include any combination of single and multiple-number solutions.

I decided I had used up more than enough discretionary time this morning and stopped writing. At the heart of the algorithm I was playing with was a decision to arrange the list in descending order and to work down the list testing combinations of numbers as to whether they are less than or equal to the given sum.


Godfrey
Godfrey Nicholson
Ofek Technologies Ltd
Auckland
New Zealand
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform