When you use the second scheme, remove the substrings that are made from duplicate binaries. For example, 00 and 11 are made from repeating 0 and 1, respectively. Thus, for length 2, we consider only "01" and "10", for length 3, only "001", "010", "011", "100", "101", "110", ... are taken into account ... in general , for odd length n, delete 0 and (2 ^ n) -1, for even length n, delete 0, (2 ^ (n / 2) +1), (2 ^ (n / 2) +1) 2 ,. .., (2 ^ n) -1 and if n is divisible by 3, (1 + 2 ^ (n / 2) + 2 ^ (n-2)), (1 + 2 ^ (n / 2) + 2 ^ (n-2)) 2, .., continue this for all delimiters.
Hoda aghaeikhouzani
source share