Skip to content

Instantly share code, notes, and snippets.

@kedarmhaswade
Created September 25, 2014 21:30
Show Gist options
  • Save kedarmhaswade/fc438c0f66a3e771ff09 to your computer and use it in GitHub Desktop.
Save kedarmhaswade/fc438c0f66a3e771ff09 to your computer and use it in GitHub Desktop.
n128000
➜ combinatorial-algorithms git:(master) ✗ java RandomSubsetSimulation 4 128000
Frequencies of chosen subsets ....
[1, 2, 3] : 12834, -4834, 10.03
[1] : 17179, -9179, 13.42
[1, 2, 4] : 15348, -7348, 11.99
[1, 3] : 22262, -14262, 17.39
[1, 2] : 13894, -5894, 10.85
[1, 4] : 20546, -12546, 16.05
[1, 2, 3, 4] : 16307, -8307, 12.74
[1, 3, 4] : 9630, -1630, 7.52
Total: 128000, 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