Skip to main content
Log in

The Maximum Binary Tree Problem

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

We introduce and investigate the approximability of the maximum binary tree problem (MBT) in directed and undirected graphs. The goal in MBT is to find a maximum-sized binary tree in a given graph. MBT is a natural variant of the well-studied longest path problem, since both can be viewed as finding a maximum-sized tree of bounded degree in a given graph. The connection to longest path motivates the study of MBT in directed acyclic graphs (DAGs), since the longest path problem is solvable efficiently in DAGs. In contrast, we show that MBT in DAGs is hard: it has no efficient \(\exp (-O(\log n/ \log \log n))\)-approximation under the exponential time hypothesis, where n is the number of vertices in the input graph. In undirected graphs, we show that MBT has no efficient \(\exp (-O(\log ^{0.63}{n}))\)-approximation under the exponential time hypothesis. Our inapproximability results rely on self-improving reductions and structural properties of binary trees. We also show constant-factor inapproximability assuming \({\mathbf {P}}\ne \mathbf {NP}\). In addition to inapproximability results, we present algorithmic results along two different flavors: (1) We design a randomized algorithm to verify if a given directed graph on n vertices contains a binary tree of size k in \(2^k \mathsf {poly}(n)\) time. (2) Motivated by the longest heapable subsequence problem, introduced by Byers, Heeringa, Mitzenmacher, and Zervas, ANALCO 2011, which is equivalent to MBT in permutation DAGs, we design efficient algorithms for MBT in bipartite permutation graphs.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4

Similar content being viewed by others

References

  1. Addario-Berry, L., Dalal, K., Reed, A.: Degree constrained subgraphs. Electron. Notes Discrete Math. 19, 257–263 (2005)

    Article  MathSciNet  Google Scholar 

  2. Alon, N., Yuster, R., Zwick, U.: Color-coding. J. ACM 42(4), 844–856 (1995)

    Article  MathSciNet  Google Scholar 

  3. Amini, O., Peleg, D., Pérennes, S., Sau, I., Saurabh, S.: Degree-constrained subgraph problems: hardness and approximation results. In: Approximation and Online Algorithms, pp. 29–42 (2009)

  4. Amini, O., Sau, I., Saurabh, S.: Parameterized complexity of the smallest degree-constrained subgraph problem. In: Parameterized and Exact Computation, pp. 13–29 (2008)

  5. Austrin, P., O’Donnell, R., Wright, J.: A new point of NP-hardness for 2-to-1 label-cover. In: Proceedings of the 15th Annual International Workshop on Approximation Algorithms for Combinatorial Optimization Problems, APPROX ’12, pp. 1–12 (2012)

  6. Balogh, J., Bonchiş, C., Diniş, D., Istrate, G., Todinca, I.: On the heapability of finite partial orders. In: Discrete Mathematics and Theoretical Computer Science, vol. 22 (2020)

  7. Bansal, N., Khandekar, R., Nagarajan, V.: Additive guarantees for degree-bounded directed network design. SIAM J. Comput. 39(4), 1413–1431 (2009)

    Article  MathSciNet  Google Scholar 

  8. Björklund, A., Husfeldt, T., Kaski, P., Koivisto, M.: Narrow sieves for parameterized paths and packings. J. Comput. Syst. Sci. 87, 119–139 (2017)

    Article  MathSciNet  Google Scholar 

  9. Björklund, A., Husfeldt, T., Khanna, S.: Approximating longest directed paths and cycles. In: Languages and Programming, Automata, pp. 222–233 (2004)

  10. Björklund, A., Kaski, P., Kowalik, Ł: Constrained multilinear detection and generalized graph motifs. Algorithmica 74(2), 947–967 (2016)

    Article  MathSciNet  Google Scholar 

  11. Byers, J., Heeringa, B., Mitzenmacher, M., Zervas, G.: Heapable sequences and subseqeuences. In: Proceedings of the Meeting on Analytic Algorithmics and Combinatorics, ANALCO ’11, pp. 33–44 (2011)

  12. Chaudhuri, K., Rao, S., Riesenfeld, S., Talwar, K.: A push-relabel approximation algorithm for approximating the minimum-degree mst problem and its generalization to matroids. Theoret. Comput. Sci. 410(44), 4489–4503 (2009)

    Article  MathSciNet  Google Scholar 

  13. Chaudhuri, K., Rao, S., Riesenfeld, S., Talwar, K.: What would edmonds do? Augmenting paths and witnesses for degree-bounded MSTs. Algorithmica 55(1), 157–189 (2009)

    Article  MathSciNet  Google Scholar 

  14. Cygan, M., Fomin, F.V., Kowalik, L., Lokshtanov, D., Marx, D., Pilipczuk, M., Pilipczuk, M.: Springer, Parameterized Algorithms (2015)

  15. Erdös, P., Faudree, R.J., Rousseau, C.C.: Subgraphs of minimal degree k. Discrete Math. 85, 53–58 (1990)

    Article  MathSciNet  Google Scholar 

  16. Fürer, M., Raghavachari, B.: Approximating the minimum-degree Steiner tree to within one of optimal. J. Algorithms 17(3), 409–423 (1994)

    Article  MathSciNet  Google Scholar 

  17. Gabow, H.N.: An efficient reduction technique for degree-constrained subgraph and bidirected network flow problems. In: Proceedings of the Fifteenth Annual ACM Symposium on Theory of Computing, STOC ’83, pp. 448–456 (1983)

  18. Garey, M., Johnson, D.: Computers and Intractability. W. H Freeman and Company, New York (1979)

    MATH  Google Scholar 

  19. Goemans, M.X.: Minimum bounded degree spanning trees. In: Proceedings of the 47th Annual IEEE Symposium on Foundations of Computer Science, FOCS ’06, pp. 273–282 (2006)

  20. Guillemot, S., Sikora, F.: Finding and counting vertex-colored subtrees. Algorithmica 65(4), 828–844 (2013)

    Article  MathSciNet  Google Scholar 

  21. Guruswami, V., Sinop, A.K.: Improved inapproximability results for maximum k-colorable subgraph. Theory Comput. 9, 413–435 (2013)

    Article  MathSciNet  Google Scholar 

  22. Istrate, G., Bonchiş, C.: Heapability, interactive particle systems, partial orders: results and open problems. In: Proceedings of DCFS’2016, 18th International Conference on Descriptional Complexity of Formal Systems, Springer, pp. 18–28 (2016)

  23. Karger, D.R., Motwani, R., Ramkumar, G.D.S.: On approximating the longest path in a graph. Algorithmica 18, 82–98 (1997)

    Article  MathSciNet  Google Scholar 

  24. Khandekar, R., Kortsarz, G., Nutov, Z.: On some network design problems with degree constraints. J. Comput. Syst. Sci. 79(5), 725–736 (2013)

    Article  MathSciNet  Google Scholar 

  25. Kloks, T., Kratsch, D., Müller, H.: Bandwidth of chain graphs. Inf. Process. Lett. 68, 313–315 (1998)

    Article  MathSciNet  Google Scholar 

  26. Könemann, J., Ravi, R.: A matter of degree: improved approximation algorithms for degree-bounded minimum spanning trees. SIAM J. Comput. 31, 1783–1793 (2002)

    Article  MathSciNet  Google Scholar 

  27. Koutis, I..: Faster algebraic algorithms for path and packing problems. In: International Colloquium on Automata, Languages, and Programming, Springer, pp. 575–586 (2008)

  28. Koutis, I., Williams, R..: Limits and applications of group algebras for parameterized problems. In: International Colloquium on Automata, Languages, and Programming, Springer, pp. 653–664 (2009)

  29. Könemann, J., Ravi, R.: Primal-dual meets local search: approximating msts with nonuniform degree bounds. SIAM J. Comput. 34, 763–773 (2005)

    Article  MathSciNet  Google Scholar 

  30. Lap, C.L., Joseph, N., Mohammad, S., Mohit, S.: Survivable network design with degree or order constraints. SIAM J. Comput. 39(3), 1062–1087 (2009)

    Article  MathSciNet  Google Scholar 

  31. Nederlof, J.: Fast polynomial-space algorithms using möbius inversion: improving on steiner tree and related problems. In: International Colloquium on Automata, Languages, and Programming, Springer, pp. 713–725 (2009)

  32. Papadimitriou, C.H., Yannakakis, M.: The traveling salesman problem with distances one and two. Math. Oper. Res. 18(1), 1–11 (1993)

    Article  MathSciNet  Google Scholar 

  33. Porfilio, J.: A combinatorial characterization of heapability. Master’s Thesis, Williams College (2015)

  34. Ravi, R., Marathe, M., Ravi, S.S., Rosenkrantz, D.: Approximation algorithms for degree-constrained minimum-cost network-design problems. Algorithmica 31, 58–78 (2001)

    Article  MathSciNet  Google Scholar 

  35. Singh, M., Lau, L.C.: Approximating minimum bounded degree spanning trees to within one of optimal. J. ACM 62(1), 1–19 (2015)

    Article  MathSciNet  Google Scholar 

  36. Smith, J.: Minimum degree spanning trees on bipartite permutation graphs. Master’s Thesis, University of Alberta (2011)

  37. Spinrad, J., Brandstädt, A., Stewart, L.: Bipartite permutation graphs. Discrete Appl. Math. 18(3), 279–292 (1987)

    Article  MathSciNet  Google Scholar 

  38. Uehara, R., Uno, Y.: Efficient algorithms for the longest path problem. In: Proceedings of the 15th International Conference on Algorithms and Computation, ISAAC ’04, pp. 871–883 (2004)

  39. Williams, R.: Finding paths of length \(k\) in \(O^*(2^k)\) time. Inf. Process. Lett. 109(6), 315–318 (2009)

    Article  Google Scholar 

Download references

Acknowledgements

Karthekeyan Chandrasekaran is supported by NSF CCF-1814613 and NSF CCF-1907937. Elena Grigorescu, Young-San Lin, and Minshen Zhu are supported by NSF CCF-1910659 and NSF CCF-1910411. Gabriel Istrate was supported by a grant of Ministry of Research and Innovation, CNCS - UEFISCDI project number PN-III-P4-ID-PCE-2016-0842, within PNCDI III. We thank our anonymous reviewers for many constructive comments that helped improve the presentation of the paper. A preliminary version of this work appeared in the proceedings of the 28th Annual European Symposium on Algorithms (ESA, 2020). This version contains complete proofs, an integer program, and an integrality gap instance.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Karthekeyan Chandrasekaran.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Chandrasekaran, K., Grigorescu, E., Istrate, G. et al. The Maximum Binary Tree Problem. Algorithmica 83, 2427–2468 (2021). https://doi.org/10.1007/s00453-021-00836-5

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-021-00836-5

Keywords

Navigation