Here I have an array of arrays of bits. I need to generate non-repeating arrays of bits in the first array. There can be any given number of bits in an array (for example, set 10 and arrays with 10 bits will be generated). The bits can be repeated, but the bit arrays themselves are not. How to implement it?
0to2^N(whereNlength of the array) in binary form, you get a complete set of all possible arrays of interest to you. Moreover, it is possible with the help of bit operations, you can filter out the necessary numbers according to your algorithm. For example, throw out arrays, where we say the third bit is zero. - teran