Given a polyhedral terrain T with n vertices, the two-watchtower problem for T asks to find two vertical segments, called watchtowers, of smallest common height, whose bottom endpoints (bases) lie on T, and whose top endpoints guardT, in the sense that each point on T is visible from at least one of them. There are three versions of the problem, discrete, semi-continuous, and continuous, depending on whether two, one, or none of the two bases are restricted to be among the vertices of T, respectively.
In this paper we present the following results for the two-watchtower problem in ℝ2 and ℝ3: (1) We show that the discrete two-watchtowers problem in ℝ2 can be solved in O(n2log 4n) time, significantly improving previous solutions. The algorithm works, without increasing its asymptotic running time, for the semi-continuous version, where one of the towers is allowed to be placed anywhere on T. (2) We show that the continuous two-watchtower problem in ℝ2 can be solved in O(n3α(n)log 3n) time, again significantly improving previous results. (3) Still in ℝ2, we show that the continuous version of the problem of guarding a finite set P⊂T of m points by two watchtowers of smallest common height can be solved in O(mnlog 4n) time. (4) We show that the discrete version of the two-watchtower problem in ℝ3 can be solved in O(n11/3polylog(n)) time; this is the first nontrivial result for this problem in ℝ3.
Ben-Moshe, B., Carmi, P., Katz, M.J.: Computing all large sums-of-pairs in ℝn and the discrete planar two-watchtower problem. Inf. Process. Lett. 89, 137–139 (2004)
Ben-Moshe, B., Katz, M.J., Mitchell, J.S.B.: A constant-factor approximation algorithm for optimal terrain guarding. SIAM J. Comput. 36, 1631–1647 (2007)
Bespamyatnikh, S., Chen, Z., Wang, K., Zhu, B.: On the planar two-watchtower problem. In: Proc. 7th Annu. Internat. Conf. Computing and Combinatorics, pp. 121–130 (2001)
Guibas, L., Hershberger, J., Leven, D., Sharir, M., Tarjan, R.: Linear-time algorithms for visibility and shortest path problems inside triangulated simple polygons. Algorithmica 2, 209–233 (1987)
Gupta, P., Janardan, R., Smid, M.: Computational geometry: Generalized intersection searching. In: Mehta, D.P., Sahni, S. (eds.) Handbook of Data Structures and Applications, pp. 64.1–64.17. CRC Press, Boca Raton (2005)