Can you explain what do you want exactly?
- Finding all the permutation of the numbers?
- Finding a random permutation?
- Finding the next lexicographical permutation?
- Finding the ith permutation?
Are there repeated numbers?
OuFeRRaT
On Thu, Feb 21, 2008 at 12:44 PM, [EMAIL PROTECTED]
OK,
On Thu, Feb 21, 2008 at 8:44 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
hi,
can some one help me in writing an algorithm for finding permuttaion
I will assume that you want all permutation :
let's call:
- S your set of number
- pos your current position
** WARNING:
I think this is a homework question.
Any algorithm book will give you an algorithm for permutation.Try google
first.
On Thu, Feb 21, 2008 at 3:44 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
hi,
can some one help me in writing an algorithm for finding permuttaion
of 'n' numbers??..i