Listing Triangles
نویسندگان
چکیده
We present new algorithms for listing triangles in dense and sparse graphs. The running time of our algorithm for dense graphs is Õ(n + nt), and the running time of the algorithm for sparse graphs is Õ(m + mt), where n is the number of vertices, m is the number of edges, t is the number of triangles to be listed, and ω < 2.373 is the exponent of fast matrix multiplication. With the current bound on ω, the running times of our algorithms are Õ(n+n t) and Õ(m+m t), respectively. We first obtain randomized algorithms with the desired running times and then derandomize them using sparse recovery techniques. If ω = 2, the running times of the algorithms become Õ(n + nt) and Õ(m+mt), respectively. In particular, if ω = 2, our algorithm lists m triangles in Õ(m) time. Pǎtraşcu (STOC 2010) showed that Ω(m) time is required for listing m triangles, unless there exist subquadratic algorithms for 3SUM. We show that unless one can solve quadratic equation systems over a finite field significantly faster than the brute force algorithm, our triangle listing runtime bounds are tight assuming ω = 2, also for graphs with more triangles.
منابع مشابه
Graphing trillions of triangles
The increasing size of Big Data is often heralded but how data are transformed and represented is also profoundly important to knowledge discovery, and this is exemplified in Big Graph analytics. Much attention has been placed on the scale of the input graph but the product of a graph algorithm can be many times larger than the input. This is true for many graph problems, such as listing all tr...
متن کامل3SUM, 3XOR, Triangles
Pǎtraşcu (STOC ’10) reduces the 3SUM problem to listing triangles in a graph. In the other direction, we show that if one can solve 3SUM on a set of size n in time n1+ then one can list t triangles in a graph with m edges in time Õ(m1+ t1/3− /3). Our result builds on and extends works by the Paghs (PODS ’06) and by Vassilevska and Williams (FOCS ’10). We make our reductions deterministic using ...
متن کاملFinding, Counting and Listing All Triangles in Large Graphs, an Experimental Study
In the past, the fundamental graph problem of triangle counting and listing has been studied intensively from a theoretical point of view. Recently, triangle counting has also become a widely used tool in network analysis. Due to the very large size of networks like the Internet, WWW, or social networks, the efficiency of algorithms for triangle counting and listing is an important issue. The m...
متن کاملEfficient Algorithms for Subgraph Listing
Subgraph isomorphism is a fundamental problem in graph theory. In this paper we focus on listing subgraphs isomorphic to a given pattern graph. First, we look at the algorithm due to Chiba and Nishizeki for listing complete subgraphs of fixed size, and show that it cannot be extended to general subgraphs of fixed size. Then, we consider the algorithm due to Gąsieniec et al. for finding multiple...
متن کاملTriangle Listing Algorithms: Back from the Diversion
We show that most algorithms from the literature on listing the triangles of a graph have a common abstraction. Our unifying framework highlights that these seemingly different algorithms are in fact instantiations of a single generic procedure, and even suggests some additional variants. More importantly, it yields parsimonious implementations that are in general more efficient than those desc...
متن کامل