I am implementing a binary representation of a two-way equalization algorithm, and I am wondering what is the best way to iterate through all combinations of N bits having equal (N / 2) 1 and 0. I am trying to find the fastest way and not the simplest code. Thank.
source
share