I've seen this post about the $n^{\textrm{th}}$ permutation of a set but that is not what I need. If you have a bit string (ones and zeros only) there are algorithms to quickly permute the NEXT lexicographically ordered bit permutation. For example take $$000111 \rightarrow 001011 \rightarrow 001101\rightarrow\cdots$$ etc. If the string is long then there are going to be approximately one Bajillion of these things. And I want to know how to compute the $n^{\textrm{th}}$ guy without doing the exhaust.
Backgound: This is for a parallel computing job where I need to farm out the search space of elements of a set.
Foreground: I own a copy of Knuth's 4th volume of "The Art of Computer Programming" and I think the answer is in there but I can't seem to find it. (It's like 900 pages).
I'm posting here in the hopes that someone has knowledge of this (obviously). Even if you can point me to a source, say the part in Knuth's book where he describes this problem I would be most grateful.
000111go to001011? – hmakholm left over Monica May 30 '15 at 00:321bits) then you can use the Knuth algorithms for lexicographically ordered combinations - there will be $n\choose w$ of them, of course, where $w$ is the weight and $n$ is the total number of bits. – Steven Stadnicki May 30 '15 at 00:39