Suppose we are given $n$ points on the real line, where each point is colored with a color from set $C=\{c_1,c_2,\ldots,c_k\}$ that contains $k$ distinct colors. We try to cover the $k$ distinct colors with as few unit length intervals as possible.
I think this problem is NP-hard and we can reduce from set cover problem. But I get stuck.
Also when $k=3$, is there a polynomial solution. I read this link but I can't understand his idea?