Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of combination problem
Message
De
02/09/1999 08:57:43
 
 
À
01/09/1999 19:38:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00260337
Message ID:
00260542
Vues:
23
By path I mean the number of ways to get to 'D' from 'A'
the value of the end_field always follows the value of the start_field in sequence.



start_field end_field condition_field
A B .T.
B C cond2
B D cond3
C D .T.
B E cond1
E C .T.

For example
there are only 2 ways to end on 'C' starting from 'A'

With a as your start_field (a to b) [row 1]
Then with 'b' as the start_field b to c [row 2]
a->b->c

and

with a as your start_field (a to b) [row 1]
then with b as your start_field (b to e ) [row 5]
then with e as your start field (e to c) [row 6]
a->b->e->c



However in this example (the table order is irrelevant)
there are 3 ways to end on 'D' starting from 'A'


abcd
abd
abecd

I am looking for any suggestions on finding and storing these cobinations programatically.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform