PARTITIONING PROBLEMS IN DENSE HYPERGRAPHS

Similar documents
Packing triangles in regular tournaments

HARDNESS AND ALGORITHMS FOR RAINBOW CONNECTIVITY

Can a Graph Have Distinct Regular Partitions?

Approximation of Global MAX-CSP Problems

An Algorithmic Hypergraph Regularity Lemma

Szemerédi s Lemma for the Analyst

Packing transitive triples in a tournament

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

Stability of the path-path Ramsey number

Decomposing oriented graphs into transitive tournaments

A Characterization of Easily Testable Induced Subgraphs

The Algorithmic Aspects of the Regularity Lemma

SHORT PATHS IN 3-UNIFORM QUASI-RANDOM HYPERGRAPHS. Joanna Polcyn. Department of Discrete Mathematics Adam Mickiewicz University

On a hypergraph matching problem

Discrepancy Theory in Approximation Algorithms

Large monochromatic components and long monochromatic cycles in random hypergraphs

Lecture 1 : Probabilistic Method

On the Pósa-Seymour Conjecture

Approximating sparse binary matrices in the cut-norm

REGULARITY LEMMAS FOR GRAPHS

On the Regularity Method

Approximability of Dense Instances of Nearest Codeword Problem

Rainbow Hamilton cycles in uniform hypergraphs

Coloring Simple Hypergraphs

The complexity of acyclic subhypergraph problems

Szemerédi s Lemma for the Analyst

Paul Erdős and Graph Ramsey Theory

The Erdős-Hajnal hypergraph Ramsey problem

Approximate Hypergraph Coloring. 1 Introduction. Noga Alon 1 Pierre Kelsen 2 Sanjeev Mahajan 3 Hariharan Ramesh 4

Packing k-partite k-uniform hypergraphs

R u t c o r Research R e p o r t. Uniform partitions and Erdös-Ko-Rado Theorem a. Vladimir Gurvich b. RRR , August, 2009

Every Monotone Graph Property is Testable

Rainbow Hamilton cycles in uniform hypergraphs

ATLANTA LECTURE SERIES In Combinatorics and Graph Theory (XIX)

A Characterization of the (natural) Graph Properties Testable with One-Sided Error

VERTEX DEGREE SUMS FOR PERFECT MATCHINGS IN 3-UNIFORM HYPERGRAPHS

arxiv: v2 [math.co] 20 Jun 2018

Approximating the independence number via the ϑ-function

Bounds for pairs in partitions of graphs

Homomorphisms in Graph Property Testing - A Survey

AN EXPECTED POLYNOMIAL TIME ALGORITHM FOR COLORING 2-COLORABLE 3-GRAPHS

The number of edge colorings with no monochromatic cliques

Independent Transversals in r-partite Graphs

The discrepancy of permutation families

Induced subgraphs of prescribed size

Matchings in hypergraphs of large minimum degree

Every Monotone Graph Property is Testable

1. Introduction Given k 2, a k-uniform hypergraph (in short, k-graph) consists of a vertex set V and an edge set E ( V

Szemerédi s regularity lemma revisited. Lewis Memorial Lecture March 14, Terence Tao (UCLA)

Quasi-Randomness and Algorithmic Regularity for Graphs with General Degree Distributions

Hardness and Algorithms for Rainbow Connection

On the chromatic number and independence number of hypergraph products

Quasi-randomness is determined by the distribution of copies of a fixed graph in equicardinal large sets

< k 2n. 2 1 (n 2). + (1 p) s) N (n < 1

From Primal-Dual to Cost Shares and Back: A Stronger LP Relaxation for the Steiner Forest Problem

Hardness of Submodular Cost Allocation: Lattice Matching and a Simplex Coloring Conjecture

arxiv: v1 [math.co] 1 Oct 2013

The concentration of the chromatic number of random graphs

Every Monotone Graph Property is Testable

Induced subgraphs with many repeated degrees

Decomposition of random graphs into complete bipartite graphs

Gearing optimization

Near-domination in graphs

The maximum edge biclique problem is NP-complete

arxiv: v1 [math.co] 2 Dec 2013

The Lefthanded Local Lemma characterizes chordal dependency graphs

A Separator Theorem for Graphs with an Excluded Minor and its Applications

Two-coloring random hypergraphs

Coloring Simple Hypergraphs

The Removal Lemma for Tournaments

Complexity of determining the most vital elements for the 1-median and 1-center location problems

The Erdös-Hajnal Conjecture A Survey

An Algorithmic Proof of the Lopsided Lovász Local Lemma (simplified and condensed into lecture notes)

A Different Perspective For Approximating Max Set Packing

On the size-ramsey numbers for hypergraphs. A. Dudek, S. La Fleur and D. Mubayi

A Combinatorial Characterization of the Testable Graph Properties: It s All About Regularity

Packing edge-disjoint triangles in regular and almost regular tournaments

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

On Ramsey numbers of uniform hypergraphs with given maximum degree

THE METHOD OF CONDITIONAL PROBABILITIES: DERANDOMIZING THE PROBABILISTIC METHOD

Cluster Graph Modification Problems

ON THE ERDOS-STONE THEOREM

Approximating maximum satisfiable subsystems of linear equations of bounded width

Approximation algorithms for cycle packing problems

THE SZEMERÉDI REGULARITY LEMMA AND ITS APPLICATION

Testing Equality in Communication Graphs

The Turán number of sparse spanning graphs

List coloring hypergraphs

Efficient testing of large graphs

Nonnegative k-sums, fractional covers, and probability of small deviations

On an Extremal Hypergraph Problem of Brown, Erdős and Sós

New lower bounds for hypergraph Ramsey numbers

Dominating a family of graphs with small connected subgraphs

Lecture 5: January 30

Off-diagonal hypergraph Ramsey numbers

Probabilistic Proofs of Existence of Rare Events. Noga Alon

1 Introduction Given a connected undirected graph G = (V E), the maximum leaf spanning tree problem is to nd a spanning tree of G with the maximum num

An expected polynomial time algorithm for coloring 2-colorable 3-graphs

The Effect of Induced Subgraphs on Quasi-Randomness

COMPUTATIONAL COMPLEXITY OF THE PERFECT MATCHING PROBLEM IN HYPERGRAPHS WITH SUBCRITICAL DENSITY

Transcription:

PARTITIONING PROBLEMS IN DENSE HYPERGRAPHS A. CZYGRINOW Abstract. We study the general partitioning problem and the discrepancy problem in dense hypergraphs. Using the regularity lemma [16] and its algorithmic version proved in [5], we give polynomial time approximation schemes for the general partitioning problem and for the discrepancy problem. Keywords: Partitioning problem, approximation algorithm, the regularity lemma. 1. Introduction For some NP-complete problems good approximation algorithms were developed for the dense instances of the problems. A typical example is the Max-Cut problem in which one tries to partition a vertex set of a graph into two subsets in such a way that the number of edges that have the endpoints in different sets is maximized. The Max- Cut problem is known to be NP-complete [13] and, moreover, hardness results for the corresponding approximation problem have been recently proved [3]. In contrast to the difficulty of the general case, for the dense instances of the problem (graph (V, E) has at least c V 2 edges for some positive constant c) polynomial time approximation schemes were developed. Arora et al. [2] used the sampling method to design an approximation algorithm that finds in O( V O(1/ɛ2) ) time a cut of value which is within 1 ɛ factor of the optimal. Fernandez de la Vega [8] presented a O(2 1/ɛ2 +o(1) ) algorithm which finds a cut of value within 1 ɛ factor of the optimal. Using a version of the regularity lemma Frieze and Kannan [11] gave an algorithm which finds in O(n 2.376 ) time a cut with value which is within 1 ɛ of the optimal. Other partitioning problems were also considered in [11]. In addition, both sampling method and a version of regularity combined with sampling lead to fast randomized algorithms ([11], [12]). It should be noted then in most of the applications of the regularity lemma a constant hidden in big O depends on ɛ and is enormous. However, version proposed by Frieze and Kannan has constant which is relatively small. Many of the problems for which the algorithmic version of the regularity lemma was successfully applied have interesting generalizations to hypergraphs. The situation in hypergraphs is however much more complicated and the obvious generalization of the concept of graph regularity (weak regularity) doesn t always lead to the extensions of applications for graphs. Therefore different approaches to measure the regularity of hypergraphs were developed (strong regularity) [9], [10]. 1

2 A. CZYGRINOW We should also mention that the original proof of Szemerédi [16] was not constructive, in a sense that it did not provide a polynomial time algorithm that would find a desired partition. The algorithmic version of graph regularity lemma was given by Alon, Duke, Lefmann, Rödl, and Yuster in [1] and was applied to various problems ([1], [6], [4], [11], [14]). The algorithm from [1] is based on the characterization of regularity which roughly states that a pair of sets is ɛ-regular with density d if and only if most of the vertices have degree around dn and most of the pairs of vertices have co-degree around d 2 n. This characterization does not have a natural generalization to hypergraphs, the algorithmic version of the weak regularity lemma for hypergraphs was however proved recently in [5] (see also [12]). In this paper, we will be interested in applications of the algorithmic version of hypergraph regularity lemma. We will discuss two applications, first we will concentrate on the general partitioning problem and then we will discuss the discrepancy problem. Let us start we definitions and notation. An l-uniform hypergraph is a pair H = (V, E) where V is a nonempty finite set of vertices and E is a set of l-element subsets of V called edges. We will use [k] = {1,..., k}. Definition 1. Let V 1, V 2,..., V k be pairwise disjoint nonempty subsets of the vertex set V. An edge e E is called crossing in V 1, V 2,..., V k if for every i [k], e V i 1. The number of crossing edges in V 1, V 2,..., V k will be denoted by e(v 1, V 2,..., V k ). For an l-uniform hypergraph H = (V, E) we will be interested in finding a partition of V into k (where k l) nonempty sets that maximizes the number of crossing hyperedges. For a partition V 1 V 2 V k of V define and let f(v 1, V 2,..., V k ) = {e H : e V i 1, i = 1,... k}, (1) f(h) = max f(v 1, V 2,..., V k ) (2) where the maximum is taken over all partitions of V into k nonempty sets (k is fixed and independent of the size of H). Finding the value of f(h) is NP-complete as even in the case l = k = 2, we get the well studied Max-Cut problem. Using the regularity lemma, we will device an approximation algorithm which finds a partition V 1 V 2 V k, the value of which is within ηn l of f(h). Theorem 2. For l and k l there is an algorithm which for every l-uniform hypergraph H = (V, E) with V = n and every 0 < η < 1 finds in O(n 2l 1 log 2 n) time a partition V 1,..., V k of V such that f(v 1, V 2,..., V k ) f(h) ηn l. The algorithm of Theorem 2 can be used to approximate f(h) in case when the number of edges in H is at least cn l for some positive constant c.

PARTITIONING PROBLEMS IN DENSE HYPERGRAPHS 3 Our second application concerns the discrepancy of a coloring of l-element subsets of [n]. Let χ : ( [n]) l { 1, +1} be a { 1, +1}-coloring of l-element subsets of [n]. Define the discrepancy of a set S [n] as d(s) = e S χ(e), (3) where the sum is taken over all e ( [n]) l which are contained in S and the discrepancy of the coloring χ disc(χ) = max d(s). (4) S Our problem will be to find a set S [n] that maximizes the value of d. Using the algorithmic version of the regularity lemma for hypergraphs, we will show the following hypergraph analog of the result in [4]. Theorem 3. For every l there is an algorithm which for a coloring of the l-element subsets of [n], χ : ( [n]) l { 1, +1} and 0 < η < 1 finds in O(n 2l 1 log 2 n) time a set S [n] such that d(s ) disc(χ) ηn l. Clearly, the algorithm of Theorem 3 will give meaningful results only if disc(χ) cn l for some positive constant c. If in addition c is known in advance, the algorithm can be easily modified to a polynomial time approximation scheme. 2. Preliminaries In this section, we will introduce the necessary notation and we will formulate the regularity lemma. Let H = (V, E) be an l-uniform hypergraph. For an l-tuple of pairwise disjoint nonempty sets V 1, V 2,..., V l, we define the density of (V 1, V 2,..., V l ) as d(v 1, V 2,..., V l ) = e(v 1, V 2,..., V l ) V 1 V 2... V l. An l-tuple (V 1, V 2,..., V l ) is called ɛ-regular if for every V i V i with V i ɛ V i, where i = 1,..., l, d(v 1, V 2,..., V l ) d(v 1, V 2,..., V l ) ɛ. Definition 4. A partition V 0 V 1 V t of vertex set is called ɛ-regular if the following conditions are satisfied. 1. V 0 ɛ V. 2. For every i, j [t], V i = V j. 3. All but at most ɛt l of l-tuples (V i1,..., V il ) (i 1,..., i l [t]) are ɛ-regular. The powerful lemma of Szemerédi [16] states that for every 0 < ɛ < 1 every hypergraph which is large enough admits an ɛ-regular partition into a constant number of classes.

4 A. CZYGRINOW Lemma 5. For every ɛ (0, 1) and every positive integers l and m there exist two integers N = N(ɛ, m, l) and M = M(ɛ, m, l) such that every l-uniform hypergraph with at least N vertices admits an ɛ-regular partition V 0 V 1 V t with m t M. It is essential for our algorithms (as well as for most of other applications of the regularity lemma) that the number of partition classes t + 1 depends on ɛ but not on the size of the hypergraph. Alon et al. [1] gave a O( V 2.376 ) algorithm which finds an ɛ- regular partition of graphs, Czygrinow and Rödl [5] gave a O( V 2l 1 log 2 V ) algorithm that finds an ɛ-regular partition of an l-uniform hypergraph. The result from [5] can be stated as follows. Lemma 6. For every l, m, and ɛ there exist N, M and an algorithm which for any l-uniform hypergraph H = (V, E) with V = n N finds in O(n 2l 1 log 2 n) time an epsilon-regular partition V 0 V 1 V t with m t M. We will use the algorithmic version of the lemma in both of our approximation algorithms. 3. The general partitioning problem In this section, we prove Theorem 2. Let H = (V, E) be an l-uniform hypergraph. Before the formal description let us give an idea of the algorithm. The algorithm will proceed in two steps. In the first step, it finds an ɛ-regular partition U 0 U 1 U t of the hypergraph. In the second step, it checks exhaustively all partitions into k sets which are the unions of U i s and chooses one that maximizes a function f which is an approximation of f. It will be convenient to assume that we are searching for a partition with at most k sets rather than exactly k. In case, a partition with less than k classes is found, one can increase the number of classes to k (arbitrarily) without loosing any of the crossing edges. Algorithm 1 1. Set ɛ = η 2(k+4). Find an ɛ- regular partition U 0 U 1 U t of H with t max{1/ɛ, k}. 2. Check all partitions V 1 V 2 V k that satisfy the following property: for every j = 0,..., t there is exactly one i [k] such that U j V i. Choose within these partitions a partition V 1 V 2 V k that maximizes f (V 1,..., V k ) = d(u j1,..., U jl ) V i1 U j1... V il U jl. 1 i 1 < <i l k 1 j 1 < <j l t Note that in the second step we check less than k t partitions, where both k and t are constants independent of n. Thus, the complexity of the algorithm is determined by the first step and is O(n 2l+1 log 2 n). First, we will show that f is maximized for partitions considered in the second step of the algorithm.

PARTITIONING PROBLEMS IN DENSE HYPERGRAPHS 5 Fact 7. For every partition V 1 V k and for every j [t] there exists i [k] such that f (V 1,..., V k ) f (V 1 \ U j,... V i 1 \ U j, V i U j, V i+1 \ U j,..., V k \ U j ). Proof. By definition, f (V 1,..., V k ) = 1 i 1 < <i l k 1 j 1 < <j l t d(u j1,..., U jl ) V i1 U j1... V il U jl. Divide the summation on the right hand side of (5) into two sums. where f 1 and f 2 f 1 (V 1,..., V k ) = f (V 1,..., V k ) = f 1 (V 1,..., V k ) + f 2 (V 1,..., V k ) (6) are defined as k d(uj, U j1,..., U ) V jl 1 i U j V i1 U j1... V U il 1 j, l 1 (7) i=1 where the second sum is taken over all (i 1,..., i l 1 ) such that 1 i 1 < < i l 1 k with i α i and all (j 1,..., j l 1 ) such that 1 j 1 < < j l 1 t with j α j. f2 (V 1,..., V k ) = d(u j1,..., U jl ) V i1 U j1... V il U jl. 1 i 1 < <i l k 1 j 1 < <j l t,j α j (8) Then (7) can be written as k f1 (V 1,..., V k ) = V i U j d(u j, U j1,..., U jl 1 ) V i1 U j1... V il 1 U jl 1. i=1 (9) Since k i=1 V i U j = U j there exists i [k] such that f 1 (V 1,..., V k ) U j 1 i 1 < <i l 1 k,i α i d(u j, U j1,..., U jl 1 ) V i1 U j1... V il 1 U jl 1, (10) and the right hand side of (10) is equal to f 1 (V 1 \ U j,... V i 1 \ U j, V i U j, V i+1 \ U j,..., V k \ U j ). Since the right hand side (8) does not involve U j at all, we have f 2 (V 1,..., V k ) = f 2 (V 1 \ U j,... V i 1 \ U j, V i U j, V i+1 \ U j,..., V k \ U j ). Therefore, by (5), f (V 1,..., V k ) f (V 1 \ U j,... V i 1 \ U j, V i U j, V i+1 \ U j,..., V k \ U j ). (5) In our next lemma, we will show that f (V 1,..., V k ) is a good approximation of f(v 1,..., V k ).

6 A. CZYGRINOW Lemma 8. For every partition V 1 V 2 V k of V, we have f(v 1,..., V k ) f (V 1,..., V k ) + ɛ(4 + k)n l. Proof. Let F be the set of crossing edges in V 1 V 2 V k, that is F = {e E : e V i 1, i = 1..., k} (11) To show that f is an ɛ-approximation of f we will use a five step process. In each step, we define the set F i and f i = {e F i } and show that f i is a good approximation of f i 1 (with f 0 = f). Let F 1 be the subset of F of the edges that are crossing in U 1, U 2,..., U t and let f 1 (V 1,..., V k ) = F 1. Fact 9. f(v 1,..., V k ) f 1 (V 1,..., V k ) + ɛn l. Proof. Clearly the number of edges that are non-crossing in U 1,..., U t is at most t t l 2 ( n t )l nl t ɛn l. Let F 2 F 1 be the set of the edges that are not adjacent to the exceptional class U 0 and let f 2 (V 1,..., V k ) = {e F 2 }. Fact 10. f 1 (V 1,..., V k ) f 2 (V 1,..., V k ) + ɛn l. Proof. The total number of edges that are adjacent to U 0 is at most U 0 n l 1 ɛn l. Let F 3 F 2 be the set of edges that are the crossing edges of ɛ-regular l-tuples and let f 3 (V 1,..., V k ) = {e F 3 }. Fact 11. f 2 (V 1,..., V k ) f 3 (V 1,..., V k ) + ɛn l. Proof. Indeed, the number of edges that occur in ɛ-irregular l-tuples is at most ɛt l ( n t )l ɛn l, as we have at most ɛt l irregular l-tuples. Let R be the set of (j 1,..., j l ) which are such that (U j1,..., U jl ) is ɛ-regular and 1 j 1 < < j l t. Note that f 3 (V 1,..., V k ) = e(v i1 U j1,..., V il U jl ). (12) 1 i 1 < <i l k (j 1,...,j l ) R In the next fact, we exclude the edges that are adjacent to small intersections, that is adjacent to V iα U jα such that V iα U jα < ɛ U jα. Let F 4 = {e F 3 : iα,j α (e (V iα U jα ) V iα U jα ɛ U jα )} and f 4 (V 1,..., V k ) = {e F 4 }. Fact 12. f 3 (V 1,..., V k ) f 4 (V 1,..., V k ) + ɛkn l. Proof. If V iα U jα < ɛ U jα ɛ n t then the number of crossing edges adjacent to V i α U jα is at most V iα U jα n l 1 ɛ nl t. Since we have t k intersections V i α U jα the number of edges e F 3 \ F 4 is at most t k ɛ nl t = ɛkn l. In the next fact, we will approximate f 4 (V 1,..., V k ) with f (V 1,..., V k ).

PARTITIONING PROBLEMS IN DENSE HYPERGRAPHS 7 Fact 13. f 4 (V 1,..., V k ) f (V 1,..., V k ) + ɛn l. Proof. Let (U j1,..., U jl ) be an ɛ-regular l-tuple. If for (V i1,..., V il ) we have then by the ɛ-regularity, U jα V iα ɛ U jα (13) e(v i1 U j1,..., V il U jl ) = d(v i1 U j1,..., V il U jl ) V i1 U j1... V il U jl (d(u j1,..., U jl ) + ɛ) V i1 U j1... V il U jl. Thus by (12) and the fact that for the terms in f 4 (V 1,..., V k ) condition (13) is always satisfied, we have f 4 (V 1,..., V k ) d(u j1,..., U jl ) V i1 U j1... V il U jl +ɛ V i1 U j1... V il U jl d(u j1,..., U jl ) V i1 U j1... V il U jl +ɛn l = f (V 1,..., V k )+ɛn l. 1 i 1 < <i l k 1 j 1 < <j l t Combining Fact 9, Fact 10, Fact 11, Fact 12, and Fact 13 gives f(v 1,..., V k ) f (V 1,..., V k ) + ɛ(4 + k)n l. Similarly one can show the following lemma. Lemma 14. For every partition V 1 V 2 V k f (V 1,..., V k ) f(v 1,..., V k ) + ɛ(4 + k)n l. Proof of Theorem 2. Let V 1 V k be an optimal partition, that is f(h) = f( V 1,..., V k ), and let V 1 V k be the partition found by Algorithm 1. Then by Lemma 8 Using Fact 7, we have and by Lemma 14 Combining (14) with (15) and (16) gives Since ɛ = f( V 1,..., V k ) f ( V 1,..., V k ) + ɛ(4 + k)n l. (14) f ( V 1,..., V k ) f (V 1,..., V k ), (15) f (V 1,..., V k ) f(v 1,..., V k ) + ɛ(4 + k)n l. (16) f( V 1,..., V k ) f(v 1,..., V k ) + 2ɛ(4 + k)n l. η 2(4+k), we have f(v 1,..., V k ) f(h) ηn l.

8 A. CZYGRINOW 4. Discrepancy In this section, we consider the algorithmic approach to the discrepancy problem for hypergraphs. Our main aim is to prove Theorem 3, that is, we want to present an algorithm which for every 0 < η < 1 finds S such that d(s ) disc(χ) ηn l. (17) Proof of Theorem 3. Let us define the following hypergraphs. H 1 = ([n], χ 1 (1)), (18) H 1 = ([n], χ 1 ( 1)). (19) Clearly χ 1 ( 1) χ 1 (1) = ( [n]) l. It will be convenient to introduce some additional notation. For S [n] let h 1 (S) be the number of e ( [n]) l, such that e S and χ(e) = 1, and similarly let h 1 (S) be the number of e ( [n]) l such that e S and χ(e) = 1. Then d(s) = h 1 (S) h 1 (S). (20) For an l-tuple of pairwise disjoint sets (V 1, V 2,..., V l ) we will denote by h 1 (V 1,..., V l ) the number of crossing edges e in V 1,..., V l such that χ(e) = 1, h 1 (V 1,..., V l ) is defined in the analogous way. Similarly as in Section 3 the algorithm proceeds in two steps. In the first step, it finds an ɛ-regular partition (where ɛ depends on η) of H 1 and in the second step it finds a set S that maximizes an appropriately defined approximation of d. Algorithm 2 1. Set ɛ = η 18. Find an ɛ-regular partition U 0, U 1,... U t with t 1 ɛ of H 1. 2. Check all of the sets S = j L U j where L [t] and choose one that maximizes d (S) = (2d j1,j 2,...,j l 1) S U j1 S U j2... S U jl, 1 j 1 < <j l t where d j1,j 2,...,j l is the density of (U j1,..., U jl ) in H 1. Note that the complexity of the procedure is O(n 2l+1 log 2 n) as in the second step, we check 2 t sets S and t is a constant which depends only on ɛ. The proof of the correctness of the algorithm will be divided into two steps. Similarly as in [4], we will first establish a combinatorial fact which shows there is a set S which is the union of U i s and for which d (S ) = max S [n] d (S) and then we will show that d is a good approximation of d. Fact 15. For any 1 j t, and set S [n], d (S) max(d (S U j ), d (S \ U j )).

Proof. First assume that Then where and Then If then PARTITIONING PROBLEMS IN DENSE HYPERGRAPHS 9 1 j 1 < <j l t 1 j 1 < <j l t d 1 = In this case If then and so d 2 = (2d j1,j 2,...,j l 1) S U j1 S U j2... S U jl 0. (21) (2d j1,j 2,...,j l 1) S U j1 S U j2... S U jl = d 1 + d 2 d 1 = S U j 1 j 1 < <j l t,j α j S U j U j S U j Combining (25) with (27) gives 1) S U j S U j1... S U jl 1 (22) (2d j1,j 2,...,j l 1) S U j1 S U j2... S U jl. (23) 1) S U j1... S U jl 1. (24) 1) S U j1... S U jl 1 0 1) S U j1... S U jl 1 1) S U j1... S U jl 1. d (S) d (S U j ). (25) 1) S U j1... S U jl 1 < 0 1) S U j1... S U jl 1 0, (26) d (S) d (S \ U j ). (27) d (S) max(d (S U j ), d (S \ U)).

10 A. CZYGRINOW In case the term on the right hand side of (21) is negative the proof can be repeated with minor changes. We will next show that d is a good approximation of d. Lemma 16. For every set S [n], we have d(s) d (S) 9ɛn l. Proof. Let us first estimate the number of edges incident to U 0 and the number of edges that are not crossing in U 1,..., U t. Since d(s) = h 1 (S) h 1 (S), we have d(s) (h 1 (S U j1,..., S U jl ) h 1 (S U j1,..., S U jl )) 1 j 1 <j 2 < <j l t U 0 n l 1 + t( n t 2 ) n l 2. (28) Since 1/t ɛ and U 0 ɛn, we can further estimate the right hand side of (28) d(s) 1 j 1 <j 2 < <j l t (h 1 (S U j1,..., S U jl ) h 1 (S U j1,..., S U jl )) 3ɛ 2 nl. (29) Now, we will disregard edges in irregular l-tuples and edges adjacent to small intersections. We have h 1 (S U j1,..., S U jl ) h 1 (S U j1,..., S U jl ) S U j1... S U jl, which in case when for some j α, S U jα ɛ U jα gives h 1 (S U j1,..., S U jl ) h 1 (S U j1,..., S U jl ) ɛ nl t l. (30) Since we have at most ɛt l, ɛ-irregular l-tuples (U j1,..., U jl ), the right hand side of (29) can be further estimated as follows. d(s) (h 1 (S U j1,..., S U jl ) h 1 (S U j1,..., S U jl )) ɛt l nl t l + t l ɛnl t l where the summation is taken over set R of all l-sets {j 1,..., j l } such that 1. (U j1,..., U jl ) is ɛ-regular, and 2. S U j1 ɛ U j1,..., S U jl ɛ U jl. Thus, we have d(s) R (h 1 (S U j1,..., S U jl ) h 1 (S U j1,..., S U jl )) 7ɛ 2 nl. + 3ɛ 2 nl, (31) (32)

In the similar way, we can show that PARTITIONING PROBLEMS IN DENSE HYPERGRAPHS 11 d (S) R (2d j1,...,j l 1) S U j1... S U jl 7ɛ 2 nl. (33) Note that if (U j1,..., U jl ) is ɛ-regular in H 1 with density d j1,...,j l then it is also ɛ-regular in H 1 with density 1 d j1,...,j l. Thus h 1 (S U j1,..., S U jl ) h 1 (S U j1,..., S U jl ) = d(s U j1,..., S U jl ) S U j1... S U jl (1 d(s U j1,..., S U jl )) S U j1... S U jl = (2d(S U j1,..., S U jl ) 1) S U j1... S U jl. In case {j 1,..., j l } R, Therefore, d(s U j1,..., S U jl ) d j1,...j l ɛ. R (2d(S U j1,..., S U jl ) 1) S U j1... S U jl R (2d j1,...,j l 1) S U j1... S U jl R 2(d(S U j1,..., S U jl ) d j1,...j l ) S U j1... S U jl 2ɛt l ( n t )l = 2ɛn l. (34) Combining (32), (33), with (34) yields d(s) d (S) 9ɛn l. To finish the proof of Theorem 3, we observe that if S is the set found by Algorithm 2 then by Fact 15 d (S ) d (S) for every set S [n]. We denote by S an optimal set, that is Then which by Lemma 16 gives Using Fact 15, we have d( S) = disc(χ). (35) d(s ) d (S ) d (S ) d(s ), and so by applying Lemma 16 again, we get d(s ) d (S ) 9ɛn l. (36) d(s ) d ( S) 9ɛn l, (37) d(s ) d( S) 18ɛn l = disc(χ) ηn l.

12 A. CZYGRINOW References [1] N. Alon, R.A. Duke, H. Lefmann, V. Rödl and R. Yuster, The algorithmic aspects of the Regularity Lemma, Journal of Algorithms 16 (1994) pp. 80-109. [2] S. Arora, D. Krager and M. Karpinski, Polynomial time approximation schemes for dense instances of NP-hard problems, Proceedings of the 27th Annual ACM Symposium on Theory of Computing (1995), pp. 284-293. [3] S. Arora, C. Lund, R. Motwani, M. Sudan, and M. Szegedy, Proof verification and hardness of approximation problems, Proceedings of the 33rd IEEE Symposium on Foundations of Computing (1992), pp. 14-23. [4] A. Czygrinow, S. Poljak and V. Rödl, Constructive Quasi-Ramsey numbers and tournament ranking, SIAM Journal on Discrete Mathematics 12, (1999), No 1, 48-63. [5] A. Czygrinow, V, Rödl, An algorithmic regularity lemma for hypergraphs, to appear in SIAM Journal on Computing. [6] R.A. Duke, H. Lefmann and V. Rödl, A fast algorithm for computing frequencies in a given graph, SIAM Journal on Computing 24 (3), (1995), pp. 598-620. [7] P. Erdös and J. Spencer,Probabilistic Methods in Combinatorics, Academic Press New York,1974. [8] W. Fernandez de la Vega, MAX-CUT has an approximation scheme in Dense graphs, Random Structures and Algorithms, Vol. 8, No. 3, pp. 187-198. [9] P. Frankl and V. Rödl, The Uniformity Lemma for Hypergraphs, Graphs and Combinatorics, (1992) 8, pp. 309-312. [10] P. Frankl and V. Rödl, Extremal problems on set systems, preliminary version (1996). [11] A. Frieze and R. Kannan, The Regularity Lemma and Approximation schemes for dense problems, Proc 37th FOCS, (1996), pp. 12-20. [12] A. Frieze and R. Kannan, Quick approximation to matrices and applications, preliminary version(february 1997) [13] M. R. Garey and D. S. Johnson,Computers and Intractability. A Guide to the Theory of NP- Completeness,W.H. Freeman, San Francisco, 1979. [14] P. Haxell and V. Rödl, Integer and Fractional Packing in Dense Graphs, preliminary version (1998). [15] S. Poljak, V. Rödl and J. Spencer, Tournament ranking with expected profit in polynomial time, SIAM Journal on Discrete Mathematics Vol 1, No 3 (1988), pp. 372-376. [16] E. Szemerédi, Regular Partitions of Graphs, Colloques Internationaux C.N.R.S., Problemes Combinatories et Theorie des Graphes, (1978), pp. 399-402. Dept. of Mathematics, Arizona State University, Tempe AZ, 58287-1804