ANALYSIS of ALGORITHMS, Bulletin Board

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

need an algorithm




hello:

I need an Algorithm for combinations with repetition. That is, for
example,
taking an array of four different elements (can be 1234, 5698,3409...)
the
algorithm returns all the combinations posible than can be done.

For example, for 5609, the algorithm will return 5690,5906,5960... 24
different combinations. have you got this algorithm? And if you want to
group 6 numbers in an array of 4? If I've got 123456 and I want all the
combinations:1234,2345,3456,5432,1243,6543...but without repetition, for

example, 1122 no.

Thank you.




Date Prev | Date Next | Date Index | Thread Index