nCk sequences and their difference sequences
Abstract
A nCk sequence is a sequence of n-bit numbers with k bits set. Given such a sequence C, the difference sequence D of C is subject to certain regularities that make it possible to generate D in 2|C| time, and, hence, to generate C in 3|C| time.
- Publication:
-
arXiv e-prints
- Pub Date:
- April 2015
- DOI:
- 10.48550/arXiv.1504.07595
- arXiv:
- arXiv:1504.07595
- Bibcode:
- 2015arXiv150407595B
- Keywords:
-
- Computer Science - Data Structures and Algorithms