Skip to content

Instantly share code, notes, and snippets.

@kedarmhaswade
Created September 25, 2014 21:22
Show Gist options
  • Save kedarmhaswade/b9dbb2c3495bf22b3c41 to your computer and use it in GitHub Desktop.
Save kedarmhaswade/b9dbb2c3495bf22b3c41 to your computer and use it in GitHub Desktop.
n12800
➜ combinatorial-algorithms git:(master) ✗ java RandomSubsetSimulation 4 12800
Frequencies of chosen subsets ....
[1, 2, 3] : 1011, -211, 7.90
[1] : 344, 456, 2.69
[1, 2, 4] : 2214, -1414, 17.30
[1, 3] : 2178, -1378, 17.02
[1, 2] : 1568, -768, 12.25
[1, 4] : 2064, -1264, 16.13
[1, 2, 3, 4] : 2531, -1731, 19.77
[1, 3, 4] : 890, -90, 6.95
Total: 12800, number of subsets with a frequency > 0: 8
Total # of subsets possible: 16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment