diff --git a/lib/kcnf.cpp b/lib/kcnf.cpp index 259e059..9ca3b45 100644 --- a/lib/kcnf.cpp +++ b/lib/kcnf.cpp @@ -26,7 +26,8 @@ long binom(long n, long k) { } // get the (n choose k) possible variable choices at index idx -// example: +// example: unrank_combination(5,3,5) -> (1,4,5) +// the full combination list would look like: (1,2,3), (1,2,4), (1,2,5), (1,3,4), (1,3,5), (1,4,5) <- this is the combination on index 5 std::vector unrank_combination(long n, long k, long long idx) { std::vector comb; comb.reserve(k);