|
-
Feb 7th, 2007, 02:58 PM
#1
Thread Starter
Lively Member
array permutation
hi,
i have a tricky problem. i have for example three arrays of different dimestion
A =[1,2,3,4]
B=[5,6,7]
C=[8,9]
i would like to generate all the different combinations of values in these arrays and the values inside the array should not be repeated.
e.g. the resultset should be
1,5,8
2,5,8
3,5,8
4,5,8
1,6,8
2,6,8
3,6,8
4,6,8
1,7,8
2,7,8
3,7,8
4,7,8
1,5,9
2,5,9
3,5,9
4,5,9
1,6,9
2,6,9
3,6,9
4,6,9
1,7,9
2,7,9
3,7,9
4,7,9
any idea how to do this for any number N of arrays?
Thanks!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|