Hello, I'm looking for a library which could rank/unrank ordered combinations (ranking means from a combination it give you which nth combinations it is from a gray code or lexicographic or some other algorithm, unranking is the reversing process).
I look for a library doing many algorithmes like gray code or lexicographic, rev-lexicographic, enup and so on...)
If it does only generation it can be ok but with many algorithms too.
I found FXT library but it does not use ordered combinations(it does compositions but it seems not to do algorithm of ranking as i need it, it's comparable to rank/unrank unordered combinations).
thanks.