[Paper Review] "Tri, Tri again": Finding Triangles and Small Subgraphs in a Distributed Setting
This paper presents efficient distributed algorithms for detecting small subgraphs, particularly triangles, in a fully connected network where each message is limited to O(log n) bits. It introduces a probabilistic algorithm that finds triangles in O(n^{1/3}/(t^{2/3}+1)) expected rounds, where t is the number of triangles, significantly improving upon naive approaches in dense graphs with limited bandwidth.
Let G = (V,E) be an n-vertex graph and M_d a d-vertex graph, for some constant d. Is M_d a subgraph of G? We consider this problem in a model where all n processes are connected to all other processes, and each message contains up to O(log n) bits. A simple deterministic algorithm that requires O(n^((d-2)/d) / log n) communication rounds is presented. For the special case that M_d is a triangle, we present a probabilistic algorithm that requires an expected O(ceil(n^(1/3) / (t^(2/3) + 1))) rounds of communication, where t is the number of triangles in the graph, and O(min{n^(1/3) log^(2/3) n / (t^(2/3) + 1), n^(1/3)}) with high probability. We also present deterministic algorithms specially suited for sparse graphs. In any graph of maximum degree Delta, we can test for arbitrary subgraphs of diameter D in O(ceil(Delta^(D+1) / n)) rounds. For triangles, we devise an algorithm featuring a round complexity of O(A^2 / n + log_(2+n/A^2) n), where A denotes the arboricity of G.
Motivation & Objective
- To address the challenge of detecting small subgraphs, especially triangles, in a distributed setting with limited message size (O(log n) bits per message).
- To overcome the inefficiency of naive approaches that require O(n/log n) rounds by learning the entire graph topology.
- To design algorithms that balance communication load and achieve sublinear round complexity in dense, fully connected networks.
- To provide both probabilistic and deterministic solutions tailored for different graph properties such as arboricity and maximum degree.
- To establish theoretical bounds on round complexity and prove tightness of the analysis for the proposed algorithms.
Proposed method
- Proposes a probabilistic sampling-based algorithm, TriSample, where nodes randomly sample neighbors to detect triangles without full topology knowledge.
- Uses a two-phase approach: first, a sampling phase to detect triangles quickly if they exist; second, a deterministic fallback (TriPartition) if no triangle is found.
- Employs concentration bounds and probabilistic analysis to ensure high probability correctness, relying on Chernoff-type bounds and union bounds.
- Introduces a novel round complexity analysis using a threshold parameter s_m that controls sampling depth and ensures coverage of potential triangles.
- Derives bounds on the number of rounds using the inverse of the sampling success probability, leveraging the expected number of triangle-detecting samples.
- Applies graph-theoretic properties such as arboricity (A) and maximum degree (Δ) to design specialized deterministic algorithms for sparse and bounded-degree graphs.
Experimental results
Research questions
- RQ1Can small subgraph detection (e.g., triangles) be solved more efficiently than O(n/log n) rounds in a fully connected distributed network with O(log n) message size?
- RQ2What is the optimal round complexity for detecting triangles when the number of triangles t is known or bounded?
- RQ3How can communication load be balanced across nodes to avoid bottlenecks in a clique-based communication model?
- RQ4Can probabilistic sampling achieve sublinear round complexity while maintaining high probability correctness?
- RQ5What are the tight asymptotic bounds on the round complexity of triangle detection in this model, and are they achievable?
Key findings
- The probabilistic algorithm TriSample achieves an expected round complexity of O(n^{1/3}/(t^{2/3}+1)) for detecting triangles, where t is the number of triangles in the graph.
- With high probability, the algorithm terminates within O(min{n^{1/3} log^{2/3}n / (t^{2/3}+1), n^{1/3}}) rounds, improving over deterministic baselines.
- For any graph with arboricity A, a deterministic algorithm detects triangles in O(A²/n + log_{2+n/A²} n) rounds, which is efficient for sparse graphs.
- In graphs of maximum degree Δ, the algorithm detects arbitrary subgraphs of diameter D in O(Δ^{D+1}/n) rounds, showing scalability with degree.
- The round complexity bound of O(n^{1/3} t^{-2/3} log^{2/3}(1/ε) + log(1/ε)) is asymptotically tight, as shown by lower-bound constructions with disjoint or shared triangles.
- It is possible to distinguish triangle-free graphs from those with at least t₀ ≥ 1 triangles within O(t₀^{-2/3} n^{1/3} log^{2/3}(1/ε) + log(1/ε)) rounds with probability 1−ε.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.