Speeding up Graph Algorithms via Switching Classes
Given a graph G, a vertex switch of \(v \in V(G)\) results in a new graph where neighbors of v become nonneighbors and vice versa. This operation gives rise to an equivalence relation over the set of labeled digraphs on n vertices. The equivalence class of G with respect to the switching operation is commonly referred to as G’s switching class. The algebraic and combinatorial properties of switching classes have been studied in depth; however, they have not been studied as thoroughly from an algorithmic point of view. The intent of this work is to further investigate the algorithmic properties of switching classes. In particular, we show that switching classes can be used to asymptotically speed up several super-linear unweighted graph algorithms. The current techniques for speeding up graph algorithms are all somewhat involved insofar that they employ sophisticated pre-processing, data-structures, or use “word tricks” on the RAM model to achieve at most a \(O(\log (n))\) speed up for sufficiently dense graphs. Our methods are much simpler and can result in super-polylogarithmic speedups. In particular, we achieve better bounds for diameter, transitive closure, bipartite maximum matching, and general maximum matching.
- 1.Balas, E., Niehaus, W.: Finding large cliques in arbitrary graphs by bipartite matching. In: Johnson, D.S., Trick, M.A. (eds.) Cliques, Colouring, and Satisfiability, Second DIMACS Implementations Challenge. DIMACS Series in Discrete Mathematics and Theoretical Computer Science, vol. 26, pp. 29–52. American Mathematical Society, Providence (1996)Google Scholar
- 2.Cheng, Y., Wells, A.L.: Switching classes of directed graphs. J. Comb. Theory, Ser. B 40(2), 169–186 (1986). http://www.sciencedirect.com/science/article/pii/0095895686900754 zbMATHMathSciNetCrossRefGoogle Scholar
- 10.Joeris, B., Lindzey, N., McConnell, R.M., Osheim, N.: Simple DFS on the complement of a graph and on partially complemented digraphs. Inf. Process. Lett., arxiv.org (2013, submitted)
- 12.Karpinski, M., Schudy, W.: Linear time approximation schemes for the gale-berlekamp game and related minimization problems. In: STOC, pp. 313–322 (2009)Google Scholar
- 15.Micali, S., Vazirani, V.V.: An o(sqrt(n) m) algorithm for finding maximum matching in general graphs. In: FOCS, pp. 17–27 (1980)Google Scholar
- 17.Seidel, J.J.: A survey of two-graphs. In: Colloquio Internazionale sulle Teorie Combinatorie, pp. 481–511 (1976)Google Scholar