Streaming algorithms for 2-coloring uniform hypergraphs

  • Authors:
  • Jaikumar Radhakrishnan;Saswata Shannigrahi

  • Affiliations:
  • Tata Institute of Fundamental Research, Mumbai, India;Tata Institute of Fundamental Research, Mumbai, India

  • Venue:
  • WADS'11 Proceedings of the 12th international conference on Algorithms and data structures
  • Year:
  • 2011

Quantified Score

Hi-index 0.01

Visualization

Abstract

We consider the problem of two-coloring n-uniform hypergraphs. It is known that any such hypergraph with at most 1/10√n/ln n 2n hyperedges can be two-colored [7]. In fact, there is an efficient (requiring polynomial time in the size of the input) randomized algorithm that produces such a coloring. As stated [7], this algorithm requires random access to the hyperedge set of the input hypergraph. In this paper, we show that a variant of this algorithm can be implemented in the streaming model (with just one pass over the input), using space O(|V|B), where V is the vertex set of the hypergraph and each vertex is represented by B bits. (Note that the number of hyperedges in the hypergraph can be superpolynomial in |V|, and it is not feasible to store the entire hypergraph in memory). We also consider the question of the minimum number of hyperedges in non-two-colorable n-uniform hypergraphs. Erdös showed that there exist non-2-colorable n-uniform hypegraphs with O(n22n) hyperedges and Θ(n2) vertices. We show that the choice Θ(n2) for the number of vertices in Erdös's construction is crucial: any hypergraph with at most 2n2/t vertices and 2n exp(t/8) hyperedges is 2-colorable. (We present a simple randomized streaming algorithm to construct the two-coloring.) Thus, for example, if the number of vertices is at most n1.5, then any non-2- colorable hypergraph must have at least 2n exp(√n/8) ≫ n22n hyperedges. We observe that the exponential dependence on t in our result is optimal up to constant factors.