As Falk notes, to prove that this problem is NP-hard, we need a reduction from NP-hard problem. I am going to use the problem of finding an independent set (i.e., finding a clique in the complement graph).
My reduction has two stages. The output of the first stage is a generic instance with a non-binary alphabet. At the output of the second stage, the binary alphabet is used. Let G = (V, E) be the graph in which we try to find a large independent set. The output signal of the first stage is | V | words of length | E |. Let e ββ= (v, w) be the edge i th . The letters in i th position of each word are different, with the exception of words corresponding to v and w, which contain a letter there. Thus, the size of the alphabet is | V | - 1. Two vertices are not adjacent if and only if their words are at the maximum distance, so we set the distance threshold to | V |.
In the second stage, we replace each letter with one of | V | - 1 word of length | V | - 1, which has 1 "1" and (| V | - 2) "0" s and doubles the distance threshold to 2 | V |.
To allow small instances, I would recommend using Sam's shortcut to the maximum click problem and run the exponential-time Bron - Kerbosch algorithm to list all the maximum clicks from which you can choose the maximum. (Why B - K, and not faster algorithms? The latter are more complex and will not reach you very far.)
source share