|
Spent the whole of Sat working. Am rather proud of the combinatorial selection algorithm I finally came up with. It's a recursive algorithm.. :-) /** * Gets all possible combinatorial subsets of size m from a wholeList * @param * @param wholeList * @param m * @return */ public static List getSubset(List wholeList, int m) { if (wholeList.size()

http://intj158.livejournal.com/18568.html
(Cached)
0 links
Published: 4 months, 3 weeks ago (Sat, 08 Aug 2009 22:01:14 PDT); 1586 bytes
|