# A linear time algorithm to cover and hit a set of line segments optimally by two axis-parallel squares

This paper discusses the problem of covering and hitting a set of line segments L in R^2 by a pair of axis-parallel squares such that the side length of the larger of the two squares is minimized. We also discuss the restricted version of covering, where each line segment in L is to be covered completely by at least one square. The proposed algorithm for the covering problem reports the optimum result by executing only two passes of reading the input data sequentially. The algorithm proposed for the hitting and restricted covering problems produces optimum result in O(n) time. All the proposed algorithms are in-place, and they use only O(1) extra space. The solution of these problems also give a √(2) approximation for covering and hitting those line segments L by two congruent disks of minimum radius with same computational complexity.

READ FULL TEXT