I am working on a program that has somewhat focus on the below:
unit-length closed interval on the real line is an interval [x, 1+x]. For given input set
X={x1,x2,..., Xn}, x1 < x2 <...xn, how can i determine the smallest set of unit-lenght closed intervals that contains all of the given points and how i calculate time complexity.
I dont need code but an algorithm to set up my program correctly will just do fine
Thanks