Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
6874789 | Journal of Discrete Algorithms | 2014 | 13 Pages |
Abstract
An unranking algorithm for a finite set S is an algorithm that, given a number in {0,1,â¦,|S|â1}, returns an element of S that is associated with the number. We suppose that a number can be associated with any element in S so long as distinct elements are associated with different numbers. A ranking algorithm is the reverse of an unranking algorithm. In this paper, we present an unranking algorithm for the set of all m-element subsets of an n-element set. Our algorithm runs with O(m3m+3) arithmetic operations, which is independent of n and hence is effective when n is large. We also show that it admits a ranking algorithm with the same running time.
Keywords
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics
Authors
Toshihiro Shimizu, Takuro Fukunaga, Hiroshi Nagamochi,