Abstract
We consider the well-known problem of enumerating all triangles of an undirected graph. Our focus is on determining the input/output (I/O) complexity of this problem. Let be the number of edges, the size of internal memory, and the block size. The best results obtained previously are sort I/Os (Dementiev, PhD thesis 2006) and I/Os (Hu et al., SIGMOD 2013), where sort denotes the number of I/Os for sorting items. We improve the I/O complexity to expected I/Os, which improves the previous bounds by a factor . Our algorithm is cache-oblivious and also I/O optimal: We show that any algorithm enumerating distinct triangles must always use I/Os, and there are graphs for which . Finally, we give a deterministic cache-aware algorithm using I/Os assuming for a constant . Our results are based on a new color coding technique, which may be of independent interest.
Connections
Explore this paper’s authors, topics and related work.
Building this map preview
BZPEER is loading the nearby papers, people, topics and institutions for this page.
Reviews 0
Write a review
No reviews yet.
Discussion 0
Add a comment
No comments yet.