Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Permutation Algorithm
Message
De
08/03/1999 05:28:29
Juan Kh
Dataprop Technologies
Sungai Petani, Malaisie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Permutation Algorithm
Divers
Thread ID:
00195109
Message ID:
00195109
Vues:
60
Hi,

I need to print out all possible permutable outcomes for a alpha-numeric string. For example "123" should produce "123", "132","213","231","321","312". The number of outcomes can be dertermined by factorial of numbers of characters in the string, i.e. nx(n-1)x(n-2)x...x2x1. My problem is to work out the algorithm to do this. Can someone out there help.

TIA,
juan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform