English

Perfect Matchings in \~O(n^{1.5}) Time in Regular Bipartite Graphs

Data Structures and Algorithms 2009-07-30 v2 Discrete Mathematics

Abstract

We consider the well-studied problem of finding a perfect matching in dd-regular bipartite graphs with 2n2n vertices and m=ndm = nd edges. While the best-known algorithm for general bipartite graphs (due to Hopcroft and Karp) takes O(mn)O(m \sqrt{n}) time, in regular bipartite graphs, a perfect matching is known to be computable in O(m)O(m) time. Very recently, the O(m)O(m) bound was improved to O(min{m,n2.5lnnd})O(\min\{m, \frac{n^{2.5}\ln n}{d}\}) expected time, an expression that is bounded by O~(n1.75)\tilde{O}(n^{1.75}). In this paper, we further improve this result by giving an O(min{m,n2ln3nd})O(\min\{m, \frac{n^2\ln^3 n}{d}\}) expected time algorithm for finding a perfect matching in regular bipartite graphs; as a function of nn alone, the algorithm takes expected time O((nlnn)1.5)O((n\ln n)^{1.5}). To obtain this result, we design and analyze a two-stage sampling scheme that reduces the problem of finding a perfect matching in a regular bipartite graph to the same problem on a subsampled bipartite graph with O(nlnn)O(n\ln n) edges that has a perfect matching with high probability. The matching is then recovered using the Hopcroft-Karp algorithm. While the standard analysis of Hopcroft-Karp gives us an O~(n1.5)\tilde{O}(n^{1.5}) running time, we present a tighter analysis for our special case that results in the stronger O~(min{m,n2d})\tilde{O}(\min\{m, \frac{n^2}{d} \}) time mentioned earlier. Our proof of correctness of this sampling scheme uses a new correspondence theorem between cuts and Hall's theorem ``witnesses'' for a perfect matching in a bipartite graph that we prove. We believe this theorem may be of independent interest; as another example application, we show that a perfect matching in the support of an n×nn \times n doubly stochastic matrix with mm non-zero entries can be found in expected time O~(m+n1.5)\tilde{O}(m + n^{1.5}).

Keywords

Cite

@article{arxiv.0902.1617,
  title  = {Perfect Matchings in \~O(n^{1.5}) Time in Regular Bipartite Graphs},
  author = {Ashish Goel and Michael Kapralov and Sanjeev Khanna},
  journal= {arXiv preprint arXiv:0902.1617},
  year   = {2009}
}

Comments

Added analysis of the Hopcroft-Karp algorithm on the subsampled graph