Article ID Journal Published Year Pages File Type
431279 Journal of Discrete Algorithms 2014 10 Pages PDF
Abstract

H. Fredricksen, I.J. Kessler and J. Maiorana discovered a simple but elegant construction of a universal cycle for binary strings of length n: Concatenate the aperiodic prefixes of length n binary necklaces in lexicographic order. We generalize their construction to binary strings of length n   whose weights are in the range c,c+1,…,nc,c+1,…,n by simply omitting the necklaces with weight less than c  . We also provide an efficient algorithm that generates the universal cycles in constant amortized time per bit using O(n)O(n) space. Our universal cycles have the property of being the lexicographically smallest universal cycle for the set of binary strings of length n with weight ≥c.

Related Topics
Physical Sciences and Engineering Computer Science Computational Theory and Mathematics
Authors
, , ,