[Date Index] [Thread Index] [Author Index]
NthKSubset and RankKSubset. Where ???
Hello I'm working on a combinatorical problem and I would need two functions which are not available in Mma or the Combinatorica package. The first would probably be called NthKSubset and should give me the Nth KSubset of a list (who would have guessed that). The other one which I need is a routine which does the opposite. Given a KSubset it should give me the rank of that KSubset. Has anyone written such functions or know from where to get them ? A description of an algorithm for programming them would also be okay. Many thanks in advance Axel Kowald