-
October 22nd, 2009, 07:43 PM
#1
Cartesian Product algo using stacks
Do you know some neat Java libaries that allow you to make cartesian product of two (or more) sets?
For example: I have set of sets. Set<Set<Object>>
I want to generate one set containing all possible combinations.
The number of sets might vary so I cannot do this in nested foreach loop.
I am looking for Stack implementation instead of using recursions.
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
|