Abstract
A geometric graph is a graph whose vertices are points in the plane and whose edges are straight-line segments between the points. A plane spanning tree in a geometric graph is a spanning tree that is non-crossing. Let R and B be two disjoint sets of points in the plane such that \(R\cup B\) is in general position, and let \(n=|R\cup B|\). Assume that the points of R are colored red and the points of B are colored blue. A bichromatic plane spanning tree is a plane spanning tree in the complete bipartite geometric graph with bipartition (R, B). In this paper we consider the maximum bichromatic plane spanning tree problem, which is the problem of computing a bichromatic plane spanning tree of maximum total edge length.
-
1.
For the maximum bichromatic plane spanning tree problem, we present an approximation algorithm with ratio 1 / 4 that runs in \(O(n\log n)\) time.
-
2.
We also consider the multicolored version of this problem where the input points are colored with \(k>2\) colors. We present an approximation algorithm that computes a plane spanning tree in a complete k-partite geometric graph, and whose ratio is 1 / 6 if \(k=3\), and 1 / 8 if \(k\geqslant 4\).
-
3.
We also revisit the special case of the problem where \(k=n\), i.e., the problem of computing a maximum plane spanning tree in a complete geometric graph. For this problem, we present an approximation algorithm with ratio 0.503; this is an extension of the algorithm presented by Dumitrescu and Tóth (Discrete Comput Geom 44(4):727–752, 2010) whose ratio is 0.502.
-
4.
For points that are in convex position, the maximum bichromatic plane spanning tree problem can be solved in \(O(n^3)\) time. We present an \(O(n^5)\)-time algorithm that solves this problem for the case where the red points lie on a line and the blue points lie on one side of the line.
Similar content being viewed by others
References
Alon, N., Rajagopalan, S., Suri, S.: Long non-crossing configurations in the plane. Fund. Inf. 22(4), 385–394 (1995). (also in Proceedings of the 9th ACM Symposium on Computational Geometry (SoCG), pp. 257–263, 1993)
Biniaz, A., Bose, P., Eppstein, D., Maheshwari, A., Morin, P., Smid, M.: Spanning trees in multipartite geometric graphs. Algorithmica (2017). https://doi.org/10.1007/s00453-017-0375-4
Borgelt, M.G., van Kreveld, M.J., Löffler, M., Luo, J., Merrick, D., Silveira, R.I., Vahedi, M.: Planar bichromatic minimum spanning trees. J. Discrete Algorithms 7(4), 469–478 (2009)
Dumitrescu, A., Tóth, C.D.: Long non-crossing configurations in the plane. Discrete Comput. Geom. 44(4), 727–752 (2010). (also in Proceedings of the 27th International Symposium on Theoretical Aspects of Computer Science (STACS), pp. 311–322, 2010)
Monma, C.L., Paterson, M., Suri, S., Yao, F.F.: Computing Euclidean maximum spanning trees. Algorithmica 5(3), 407–419 (1990)
Acknowledgements
We would like to thank an anonymous referee whose comments improved the readability of the paper. Funding was provide by NSERC and NSF (Grant CCF-1228639)
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
A preliminary version of this paper has been accepted to Algorithms and Data Structures Symposium (WADS), 2017.
The work of Ahmad Biniaz has been done while he was at Carleton University.
Appendix: Proof of \(f(x,\alpha ) \geqslant 0\)
Appendix: Proof of \(f(x,\alpha ) \geqslant 0\)
We want to show that
for all \(\sqrt{3}/2\leqslant x \leqslant \sqrt{3}\) and \(0\leqslant \alpha \leqslant \frac{\pi }{6}\). From elementary trigonometry, we have
from which \(f(x,\alpha )\) can be re-written as
Let us solve the equation \(f(x,\alpha ) = 0\), which corresponds to
By squaring on both sides, we find
which we write as
Squaring once more, we find
which is equivalent to
which can be factored into
Since \(x > 0\) and
we have that \(f(x,\alpha ) = 0\) if and only if \(x = \cos \alpha +\frac{1}{\sqrt{3}}\sin \alpha \). Therefore, on its domain, f is equal to 0 precisely on the curve \(x = \cos \alpha +\frac{1}{\sqrt{3}}\sin \alpha \) and nowhere else. Thus, below this curve, f is everywhere positive or everywhere negative. Since \(f\left( \frac{\sqrt{3}}{2},\frac{\pi }{6}\right) = 1-\frac{\sqrt{3}}{2} > 0\), f is everywhere positive below the curve. Similarly, since \(f(\sqrt{3},0) = \sqrt{4-\sqrt{3}} - 1 > 0\), f is everywhere positive above the curve. Therefore, \(f(x,\alpha ) \geqslant 0\) for all \(\sqrt{3}/2\leqslant x \leqslant \sqrt{3}\) and \(0\leqslant \alpha \leqslant \frac{\pi }{6}\).
Rights and permissions
About this article
Cite this article
Biniaz, A., Bose, P., Crosbie, K. et al. Maximum Plane Trees in Multipartite Geometric Graphs. Algorithmica 81, 1512–1534 (2019). https://doi.org/10.1007/s00453-018-0482-x
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00453-018-0482-x