Abstract

We present a cost-optimal parallel algorithm for generating variations of m elements out of {0, 1, …, n - 1} in lexicographic order. It uses a linear array of m processors, each having constant size memory and each being responsible for producing one part of a given variation. Binary and decimal counters are special cases of the algorithm, when n = 2 and n = 10, respectively. To our knowledge, the algorithm presented here is the first to be published with the property that the delay between any two variations generated is constant.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call