Skip to content

Instantly share code, notes, and snippets.

@kedarmhaswade
Created September 25, 2014 21:26
Show Gist options
  • Save kedarmhaswade/af969aae8d5b34f8e021 to your computer and use it in GitHub Desktop.
Save kedarmhaswade/af969aae8d5b34f8e021 to your computer and use it in GitHub Desktop.
n1280000
➜ combinatorial-algorithms git:(master) ✗ java RandomSubsetSimulation 4 1280000
Frequencies of chosen subsets ....
[3] : 111610, -31610, 8.72
[4] : 105253, -25253, 8.22
[] : 144007, -64007, 11.25
[1] : 59562, 20438, 4.65
[2] : 91720, -11720, 7.17
[3, 4] : 97171, -17171, 7.59
[2, 3] : 98013, -18013, 7.66
[2, 4] : 110861, -30861, 8.66
[1, 2, 3] : 58864, 21136, 4.60
[1, 2, 4] : 57600, 22400, 4.50
[2, 3, 4] : 90401, -10401, 7.06
[1, 3] : 68111, 11889, 5.32
[1, 2] : 50574, 29426, 3.95
[1, 4] : 57898, 22102, 4.52
[1, 2, 3, 4] : 35620, 44380, 2.78
[1, 3, 4] : 42735, 37265, 3.34
Total: 1280000, 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