| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Algorithms & Data Structures Discuss algorithms & data structures. Topics are not specific to any programming language. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#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. |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|