Counting and Detecting Small Subgraphs via Equations
Authors:
- Mirosław KowalukMKMirosław Kowaluk
- Andrzej LingasALAndrzej Lingas
- Eva-Marta LundellELEva-Marta Lundell
- 1 January 2013
- journal article
- Published by Society for Industrial & Applied Mathematics (SIAM) in SIAM Journal on Discrete Mathematics
- Vol. 27 (2) , 892-909
Abstract
We present a general technique for detecting and counting small subgraphs. It consists of forming special linear combinations of the numbers of occurrences of different induced subgraphs of fixed size in a graph. These combinations can be efficiently computed by rectangular matrix multiplication. Our two main results utilizing the technique are as follows. Let $H$ be a fixed graph with $k$ vertices and an independent set of size $s.$ 1. Detecting if an $n$-vertex graph contains a (not necessarily induced) subgraph isomorphic to $H$ can be done in time $O(n^{\omega(\lceil (k-s)/2 \rceil, 1, \lfloor (k-s)/2 \rfloor )})$, where $\omega (p,q,r)$ is the exponent of fast arithmetic matrix multiplication of an $n^p\times n^q$ matrix by an $n^q\times n^r$ matrix. 2. When $s=2,$ counting the number of (not necessarily induced) subgraphs isomorphic to $H$ can be done in the same time, i.e., in time $O(n^{\omega(\lceil (k-2)/2 \rceil, 1, \lfloor (k-2)/2 \rfloor )}).$ It follows in particular that we can count the number of subgraphs isomorphic to any $H$ on four vertices that is not $K_4$ in time $O(n^{\omega})$, where $\omega =\omega (1,1,1)$ is known to be smaller than 2.373. Similarly, we can count the number of subgraphs isomorphic to any $H$ on five vertices that is not $K_5$ in time $O(n^{\omega(2,1,1)}),$ where $\omega(2,1,1)$ is known to be smaller than 3.257. Finally, we derive input-sensitive variants of our time upper bounds. They are partially expressed in terms of the number $m$ of edges of the input graph and do not rely on fast matrix multiplication.
Keywords
This publication has 22 references indexed in Scilit:
- Faster algorithms for finding and counting subgraphsJournal of Computer and System Sciences, 2011
- Structure discovery in PPI networks using pattern-based network decompositionBioinformatics, 2009
- On the complexity of fixed parameter clique and dominating setTheoretical Computer Science, 2004
- Fast Rectangular Matrix Multiplication and ApplicationsJournal of Complexity, 1998
- Finding and counting given length cyclesAlgorithmica, 1997
- Rectangular Matrix Multiplication RevisitedJournal of Complexity, 1997
- Color-codingJournal of the ACM, 1995
- Matrix multiplication via arithmetic progressionsJournal of Symbolic Computation, 1990
- Arboricity and Subgraph Listing AlgorithmsSIAM Journal on Computing, 1985
- On Sets of Acquaintances and Strangers at any PartyThe American Mathematical Monthly, 1959