Abstract
This paper discusses the problem of covering and hitting a set of line segments \(\mathcal L\) in \(\mathbb {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 \(\mathcal 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\log 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 \(\sqrt{2}\) approximation for covering and hitting those line segments \(\mathcal L\) by two congruent disks of minimum radius with same computational complexity.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
\(L_\infty \) distance between two points a and b is given by \(\max (|x(a)-x(b)|,|y(a)-y(b)|)\).
References
Bhattacharya, B., Das, S., Kameda, T., Sinha Mahapatra, P.R., Song, Z.: Optimizing squares covering a set of points. In: Zhang, Z., Wu, L., Xu, W., Du, D.-Z. (eds.) COCOA 2014. LNCS, vol. 8881, pp. 37–52. Springer, Cham (2014). doi:10.1007/978-3-319-12691-3_4
Carlsson, S., Sundström, M.: Linear-time in-place selection in less than 3n comparisons. In: Staples, J., Eades, P., Katoh, N., Moffat, A. (eds.) ISAAC 1995. LNCS, vol. 1004, pp. 244–253. Springer, Heidelberg (1995). doi:10.1007/BFb0015429
Chan, T.M.: More planar two-center algorithms. Comput. Geom. Theory Appl. 13(3), 189–198 (1999)
Drezner, Z.: On the rectangular p-center problem. Naval Res. Log. 34(2), 229–234 (1987)
Eppstein, D.: Faster construction of planar two-centers. In: 8th ACM-SIAM Symposium On Discrete Algorithms (SODA), pp. 131–138 (1997)
Hershberger, J.: A fast algorithm for the two-Center decision Problem. Inf. Process. Lett. (Elsevier) 47(1), 23–29 (1993)
Hoffmann, M.: A simple linear algorithm for computing rectilinear 3-centers. Comput. Geom. 31(3), 150–165 (2005)
Jaromczyk, J.W., Kowaluk, M.: An efficient algorithm for the euclidean two-center problem. In: Mehlhorn, K. (ed.) Symposium on Computational Geometry, pp. 303–311. ACM (1994)
Katz, M.J., Kedem, K., Segal, M.: Discrete rectilinear 2-center problems. Comput. Geom. 15(4), 203–214 (2000)
Kim, S.S., Bae, S.W., Ahn, H.K.: Covering a point set by two disjoint rectangles. Int. J. Comput. Geometry Appl. 21(3), 313–330 (2011)
Kim, S.K., Shin, C.-S.: Efficient algorithms for two-center problems for a convex polygon. In: Du, D.-Z.-Z., Eades, P., Estivill-Castro, V., Lin, X., Sharma, A. (eds.) COCOON 2000. LNCS, vol. 1858, pp. 299–309. Springer, Heidelberg (2000). doi:10.1007/3-540-44968-X_30
Marchetti-Spaccamela, A.: The p center problem in the plane is NP complete. In: Proceedings of the 19th Allerton Conference on Communication, Control and Computing, pp. 31–40 (1981)
Sharir, M.: A near-linear algorithm for the planar 2-center problem. Discrete Comput. Geom. 18(2), 125–134 (1997)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Sadhu, S., Roy, S., Nandy, S.C., Roy, S. (2017). Optimal Covering and Hitting of Line Segments by Two Axis-Parallel Squares. In: Cao, Y., Chen, J. (eds) Computing and Combinatorics. COCOON 2017. Lecture Notes in Computer Science(), vol 10392. Springer, Cham. https://doi.org/10.1007/978-3-319-62389-4_38
Download citation
DOI: https://doi.org/10.1007/978-3-319-62389-4_38
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-62388-7
Online ISBN: 978-3-319-62389-4
eBook Packages: Computer ScienceComputer Science (R0)