Next Subset





The algorithm is called NEXKSB (Next k-Subset of an n-Set) in Albert
Nijenhuis and Herbert Wilf, Combinatorial Algorithms, pp. 21-34.