摘要
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,...,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) 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.
原文 | English |
---|---|
頁(從 - 到) | 31-40 |
頁數 | 10 |
期刊 | Journal of Discrete Algorithms |
卷 | 28 |
DOIs | |
出版狀態 | Published - 9月 2014 |
對外發佈 | 是 |