Skip to main content
Log in

Computing the Largest Bond and the Maximum Connected Cut of a Graph

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

The cut-set \(\partial (S)\) of a graph \(G=(V,E)\) is the set of edges that have one endpoint in \(S\subset V\) and the other endpoint in \(V\setminus S\), and whenever G[S] is connected, the cut \([S,V\setminus S]\) of G is called a connected cut. A bond of a graph G is an inclusion-wise minimal disconnecting set of G, i.e., bonds are cut-sets that determine cuts \([S,V\setminus S]\) of G such that G[S] and \(G[V\setminus S]\) are both connected. Contrasting with a large number of studies related to maximum cuts, there exist very few results regarding the largest bond of general graphs. In this paper, we aim to reduce this gap on the complexity of computing the largest bond, and the maximum connected cut of a graph. Although cuts and bonds are similar, we remark that computing the largest bond and the maximum connected cut of a graph tends to be harder than computing its maximum cut. We show that it does not exist a constant-factor approximation algorithm to compute the largest bond, unless \(\text{ P }= \text{ NP }\). Also, we show that Largest Bond and Maximum Connected Cut are NP-hard even for planar bipartite graphs, whereas Maximum Cut is trivial on bipartite graphs and polynomial-time solvable on planar graphs. In addition, we show that Largest Bond and Maximum Connected Cut are NP-hard on split graphs, and restricted to graphs of clique-width w they can not be solved in time \(f(w) n^{{o}(w)}\) unless the Exponential Time Hypothesis fails, but they can be solved in time \(f(w) n^{{O}(w)}\). Finally, we show that both problems are fixed-parameter tractable when parameterized by the size of the solution, the treewidth, and the twin-cover number.

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

Similar content being viewed by others

Notes

  1. The \(O^*(\cdot )\) notation suppresses polynomial factors in the input size.

References

  1. Aldred, R.E.L., Van Dyck, D., Brinkmann, G., Fack, V., McKay, B.D.: Graph structural properties of non-Yutsis graphs allowing fast recognition. Discrete Appl. Math. 157(2), 377–386 (2009)

    MathSciNet  MATH  Google Scholar 

  2. Bazgan, C., Brankovic, L., Casel, K., Fernau, H., Jansen, K., Klein, K.M., Lampis, M., Liedloff, M., Monnot, J., Paschos, V.T.: The many facets of upper domination. Theoret. Comput. Sci. 717, 2–25 (2018)

    MathSciNet  MATH  Google Scholar 

  3. Biedenharn, L.C., Louck, J.D.: The Racah–Wigner Algebra in Quantum Theory. Addison-Wesley, USA (1981)

    MATH  Google Scholar 

  4. Bodlaender, H.L., Cygan, M., Kratsch, S., Nederlof, J.: Deterministic single exponential time algorithms for connectivity problems parameterized by treewidth. Inf. Comput. 243, 86–111 (2015)

    MathSciNet  MATH  Google Scholar 

  5. Bodlaender, H.L., Jansen, K.: On the complexity of the maximum cut problem. Nordic J. Comput. 7(1), 14–31 (2000)

    MathSciNet  MATH  Google Scholar 

  6. Bodlaender, H.L., Van Leeuwen, J., Tan, R., Thilikos, D.M.: On interval routing schemes and treewidth. Inf. Comput. 139(1), 92–109 (1997)

    MathSciNet  MATH  Google Scholar 

  7. Boria, N., Croce, F.D., Paschos, V.T.: On the max min vertex cover problem. Discrete Appl. Math. 196, 62–71 (2015)

    MathSciNet  MATH  Google Scholar 

  8. Bui-Xuan, B.M., Suchý, O., Telle, J.A., Vatshelle, M.: Feedback vertex set on graphs of low clique-width. Eur. J. Comb. 34(3), 666–679 (2013)

    MathSciNet  MATH  Google Scholar 

  9. Carvajal, R., Constantino, M., Goycoolea, M., Vielma, J.P., Weintraub, A.: Imposing connectivity constraints in forest planning models. Oper. Res. 61(4), 824–836 (2013)

    MathSciNet  MATH  Google Scholar 

  10. Chaourar, B.: A linear time algorithm for a variant of the MAX CUT problem in series parallel graphs. Adv. Oper. Res. 1267108:1–1267108:4 (2017)

  11. Chaourar, B.: Connected max cut is polynomial for graphs without \({K}_5\setminus e\) as a minor. CoRR (2019). arXiv:1903.12641

  12. Cho, J.J., Chen, Y., Ding, Y.: On the (co)girth of a connected matroid. Discrete Appl. Math. 155(18), 2456–2470 (2007). https://doi.org/10.1016/j.dam.2007.06.015

    Article  MathSciNet  MATH  Google Scholar 

  13. Cormen, T., Leiserson, C., Rivest, R., Stein, C.: Introduction to Algorithms. MIT Press, Cambridge (2001)

    MATH  Google Scholar 

  14. Courcelle, B., Makowsky, J.A., Rotics, U.: Linear time solvable optimization problems on graphs of bounded clique-width. Theory Comput. Syst. 33(2), 125–150 (2000)

    MathSciNet  MATH  Google Scholar 

  15. Courcelle, B., Olariu, S.: Upper bounds to the clique width of graphs. Discrete Appl. Math. 101(1–3), 77–114 (2000)

    MathSciNet  MATH  Google Scholar 

  16. Cygan, M., Fomin, F.V., Kowalik, Ł., Lokshtanov, D., Marx, D., Pilipczuk, M., Pilipczuk, M., Saurabh, S.: Parameterized Algorithms. Springer, Berlin (2015)

  17. Cygan, M., Nederlof, J., Pilipczuk, M., Pilipczuk, M., Rooij, J.M.M.v., Wojtaszczyk, J.O.: Solving connectivity problems parameterized by treewidth in single exponential time. In: IEEE 52nd Annual Symposium on Foundations of Computer Science (FOCS 2011), pp. 150–159 (2011)

  18. de Berg, M., Khosravi, A.: Finding perfect auto-partitions is NP-hard. In: 25th European Workshop on Computational Geometry (EuroCG2009), pp. 255–258 (2009)

  19. Demange, M.: A note on the approximation of a minimum-weight maximal independent set. Comput. Optim. Appl. 14(1), 157–169 (1999)

    MathSciNet  MATH  Google Scholar 

  20. Ding, G., Dziobiak, S., Wu, H.: Large-or-minors in 3-connected graphs. J. Graph Theory 82(2), 207–217 (2016)

    MathSciNet  MATH  Google Scholar 

  21. Duarte, G.L., Lokshtanov, D., Pedrosa, L.L.C., Schouery, R.C.S., Souza, U.S.: Computing the Largest Bond of a Graph. In: 14th International Symposium on Parameterized and Exact Computation (IPEC 2019), Volume148 of LIPIcs, pp. 12:1–12:15 (2019)

  22. Dyck, D.V., Fack, V.: On the reduction of Yutsis graphs. Discrete Math. 307(11), 1506–1515 (2007). The Fourth Caracow Conference on Graph Theory

    MathSciNet  MATH  Google Scholar 

  23. Díaz, J., Kamiński, M.: Max-cut and max-bisection are NP-hard on unit disk graphs. Theoret. Comput. Sci. 377(1), 271–276 (2007)

    MathSciNet  MATH  Google Scholar 

  24. Edmonds, J., Karp, R.M.: Theoretical improvements in algorithmic efficiency for network flow problems. J. ACM 19(2), 248–264 (1972)

    MATH  Google Scholar 

  25. Erdös, P.: On some extremal problems in graph theory. Israel J. Math. 3(2), 113–116 (1965)

    MathSciNet  MATH  Google Scholar 

  26. Eto, H., Hanaka, T., Kobayashi, Y., Kobayashi, Y.: Parameterized Algorithms for Maximum Cut with Connectivity Constraints. In: 14th International Symposium on Parameterized and Exact Computation (IPEC 2019), Volume148 of LIPIcs, pp. 13:1–13:15 (2019)

  27. Flynn, M.: The largest bond in 3-connected graphs. Ph.D. thesis, The University of Mississippi (2017)

  28. Fomin, F.V., Golovach, P.A., Lokshtanov, D., Saurabh, S.: Almost optimal lower bounds for problems parameterized by clique-width. SIAM J. Comput. 43(5), 1541–1563 (2014)

    MathSciNet  MATH  Google Scholar 

  29. Gandhi, R., Hajiaghayi, M.T., Kortsarz, G., Purohit, M., Sarpatwar, K.: On maximum leaf trees and connections to connected maximum cut problems. Inf. Processing Lett. 129, 31–34 (2018)

    MathSciNet  MATH  Google Scholar 

  30. Ganian, R.: Improving vertex cover as a graph parameter. Discrete Math. Theoret. Comput. Sci. 17(2), 77–100 (2015)

    MathSciNet  MATH  Google Scholar 

  31. Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, New York (1979)

    MATH  Google Scholar 

  32. Garey, M.R., Johnson, D.S., Tarjan, R.E.: The planar hamiltonian circuit problem is NP-complete. SIAM J. Comput. 5(4), 704–714 (1976)

    MathSciNet  MATH  Google Scholar 

  33. Godsil, C.D., Royle, G.F.: Algebraic Graph Theory. Graduate Texts in Mathematics. Springer, Berlin (2001)

    MATH  Google Scholar 

  34. Goemans, M.X., Williamson, D.P.: Improved approximation algorithms for maximum cut and satisfiability problems using semidefinite programming. J. ACM 42(6), 1115–1145 (1995)

    MathSciNet  MATH  Google Scholar 

  35. Gomory, R.E., Hu, T.C.: Multi-terminal network flows. J. Soc. Ind. Appl. Math. 9(4), 551–570 (1961)

    MathSciNet  MATH  Google Scholar 

  36. Grimm, V., Kleinert, T., Liers, F., Schmidt, M., Zöttl, G.: Optimal price zones of electricity markets: a mixed-integer multilevel model and global solution approaches. Optim. Methods Softw. 34(2), 406–436 (2019)

    MathSciNet  MATH  Google Scholar 

  37. Guruswami, V.: Maximum cut on line and total graphs. Discrete Appl. Math. 92(2), 217–221 (1999)

    MathSciNet  MATH  Google Scholar 

  38. Hadlock, F.: Finding a maximum cut of a planar graph in polynomial time. SIAM J. Comput. 4(3), 221–225 (1975)

    MathSciNet  MATH  Google Scholar 

  39. Haglin, D.J., Venkatesan, S.M.: Approximation and intractability results for the maximum cut problem and its variants. IEEE Trans. Comput. 40(1), 110–113 (1991)

    MathSciNet  MATH  Google Scholar 

  40. Hajiaghayi, M.T., Kortsarz, G., MacDavid, R., Purohit, M., Sarpatwar, K.: Approximation algorithms for connected maximum cut and related problems. In: 23rd Annual European Symposium on Algorithms (ESA 2015), Volume 9294 of LNCS, pp. 693–704 (2015)

  41. Hanaka, T., Bodlaender, H.L., van der Zanden, T.C., Ono, H.: On the maximum weight minimal separator. In: 14th Annual Conference on Theory and Applications of Models of Computation (TAMC 2017), Volume 10185 of LNCS, pp. 304–318 (2017)

  42. Karp, R.M.: Reducibility among Combinatorial Problems, pp. 85–103. Springer US, Boston, MA (1972)

    Google Scholar 

  43. Khoshkhah, K., Ghadikolaei, M.K., Monnot, J., Sikora, F.: Weighted upper edge cover: Complexity and approximability. In: 13th International Workshop on Algorithms and Computation (WALCOM 2019), Volume 11355 of LNCS, pp. 235–247 (2019)

  44. Khot, S., Kindler, G., Mossel, E., O’Donnell, R.: Optimal inapproximability results for MAX-CUT and other 2-variable CSPs? SIAM J. Comput. 37(1), 319–357 (2007)

    MathSciNet  MATH  Google Scholar 

  45. Mahajan, M., Raman, V.: Parameterizing above guaranteed values: MaxSat and MaxCut. J. Algorithms 31(2), 335–354 (1999)

    MathSciNet  MATH  Google Scholar 

  46. Mitzenmacher, M., Upfal, E.: Probability and Computing: Randomized Algorithms and Probabilistic Analysis. Cambridge University Press, Cambridge (2005)

    MATH  Google Scholar 

  47. Mulmuley, K., Vazirani, U.V., Vazirani, V.: Matching is as easy as matrix inversion. Combinatorica 7(1), 105–113 (1987)

    MathSciNet  MATH  Google Scholar 

  48. Odlyzko, A.M.: Asymptotic enumeration methods. Handbook Combi. 2(1063), 1229 (1995)

    MATH  Google Scholar 

  49. Orlova, G.I., Dorfman, Y.G.: Finding the maximal cut in a graph. Eng. Cyvernetics 10(3), 502–506 (1972)

    MATH  Google Scholar 

  50. Oxley, J.G.: Matroid Theory, vol. 3. Oxford University Press, USA (2006)

    MATH  Google Scholar 

  51. Raman, V., Saurabh, S.: Improved fixed parameter tractable algorithms for two “edge” problems: MAXCUT and MAXDAG. Inf. Process. Lett. 104(2), 65–72 (2007)

    MathSciNet  MATH  Google Scholar 

  52. Rao, M.: Clique-width of graphs defined by one-vertex extensions. Discrete Math. 308(24), 6157–6165 (2008)

    MathSciNet  MATH  Google Scholar 

  53. Robertson, N., Seymour, P.D.: Graph minors. V. excluding a planar graph. J. Comb. Theory, Ser. B 41(1), 92–114 (1986)

    MathSciNet  MATH  Google Scholar 

  54. Saurabh, S., Zehavi, M.: Parameterized Complexity of Multi-Node Hubs. In: 13th International Symposium on Parameterized and Exact Computation (IPEC 2018), Volume115 of LIPIcs, pp. 8:1–8:14 (2019)

  55. Shen, X., Lee, J., Nagarajan, V.: Approximating graph-constrained max-cut. Math. Program. 172(1), 35–58 (2018)

    MathSciNet  MATH  Google Scholar 

  56. Vicente, S., Kolmogorov, V., Rother, C.: Graph cut based image segmentation with connectivity priors. In: 2008 IEEE Conference on Computer Vision and Pattern Recognition (CVPR 2008), pp. 1–8 (2008)

  57. Yannakakis, M., Gavril, F.: Edge dominating sets in graphs. SIAM J. Appl. Math. 38(3), 364–372 (1980)

    MathSciNet  MATH  Google Scholar 

  58. Yutsis, A.P., Vanagas, V.V., Levinson, I.B.: Mathematical apparatus of the theory of angular momentum. Israel Program for Scientific Translations (1962)

  59. Zehavi, M.: Maximum minimal vertex cover parameterized by vertex cover. SIAM J. Discrete Math. 31(4), 2440–2456 (2017)

    MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tesshu Hanaka.

Additional information

Publisher's Note

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

This work is partially supported by JST CREST JPMJCR1401, and JSPS KAKENHI Grant numbers JP17H01788, JP16K16010, JP17K19960, and JP19K21537, and by São Paulo Research Foundation (FAPESP) Grant number 2015/11937-9, and Rio de Janeiro Research Foundation (FAPERJ) Grant number E-26/203.272/2017, and by National Council for Scientific and Technological Development (CNPq-Brazil) Grant numbers 308689/2017-8, 425340/2016-3, 313026/2017-3, 422829/2018-8, 303726/2017-2. The Japanese authors thank Akitoshi Kawamura and Yukiko Yamauchi for giving an opportunity to discuss in the Open Problem Seminar in Kyushu University, Japan. Preliminary versions of this paper appeared in [26] and [21].

Appendix

Appendix

1.1 Faster Algorithms Parameterized by Clique-width (Theorem 10)

In this section, we design faster XP algorithms for both Maximum Connected Cut and Largest Bond when parameterized by clique-width, which run in time \(n^{O(w)}\).

Here, we rather use a different graph parameter and its associated decomposition closely related to clique-width. We believe that this decomposition is more suitable to describe our dynamic programming.

Definition 11

Let \(X \subseteq V(G)\). We say that \(M \subseteq X\) is a twin-set of X if for any \(v \in V(G) \setminus X\), either \(M \subseteq N(v)\) or \(M \cap N(v) = \emptyset \) holds. A twin-set M is called a twin-class of X if it is maximal subject to being a twin-set of X. X can be partitioned into twin-classes of X.

Definition 12

Let w be an integer. We say that \(X \subseteq V(G)\) is a w-module of G if X can be partitioned into w twin-classes \(\{X_1, X_2, \ldots , X_{w}\}\). A decomposition tree of G is a pair of a rooted binary tree T and a bijection \(\phi \) from the set of leaves of T to V(G). For each node v of T, we denote by \(L_v\) the set of leaves, each of which is either v or a descendant of v. The width of a decomposition tree \((T, \phi )\) of G is the minimum w such that for every node v in T, the set \(\bigcup _{l \in L_v}\phi (l)\) is a \(w_v\)-module of G with \(w_v \le w\). The module-width of G is the minimum t such that there is a decomposition tree of G of width w.

Rao [52] proved that clique-width and module-width are linearly related to each other. Let cw and mw be the clique-width and the module-width of G, respectively. We note that a similar terminology “modular-width” has been used in the literature, but module-width used in this paper is different from it.

Theorem 22

([52]) For every graph G, \(mw \le cw \le 2mw\).

Moreover, given a w-expression tree of G, we can in time \(O(n^2)\) compute a decomposition tree \((T, \phi )\) of G of width at most w and \(w_v \le w\) twin-classes of \(\bigcup _{l \in L_v}\phi (l)\) for each node v in T [8].

Fix a decomposition tree (Tf) of G whose width is w. Our dynamic programming algorithm runs over the nodes of the decomposition tree in a bottom-up manner. For each node v in T, we let \(\{X^v_1, X^v_2, \ldots , X^v_{w_v}\}\) be the twin-classes of \(\bigcup _{l \in L_v}\phi (l)\). From now on, we abuse the notation to denote \(\bigcup _{l \in L_v}\phi (l)\) simply by \(L_v\). A tuple of \(4w_v\) integers \(t= (p_1, {\overline{p}}_1, p_2, {\overline{p}}_2, \ldots , p_{w_v}, {\overline{p}}_{w_v}, c_1, {\overline{c}}_1, c_2, {\overline{c}}_2, \ldots , c_{w_v}, {\overline{c}}_{w_v})\) is valid for v if it holds that \(0 \le p_i, {\overline{p}}_i \le |X^v_i|\) with \(p_i + {\overline{p}}_i = |X^v_i|\) and \(c_i, {\overline{c}}_i \in \{0, 1\}\) for each \(1 \le i \le w_v\). For a valid tuple t for v, we say that a cut \((S, L_v \setminus S)\) of \(G[L_v]\) is t-legitimate if for each \(1 \le i \le w_v\), it satisfies the following conditions:

  • \(p_i = |S \cap X^v_i|\),

  • \({\overline{p}}_i = |(L_v \setminus S) \cap X^v_i|\),

  • \(G[S \cap X^v_i]\) is connected if \(c_i = 1\), and

  • \(G[(L_v \setminus S) \cap X^v_i]\) is connected if \({\overline{c}}_i = 1\).

The size of a t-legitimate cut is defined accordingly. In this section, we allow each side of a cut to be empty and the empty graph is considered to be connected. Our algorithm computes the value \({{\mathrm{mc}}}(v, t)\) that is the maximum size of a t-legitimate cut for each valid tuple t and each node v in the decomposition tree.

Leaves (Base step): For each valid tuple t for a leaf v, \({{\mathrm{mc}}}(v, t) = 0\). Note that there is only one twin-class \(X^v_1 = \{v\}\) for v in this case.

Internal nodes (Induction step): Let v be an internal node of T and let a and b be the children of v in T. Consider twin-classes \({{\mathcal {X}}}^v = \{X^v_1, X^v_2, \ldots , X^v_{w_v}\}\), \({{\mathcal {X}}}^a = \{X^a_1, X^a_2, \ldots , X^a_{w_a}\}\), and \({{\mathcal {X}}}^b = \{X^b_1, X^b_2, \ldots , X^b_{w_b}\}\) of \(L_v\), \(L_a\), and \(L_b\), respectively. Note that \({{\mathcal {X}}}^a \cup {{\mathcal {X}}}^b\) is a partition of \(L_v\).

Observation 1

\({{\mathcal {X}}}^v\) is a partition of \(L_v\) coarser than \({{\mathcal {X}}}^a \cup {{\mathcal {X}}}^b\).

To see this, consider an arbitrary twin-class \(X^a_i\) of \(L_a\). By the definition of twin-sets, for every \(z \in V(G) \setminus L_a\), either \(X^a_i \subseteq N(z)\) or \(X^a_i \cap N(z) = \emptyset \) holds. Since \(V(G) \setminus L_v \subseteq V(G) \setminus L_a\), \(X^a_i\) is also a twin-set of \(L_v\), which implies \(X^a_i\) is included in some twin-class \(X^v_j\) of \(L_v\). This argument indeed holds for twin-classes of \(L_b\). Therefore, we have the above observation.

The intuition of our recurrence is as follows. By Observation 1, every twin-class of \(L_v\) can be obtained by merging some twin-classes of \(L_a\) and of \(L_b\). This means that every \(t_v\)-legitimate cut of \(G[L_v]\) for a valid tuple \(t_v\) for v can be obtained from some \(t_a\)-legitimate cut and \(t_b\)-legitimate cut for valid tuples for a and b, respectively. Moreover, for every pair of twin-classes \(X^a_i\) of \(L_a\) and \(X^b_j\) of \(L_b\), either there are no edges between them or every vertex in \(X^a_i\) is adjacent to every vertex in \(X^b_j\) as \(X^a_i\) is a twin-set of \(L_v\). Therefore, the number of edges in the cutset of a cut \((S, L_v \setminus S)\) between \(X^a_i\) and \(X^b_j\) depends only on the cardinality of \(X^a_i \cap S\) and \(X^b_j \cap S\) rather than actual cuts \((S \cap X^a_i, (L_a \setminus S) \cap X^a_i)\) and \((S \cap X^b_i, (L_b \setminus S) \cap X^b_i)\).

Now, we formally describe this idea. Let \(X^v\) be a twin-class of \(L_v\). We denote by \(I_a(X^v)\) (resp. \(I_b(X^v)\)) the set of indices i such that \(X^a_i\) (resp. \(X^b_i\)) is included in \(X^v\) and by \({{\mathcal {X}}}^a(X^v)\) (resp. \({{\mathcal {X}}}^b(X^v)\)) the set \(\{X^a_i : i \in I_a(X^v)\}\) (resp. \(\{X^b_i : i \in I_b(X^v)\}\)). For \(X^a \in {{\mathcal {X}}}^a(X^v)\) and \(X^b \in {{\mathcal {X}}}^a(X^v)\), we say that \(X^a\) is adjacent to \(X^b\) if every vertex in \(X^a\) is adjacent to every vertex in \(X^b\) and otherwise \(X^a\) is not adjacent to \(X^b\). This adjacency relation naturally defines a bipartite graph whose vertex set is \({{\mathcal {X}}}^a(X^v) \cup {{\mathcal {X}}}^b(X^v)\). We say that a subset of twin-classes of \({{\mathcal {X}}}^a(X^v) \cup {{\mathcal {X}}}^b(X^v)\) is non-trivially connected if it induces a connected bipartite graph with at least twin-classes. Let \(S \subseteq X^v\). To make G[S] (and \(G[X^v \setminus S]\)) connected, the following observation is useful.

Observation 2

Suppose \(S \subseteq X^v\) has a non-empty intersection with at least two twin-classes of \({{\mathcal {X}}}^a(X^v) \cup {{\mathcal {X}}}^b(X^v)\). Then, G[S] is connected if and only if the twin-classes having a non-empty intersection with S are non-trivially connected.

This observation immediately follows from the fact that every vertex in a twin-class is adjacent to every vertex in an adjacent twin-class and is not adjacent to every vertex in a non-adjacent twin-class.

Let \(t_v = (p^v_1, {\overline{p}}^v_1, \ldots , p^v_{w_v}, {\overline{p}}^v_{w_v}, c^v_1, {\overline{c}}^v_2, \ldots , c^v_{w_v}, {\overline{c}}^v_{w_v})\) be a valid tuple for v. For notational convenience, we use \(\mathbf{p}^v\) to denote \((p^v_1, {\overline{p}}^v_1, \ldots , p^v_{w_v}, {\overline{p}}^v_{w_v})\) and \(\mathbf{c}^v\) to denote \((c^v_1, {\overline{c}}^v_2, \ldots , c^v_{w_v}, {\overline{c}}^v_{w_v})\) for each node v in T. For valid tuples \(t_a = (\mathbf{p}^a, \mathbf{c}^a)\) for a and \(t_b = (\mathbf{p}^b, \mathbf{c}^b)\) for b, we say that \(t_v\) is consistent with the pair \((t_a, t_b)\) if for each \(1\le i \le w_v\),

  1. C1

    \(p^v_i = \sum _{j \in I_a(X^v_i)} p^a_j + \sum _{j \in I_b(X^v_i)} p^b_j\);

  2. C2

    \({\overline{p}}^v_i = \sum _{j \in I_a(X^v_i)} {\overline{p}}^a_j + \sum _{j \in I_b(X^v_i)} {\overline{p}}^b_j\);

  3. C3

    if \(c^v_i = 1\), either (1) \(\{X^a_j : j \in I_a(X^v), p^a_j> 0\} \cup \{X^b_j : j \in I_b(X^v), p^b_j > 0\}\) is non-trivially connected or (2) exactly one of \(\{p^s_j : s \in \{a, b\}, 1 \le j \le w_s\}\) is positive, say \(p^s_j\), and \(c^s_j = 1\);

  4. C4

    if \({\overline{c}}^v_i = 1\), either (1) \(\{X^a_j : j \in I_a(X^v), {\overline{p}}^a_j> 0\} \cup \{X^b_j : j \in I_b(X^v), {\overline{p}}^b_j > 0\}\) is non-trivially connected or (2) exactly one of \(\{{\overline{p}}^s_j : s \in \{a, b\}, 1 \le j \le w_s\}\) is positive, say \({\overline{p}}^s_j\), and \({\overline{c}}^s_j = 1\).

Lemma 13

$$\begin{aligned} {{\mathrm{mc}}}(v, t_v) = \max _{t_a, t_b} \left( {{\mathrm{mc}}}(a, t_a) + {{\mathrm{mc}}}(b, t_b) + \sum _{\begin{array}{c} X^a_i \in {{\mathcal {X}}}^a, X^b_j \in {{\mathcal {X}}}^b\\ X^a_i, X^b_j: \text {adjacent} \end{array}} (p^a_i{\overline{p}}^b_j + p^b_j{\overline{p}}^a_i) \right) , \end{aligned}$$

where the maximum is taken over all consistent pairs \((t_a, t_b)\).

Proof

We first show that the left-hand side is at most the right-hand side. Suppose \((S, L_v \setminus S)\) be a \(t_v\)-legitimate cut of \(G[L_v]\) whose size is equal to \({{\mathrm{mc}}}(v, t_v)\). Let \(S_a = S \cap L_a\) and \(S_b = S \cap L_b\). We claim that \((S_a, L_a \setminus S_a)\) is a \(t_a\)-legitimate cut of \(G[L_a]\) for some valid tuple \(t_a\) for a. This is obvious since we set \(p^a_i = |S_a \cap X^a_i|\), \({\overline{p}}^a_i = |(L_a \setminus S_a) \cap X^a_i|\), \(c^a_i = 1\) if \(G[S_a \cap X^a_i]\) is connected, and \(c^a_i = 1\) if \(G[(L_a \setminus S_a) \cap X^a_i]\) is connected, which yields a valid tuple \(t_a\) for a. We also conclude that \((S_b, L_b \setminus S_b)\) is a \(t_b\)-legitimate cut of \(G[L_b]\) for some valid tuple \(t_b\) for b. Moreover, the number of cut edges between twin-class \(X^a_i\) of \(L_a\) and twin-class \(X^b_j\) of \(L_b\) is \(|S_a \cap X^a_i|\cdot |(L_b\setminus S_b) \cap X^b_j| + |S_b \cap X^b_j|\cdot |(L_b \setminus S_a)\cap X^a_i| = p^a_i{\overline{p}}^b_j + p^b_j{\overline{p}}^a_i\) if \(X^a_i\) and \(X^b_j\) is adjacent, zero otherwise. Therefore, the left-hand side is at most the right-hand side.

To show the converse direction, suppose \((S_a, L_a \setminus S_a)\) is a \(t_a\)-legitimate cut of \(G[L_a]\) and \((S_b, L_b \setminus S_b)\) is a \(t_b\)-legitimate cut of \(G[L_b]\), where \(t_v\) is consistent with \((t_a, t_b)\) and the sizes of the cuts are \({{\mathrm{mc}}}(a, t_a)\) and \({{\mathrm{mc}}}(b, t_b)\), respectively. We claim that \((S_a \cup S_b, L_v \setminus (S_a \cup S_b))\) is a \(t_v\)-legitimate cut of \(G[L_v]\). Since \(t_v\) is consistent with \((t_a, t_b)\), for each \(1 \le i \le w_v\), we have \(p^v_i = \sum _{j \in I_a(X^v_i)} p^a_j + \sum _{j \in I_b(X^v_i)} p^b_j = \sum _{1 \le j \le w_a}|S_a \cap X^i_v| + \sum _{1 \le j \le w_b}|S_b \cap X^i_v| = |(S_a \cup S_b) \cap X^i_v|\). Symmetrically, we have \({\overline{p}}^i = |(L_v \setminus (S_a \cup S_b)) \cap X^v_i|\). If \(c^v_i = 1\), by condition C3 of the consistency, either (1) \(\{X^a_j : j \in I_a(X^v), p^a_j> 0\} \cup \{X^b_j : j \in I_b(X^v), p^b_j > 0\}\) is non-trivially connected or (2) exactly one of \(\{p^s_j : s \in \{a, b\}, 1 \le j \le w_s\}\) is positive, say \(p^s_j\), and \(c^s_j = 1\). If (1) holds, by Observation 2, \(G[(S_a \cap S_b) \cap X^i_v]\) is connected. Otherwise, as \(c^s_j = 1\), \(G[S_s \cap X^i_v] = G[(S_a \cup S_b) \cap X^v_i]\) is also connected. By a symmetric argument, we conclude that \(G[(L_v \setminus (S_a \cup S_b)) \cap X^i_v]\) is connected if \({\overline{c}}^v_i = 1\). Therefore the cut \((S_a \cup S_b, L_v \setminus (S_a \cup S_b))\) is \(t_v\)-legitimate. Since the cut edges between two twin-classes of \(L_a\) is counted by \({{\mathrm{mc}}}(a, t_a)\) and those between two twin-classes of \(L_v\) is counted by \({{\mathrm{mc}}}(b, t_b)\). Similar to the forward direction, the number of cut edges between a twin-class of \(L_a\) and a twin-class of \(L_b\) can be counted by the third term in the right-hand side of the equality. Hence, the left-hand side is at least the right-hand side.\(\square \)

Proof of Theorem 10

From a w-expression tree of G, we can obtain a decomposition tree \((T, \phi )\) of width at most w in \(O(n^2)\) time using Rao’s algorithm [52]. Based on this decomposition, we evaluate the recurrence in Lemma 13 in a bottom-up manner. The number of valid tuples for each node of T is at most \(4^wn^w\). For each internal node v and for each valid tuple \(t_v\) for v, we can compute \({{\mathrm{mc}}}(v, t_v)\) in \((4^wn^w)^2n^{O(1)}\) time. Overall, the running time of our algorithm is \(n^{O(w)}\). Let r be the root of T. For Maximum Connected Cut, by the definition of legitimate cuts, we should take the maximum value among \({{\mathrm{mc}}}(r, (i, n-i, 1, j))\) for \(1 \le i < n\) and \(j \in \{0, 1\}\). Note that as \(L_v\) has only one twin-class, the length of valid tuples is exactly four. For Largest Bond, we should take the maximum value among \({{\mathrm{mc}}}(r, (i, n-i, 1, 1))\) for \(1 \le i < n\). \(\square \)

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Duarte, G.L., Eto, H., Hanaka, T. et al. Computing the Largest Bond and the Maximum Connected Cut of a Graph. Algorithmica 83, 1421–1458 (2021). https://doi.org/10.1007/s00453-020-00789-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-020-00789-1

Keywords

Navigation