Skip to content

Instantly share code, notes, and snippets.

@kedarmhaswade
Created September 25, 2014 21:32
Show Gist options
  • Save kedarmhaswade/68e142da11e1b4092907 to your computer and use it in GitHub Desktop.
Save kedarmhaswade/68e142da11e1b4092907 to your computer and use it in GitHub Desktop.
n1280000000
➜ combinatorial-algorithms git:(master) ✗ java RandomSubsetSimulation 4 128000000
Frequencies of chosen subsets ....
[3] : 8917285, -917285, 6.97
[] : 10765317, -2765317, 8.41
[4] : 9015332, -1015332, 7.04
[1] : 8605043, -605043, 6.72
[2] : 9261979, -1261979, 7.24
[3, 4] : 8277852, -277852, 6.47
[2, 3] : 8270102, -270102, 6.46
[2, 4] : 7998797, 1203, 6.25
[1, 2, 3] : 6894675, 1105325, 5.39
[1, 2, 4] : 6866677, 1133323, 5.36
[2, 3, 4] : 7224352, 775648, 5.64
[1, 3] : 7637891, 362109, 5.97
[1, 2] : 7673224, 326776, 5.99
[1, 4] : 7617716, 382284, 5.95
[1, 2, 3, 4] : 6135508, 1864492, 4.79
[1, 3, 4] : 6838250, 1161750, 5.34
Total: 128000000, number of subsets with a frequency > 0: 16
Total # of subsets possible: 16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment