Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Permutation Algorithm
Message
From
08/03/1999 05:28:29
Juan Kh
Dataprop Technologies
Sungai Petani, Malaysia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Permutation Algorithm
Miscellaneous
Thread ID:
00195109
Message ID:
00195109
Views:
59
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
Next
Reply
Map
View

Click here to load this message in the networking platform