Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hard to do - aritmethic combination.
Message
 
À
01/07/2002 10:14:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00673403
Message ID:
00673931
Vues:
20
Hi again,

when generating a combinaison of 5 elements from a collection of 20,
(to say nothing about the combinaisons of 4,3,2,1 items)
you will have 15,504 combinaisons, and Sergey's solution is the best.

when generating a combinaison of 5 elements from a collection of 50,
you will have 211,876 combinaisons,

when generating a combinaison of 5 elements from a collection of 100,
you will have 75,287,520 combinaisons. In that case you must "build" them
from an array, setting a "marked" flag by some loops in your 100-rows array(nice for your filter, to display them in a grid).

Arnaud
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform