Skip to content

Instantly share code, notes, and snippets.

@kedarmhaswade
Created September 25, 2014 21:21
Show Gist options
  • Save kedarmhaswade/0a32b86e234e663a7b5e to your computer and use it in GitHub Desktop.
Save kedarmhaswade/0a32b86e234e663a7b5e to your computer and use it in GitHub Desktop.
n=1280
➜ combinatorial-algorithms git:(master) ✗ java RandomSubsetSimulation 4 1280
Frequencies of chosen subsets ....
[1, 2, 3] : 111, -31, 8.67
[1] : 63, 17, 4.92
[1, 2, 4] : 232, -152, 18.13
[1, 3] : 261, -181, 20.39
[1, 2] : 199, -119, 15.55
[1, 4] : 246, -166, 19.22
[1, 2, 3, 4] : 108, -28, 8.44
[1, 3, 4] : 60, 20, 4.69
Total: 1280, 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