Bipartite Subgraphs of Integer Weighted Graphs Noga Alon Eran Halperin February, 00 Abstract For every integer p > 0 let f(p be the minimum possible value of the maximum weight of a cut in an integer weighted graph with total weight p. It is shown that for every large n and every m < n, f( n + m = n + min( n, f(m. This supplies the precise value of f(p for many values of p including, e.g, all p = ( n + ( m when n is large enough and m n. 1 Introduction All graphs in this paper contain no loops. maximum number of edges in a bipartite subgraph of G. For a simple graph G = (V, E, let f(g denote the For every p > 0, let g(p denote the minimum value of f(g, as G ranges over all simple graphs with p edges. Thus, g(p is the largest integer such that any simple graph with p edges contains a bipartite subgraph with at least g(p edges. There are several papers providing bounds for g(p, see, e.g, [1]-[5]. Edwards [],[3] proved that for every p g(p p + 1 + 8 p + 1. 8 Equality holds for all complete graphs. Alon [1] showed that there is a positive constant C so that g(p p + p 8 + C p1/, for all p. He also proved that there is a positive constant c and infinitely many positive integers p satisfying g(p p + p 8 + c p1/. Department of Mathematics, School of Mathematical Sciences, Raymond and Beverly Sackler Faculty of Exact Sciences, Tel Aviv University, Tel Aviv 69978, Israel. E-mail address : noga@math.tau.ac.il. Department of Computer Science, School of Mathematical Sciences, Raymond and Beverly Sackler Faculty of Exact Sciences, Tel Aviv University, Tel Aviv 69978, Israel. E-mail address : heran@math.tau.ac.il. Final version: to appear in Discrete Mathematics. 1
We raise the following conjecture: Conjecture 1.1 For every n and for every 0 m < n, g( ( n + m = n + min( n, g(m. If Conjecture 1.1 is true then given p, we can construct an extremal graph G = (V, E with p edges for which f(g = g(p as follows. Let n 1 be the greatest integer such that ( n 1 p and let p 1 = p ( n 1. For every i > 1 define, by induction, ni to be the greatest integer such that ( ni pi 1 if p i 1 > 0 and n i = 0 otherwise and let p i = p i 1 ( n i. Let k be an integer such that n 1 + n +... + n k 1 + n k + n k is minimal. If Conjecture 1.1 is true then g(p = n 1 + n +... + n k 1 + n k + n k. For every 1 i < k let G i be the complete graph on n i vertices. Let G k be an arbitrary simple graph on n k + 1 vertices with p k 1 edges. If Conjecture 1.1 is true, then an extremal graph G is obtained by taking the disjoint union of G 1, G,..., G k. An integer weighted graph is a graph G = (V, E in which each edge has a (not necessary positive integral weight. For an integer weighted graph G = (V, E, let f(g denote the maximum total weight in a bipartite subgraph of G. For every p > 0, let f(p denote the minimum value of f(g, as G ranges over all integer weighted graphs with total weight p. Thus, f(p is the largest integer such that any integer weighted graph with total weight p contains a bipartite subgraph with total weight no less than f(p. The following conjecture is stronger than Conjecture 1.1: Conjecture 1. for every n and for every 0 m < n f( ( n + m = n + min( n, f(m. If Conjecture 1. is true then so is Conjecture 1.1 and this implies that f(p = g(p for every p > 0. Therefore, we consider the function f here and prove the following theorem: Theorem 1.3 Let G = (V, E be an integer weighted graph with total weight ( n + m, where 0 m < n. Then f(g n + min( n, f(m, provided n is sufficiently large. Therefore, f( ( n + m = n + min( n, f(m. In Section we give an outline of the proof of Theorem 1.3, and Section 3 describes the complete proof of the theorem. An Outline of the Proof It is obvious that f( ( n + m n + min( n, f(m because we can construct integer weighted graphs implying the inequality. Thus it suffices to prove the first part of the theorem, i.e, to prove that given an integer weighted graph G = (V, E with weight function w and with total weight ( n + m, f(g n + min( n n, f(m. We assume that f(g < + min( n, f(m and get a contradiction.
To do so, we first observe that nonpositive weighted edges can be contracted, and therefore we can assume that V n and that for every u, v V, w(u, v > 0. Next we show in Corollary 3. and Lemma 3.3 that there is a small set U V such that for every u, v V \ U we have w(u, v = 1. We view the graph G as a complete graph with another graph on top of it (the multiple edges, where every vertex of U represents a set of vertices in this virtual graph which are forced to be in the same side in every bipartite graph that we take, while every vertex of V \ U represents one vertex in the virtual graph. If v i U and the average weight of the edges (v, v i where v V \ U is d i, then v i represents a set of d i vertices in this virtual graph. We next show (see Lemma 3.6 that in this way the number of represented vertices is at least n, since otherwise the total weight of the edges is less then ( n + m, contradicting the assumption. Next, it is shown that there are two possible cases. The first is that most of the vertices behave as we view them, i.e for most of the vertices of V \ U the weight of the edges between them and a vertex of U is the average weight of the edges between that vertex and V \U. In this case, it is shown in Corollary 3.9 that the number of represented vertices is at most n and thus is exactly n. We take the graph which is on top of the complete graph and find a large weighted bipartite subgraph in this graph and then we add the vertices which are not in this graph and get, using the induction hypothesis, a bipartite subgraph with sufficiently large total weight. In the second case (see Lemma 3.7 and Lemma 3.8 it is shown that w(u, V \ U is very large. In this case we take the n vertices of V \ U connected to U by the heaviest edges and put them in one side and all the other vertices in the other side. As a result of the fact that the total weight w(u, V \ U of edges between U and V \ U is very large, we get a bipartite subgraph of sufficiently large weight. 3 The proof of the main Theorem We start with some definitions. Let G = (V, E be an integer weighted graph with weight function w : E Z. Let r be defined by the following equation: f(m = m + r. It is easy and known (see [1] that g(m m + m 8 + C m 1 where C is an absolute constant. Since f(m g(m, r m 8 + C m 1. For every two sets of vertices U, W let w(u, W denote the total weight of the edges with one end in U and the other end in W, i.e w(u, W = u U,w W w(u, v. If U or W are singletons we write the vertex they contain instead of the corresponding sets. Define a 3
multimatching M of G to be a partition of the vertices of G into pairs except for maybe one vertex if V is odd. If v, u V and (v, u M we say that v is matched with u by M. The value of the multimatching M is defined to be : M = (v,u M (w(v, u 1 A maximum multimatching is a multimatching of maximum value. It is obvious that n f( + m n + min( n, f(m because we can actually construct integer weighted graphs implying the inequality. Therefore it suffices to prove that given an integer weighted graph G = (V, E with weight function w and with total weight ( n + m, f(g n + min( n, f(m. Assume G has total weight ( n +m and f(g < n +min( n, f(m. We assume that for every v, u V w(v, u > 0, since otherwise we could define a new graph G by contracting the vertices v, u into one vertex v, thus getting that the total weight of G is not less than the total weight of G. We can reduce weight from G to get a graph G with total weight equal to that of G and with f(g f(g. Thus, we assume without loss of generality that G is a multigraph such that any two vertices of G are connected by at least one edge. In such a multigraph with p edges it is known (see [] that f(g p + p 8 O(1. Therefore, r m 8 O(1 and thus r is m (1 + o(1. Suppose then that V = {v 1, v,..., v n k } where k 0 by the above observations. We need a lemma about multimatchings: Lemma 3.1 Let H = (V, E be a multigraph with w(u, v > 0 for every u, v V and let M be a maximum multimatching in H. If V is even then E ( V 1 ( M + V E V ( M + ( V 1.. If V is odd then Proof: First, assume that V is even. Let (u 1, w 1,..., (u l, w l be the pairs in the multimatching M, where l = V. for every i j we have because of the maximality of M. w({u i, w i }, {u j, w j } (w(u i, w i + w(u j, w j So, if we sum up over all 1 i j t we have E ( (l 1 + 1 ( M + l = ( V 1 ( M + V. If V is odd we can add a vertex u to V and add an edge (u, v for every v V. So, by the first part of the lemma, the number of edges V +1 V +1 V 1 in the new graph is bounded by ( V ( M +, so E V ( M + V = V ( M + Let M be a maximum multimatching in G. We next prove two simple bounds on the value of M.
Corollary 3. M k. Proof: Thus, M k. By Lemma 3.1 we have: M + n k E n k = m + ( k ( + n k + k (n k n k + k 1 n k Lemma 3.3 M k+r. Proof: Assume M > k+r. If we take the pairs of M in a greedy way we get: f(g E + M + n k 1 = n + m k + 1 + M n + f(m By Corollary 3. and Lemma 3.3 we have the following corollary: Corollary 3. k r. Let a := M k, then M = k+a, and by Lemma 3.3 and Corollary 3. k a r. Let U = {v V u, (v, u M and w(v, u > 1}. Let t denote the size of U. We have t M = k+a. We assume without loss of generality that U = {v 1,..., v t }. For every 1 i t define h i and d i to be the integers such that w(v i, V \ U = d i V \ U + h i where h i V \U V \U (in case h i = let h i be positive. Furthermore, let x i denote the number of vertices v V \ U such that w(v, v i d i. Lemma 3.5 Let v i U. Let v j be the matched vertex of v i in M. Then max( h i, x i r a + w(v i, v j. Proof: Without loss of generality, w(v i, v t+1 w(v i, v t+... w(v i, v n k. Let p := r a + w(v i, v j. We show that max( h i, x i p. Let A 1 = {v t+1,..., v t+p+1 }. Let A = {v n k p,..., v n k }. Let B 1 = A 1 and B = A {v i } and add v j to B 1 or to B with equal probability. Now, the expected value of w(b 1, B is: w(a 1, A + w(v i, A 1 + w(v j, {v i } A 1 A As A 1, A V \ U, the subgraph of G induced on A 1 A is a complete graph on p + vertices. Thus, w(a 1, A = w(a 1 A + A 1. Furthermore, w(v i, A 1 = w(v i,a 1 A + w(v i,a 1 w(v i,a and w(a 1 A {v i, v j } = w(a 1 A + w(v i, A 1 A + w(v j, {v i } A 1 A. Therefore, the expected value of w(b 1, B is: w(a 1 A + A 1 + w(v i, A 1 A + w(v i, A 1 w(v i, A + w(v j, {v i } A 1 A = w(a 1 A {v i, v j } + A 1 + (w(v i, A 1 w(v i, A 5
If w(v t+p+1, v i > w(v n k p, v i then w(v i, A 1 w(v i, A p + 1. see that w(v i, A 1 w(v i, A max( h i, x i. w(v i, A 1 w(v i, A p + 1 in both cases. Otherwise it is easy to Now, if the lemma was false then we have If we continue to join in a greedy way the other pairs of M trying to maximize the weight in the cut we get a bipartite graph of size at least E + A 1 + w(v i, A 1 w(v i, A + n k A 1 A 1 + M (w(v i, v j 1 n + m 1 + p + 1 + a w(v i, v j contradiction. n + m + r, Lemma 3.6 t (d i 1 k. Proof: Assume that t (d i 1 k 1. By Lemma 3.1 we have w(u ( t 1 ( M + t (1 also, w(v \ U = n k t By the definition of d i and h i we know that w(v \ U, U = t (d i V \ U + h i. Now, ( w(v \ U, U = = t ((d i 1 V \ U + h i + t V \ U t V \ U (d i 1 + h i + t V \ U t t (k 1 (n k t + h i + t (n k t It is easy to see that by Lemma 3.5 we have t h i M + t + (r a t By the last inequality and by equations (1 and ( we get that E n k t ( t 1 ( M + t + + (k 1 (n k t + 6
+ M + t + (r a t + t (n k t n k t t = ( + t (n k t + + + (k 1(n k + M + t ( M k + + r a n k = + (k 1 (n k + M + t ( r a + k + M n k = + (k 1 (n k + k + a + t ( r k + n k + (k 1 (n k + k + r + (k + r ( r k + k E m n + 7 k + 5 r + r k If k = then the last expression attains its maximum value which is E m n + + 5 r r + < E The last inequality follows from the fact that n is large enough, m < n and r = m (1 + o(1. Lemma 3.7 k a. Proof: Assume the opposite, i.e k > a. By Lemma 3.1 we have w(u ( t 1 ( M + t = t (k + a k+a + ( t (. Also, we have w(v \ U = n k t. Hence, w(u, V \ U = = E w(v \ U w(u n k t E (t (k + a k + a t + = (n k t( t + k + t k + = (n k t( t + k + t (k a + k + m t (k + a + k + a k + m + k + a As a k and t k+a we get that t (k a k a.combining with the last inequality we get: Now, if k > a then it follows that w(u, V \ U (n k t( t + k + m + k a w(u, V \ U (n k t ( t + k + m (3 7
Without loss of generality, U = {v 1,..., v t } and w(v t+1, U w(v t+, U... w(v n k, U. Let A = {v t+1,..., v t+ n }. If w(v t+ n, U t + k + 1 we get that w(v t+i, V \ A n + 1 for every 1 i n, and then f(g w(a, V \ A n ( n + 1 = n + n Otherwise, for every n + 1 i n k t we have w(v t+i, U t + k and therefore w(v \ (U A, U ( t + k V \ (U A = ( t + k ( n t k. Thus, by this observation and inequality (3 we get: f(g w(a, V \ A = w(a, V \ (U A + w(v \ U, U w(v \ (U A, U n ( n t k + (n k t ( t + k + m (( t + k ( n t k = m + n n n + f(m Lemma 3.8 t x i n k t. Proof: For every 1 i t let u i be the matched vertex of v i. Using Lemma 3.5 we get: t k + t + x i t k + t + ( r a + w(v i, u i = k + t + t (r a + M As a result of this and the fact that M = k+a and t M we have: t k + t + x i k + 3 a + (k + a (r a By Lemma 3.7 and by inequality (3 we get that k + t + t x i ( + a + a (1+ 1 (r a. If a = r + then the expression ( + a + a (1+ 1 (r a attains its maximum value which is r 1+ 1 8 + r ( + + 8 (1 + 1 which is at most n, (since n is sufficiently large. As a result of the lemma we have the following corollary: 8
Corollary 3.9 t (d i 1 k. Proof: Let A = {v V \ U w(v, v i = d i for 1 i t}. By Lemma 3.8, A n. Let B A with B = n. Then, t f(g w(b, V \ B = ( (d i 1 + n k n Thus, if t (d i 1 > k then G is not a counter example to the theorem. We are now ready to prove the main theorem. For every v i U put d vi = d i. For every v V \ U let d v = 1. Note that by Corollary 3.9 and by Lemma 3.6 we have v V d v = n. For every A V define d A = v A d v. For every A, B V let C(A, B = w(a, B d A d B. By Corollary 3.9 and Lemma 3.6 we have u,v V C(u, v = E u,v V (d v d u m. Let B = {v V u V s.t C(u, v 0} U. By Lemma 3.8 we have V \ B n. Let H be the subgraph of G induced on B. We have u,v B C(u, v = u,v V C(u, v m. H with the weight function C is an integer weighted graph and therefore f(h f(m. Thus H contains a bipartite subgraph with total weight at least f(m, i.e there are two disjoint sets B 1, B B with C(B 1, B f(m. Now, w(b 1, B = C(B 1, B + d B1 d B f(m + d B1 d B. Let T be the union of B 1 and ( n d B 1 vertices of V \ B. Then, f(g w(t, V \ T = = w(b 1, B + ( n d B 1 d B + ( n d B d B1 + ( n d B 1 ( n d B = w(b 1, B + n d B 1 d B n + f(m Concluding Remarks The proof of the theorem holds only for large n. It seems plausible that its assertion holds also for smaller n. Nevertheless, Theorem 1.3 gives us the ability to find the exact values of f(p for infinitely many values of p. In all these cases we can even find the exact value of g(p because g(p f(p and we can find a simple graph G with p edges and with f(g = f(p, concluding that f(p g(p f(g = f(p. The following proposition, illustrating this reasoning, is a consequence of Theorem 1.3 and the fact (proved in [], [] that g( ( n = n for every n : 9
Proposition.1 For every sufficiently large n and for all s satisfying s n, we have f( ( n ( + s ( = g( n ( + s = n + s. We can also deduce from Theorem 1.3: Proposition. For all sufficiently large n and for all m < n satisfying m + 1+ 8 m+1 8 > n we have f( ( n ( + m = g( n + m = (n+1. It would be nice to prove Conjecture 1.1 and Conjecture 1. for all n. Another fact which is a consequence of the proof of Theorem 1.3 is that if we define a function h(p as we did for g and f, but where the minimum is taken over all multigraphs, then by the observation in the beginning of the proof of Theorem 1.3 we get that g(p = h(p for every p 1. References [1] N. Alon, Bipartite subgraphs, Combinatorica 16 (1996, 301-311. [] C.S.Edwards Some extremal properties of bipartite subgraphs Canadian Journal of Mathematics 3 (1973, 75-85. [3] C.S.Edwards An improved lower bound for the number of edges in a largest bipartite subgraph Proc. nd Czechoslovak Symposium on Graph Theory, Prague, (1975, 167-181. [] P. Erdős, A. Gyárfás and Y. Kohayakawa, The size of the largest bipartite subgraph, to appear in Discrete Mathematics. [5] S. Poljak and Zs. Tuza, The max cut problem - a survey, In: DIMACS Series in Discrete Mathematics, (W. Cook, L. Lovász and P. D. Seymour, eds., AMS Press, to appear. 10