Rocha–Thatte cycle detection algorithm
Rocha–Thatte algorithm is a distributed algorithm in graph theory for detecting cycles on large-scale directed graphs based on the bulk synchronous message passing abstraction.[3] This algorithm for detecting cycles by message passing is suitable to be implemented in distributed graph processing systems, and it is also suitable for implementations in systems for disk-based computations, such as the GraphChi, where the computation is mainly based on secondary memory.[1] Disk-based computations are necessary when we have a single computer for processing large-scale graphs, and the computation exceeds the primary memory capacity.[1]
Rocha–Thatte algorithm is a distributed algorithm in graph theory for detecting cycles on large-scale directed graphs based on the bulk synchronous message passing abstraction.[3] This algorithm for detecting cycles by message passing is suitable to be implemented in distributed graph processing systems, and it is also suitable for implementations in systems for disk-based computations, such as the GraphChi, where the computation is mainly based on secondary memory.[1] Disk-based computations are necessary when we have a single computer for processing large-scale graphs, and the computation exceeds the primary memory capacity.[1] in two cases: if v = v_1 , then v has detected a cycle, which is reported; if v = v_i for some i \in {2, 3, \ldots , k} , then v has detected a sequence that contains the cycle (v = v_i, v_{i+1}, \ldots , v_k, v_{k+1} = v) ; in this case, the sequence is discarded, since the cycle must have been detected in an earlier iteration; to be precise, this cycle must have been detected in iteration k - i + 1 .[src] Every cycle (v_1, v_2, \ldots , v_k, v_{k+1} = v_1) is detected by all v_i, i = 1 to k in the same iteration; it is reported by the vertex \min\{v_1, \ldots , v_k\} .[src] The figure below presents an example of the execution of the algorithm.[src] In iteration i=3 , all the three vertices detect the cycle (2, 3, 4) .[src] The algorithm ensures that the cycle is reported only once by emitting the detected cycle only from the vertex with the least identifier value in the ordered sequence, which is the vertex 2 in the example.[src] The total number of iterations of the algorithm is the number of vertices in the longest path in the graph, plus a few more steps for deactivating the final vertices.[src] During the analysis of the total number of iterations, we ignore the few extra iterations needed for deactivating the final vertices and detecting the end of the computation, since it is O(1) iterations.[src] In practice, the actual number of these final few iterations depends on the framework being used to implement the algorithm.[src]
14 sentences · 14 cited inline · 3 references stored
References
- Kyrola; Blelloch; Guestrin (2012), GraphChi: Large-scale graph computation on just a PC , USENIX Association, pp. 31– 46, ISBN 978-1-931971-96-6 Wikipedia revision 1270153872, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1270153872
Cite this reference
MLA "Kyrola; Blelloch; Guestrin (2012), GraphChi: Large-scale graph computation on just a PC , USENIX Association, pp. 31– 46, ISBN 978-1-931971-96-6 Wikipedia revision 1270153872, retrieved 2026-11-19." Kyrola; Blelloch; Guestrin (2012), GraphChi: Large-scale graph computation on just a PC , USENIX Association, pp. 2026-11-18. http://dl.acm.org/citation.cfm?id=2387880.2387884. Accessed 04 December 2026.
Chicago "Kyrola; Blelloch; Guestrin (2012), GraphChi: Large-scale graph computation on just a PC , USENIX Association, pp. 31– 46, ISBN 978-1-931971-96-6 Wikipedia revision 1270153872, retrieved 2026-11-19." Kyrola; Blelloch; Guestrin (2012), GraphChi: Large-scale graph computation on just a PC , USENIX Association, pp. 2026-11-18. http://dl.acm.org/citation.cfm?id=2387880.2387884.
APA Kyrola; Blelloch; Guestrin (2012), GraphChi: Large-scale graph computation on just a PC , USENIX Association, pp. (2026). Kyrola; Blelloch; Guestrin (2012), GraphChi: Large-scale graph computation on just a PC , USENIX Association, pp. 31– 46, ISBN 978-1-931971-96-6 Wikipedia revision 1270153872, retrieved 2026-11-19. Retrieved December 4, 2026, from http://dl.acm.org/citation.cfm?id=2387880.2387884
- Distributed Cycle Detection and Removal · retrieved 2026-11-18 · rev 1270153872
Cite this reference
MLA "Distributed Cycle Detection and Removal." Oliva, Gabriele; Setola, Roberto; Glielmo, Luigi; Hadjicostis, Christoforos (2016), "Distributed Cycle Detection and Rem. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 04 December 2026.
Chicago "Distributed Cycle Detection and Removal." Oliva, Gabriele; Setola, Roberto; Glielmo, Luigi; Hadjicostis, Christoforos (2016), "Distributed Cycle Detection and Rem. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Oliva, Gabriele; Setola, Roberto; Glielmo, Luigi; Hadjicostis, Christoforos (2016), "Distributed Cycle Detection and Rem. (2026). Distributed Cycle Detection and Removal. Retrieved December 4, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- a b c Rocha, Rodrigo Caetano; Thatte, Bhalchandra (2015), Distributed cycle detection in large-scale sparse graphs , Simpósio Brasileiro de Pesquisa Operacional (SBPO), doi : 10.13140/RG.2.1.1233.8640 Wikipedia revision 1270153872, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1270153872
Cite this reference
MLA "a b c Rocha, Rodrigo Caetano; Thatte, Bhalchandra (2015), Distributed cycle detection in large-scale sparse graphs , Simpósio Brasileiro de Pesquisa Operacional (SBPO), doi : 10.13140/RG.2.1.1233.8640 Wikipedia revision 1270153872, retrieved 2026-11-19." a b c Rocha, Rodrigo Caetano; Thatte, Bhalchandra (2015), Distributed cycle detection in large-scale sparse graphs , Sim. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 04 December 2026.
Chicago "a b c Rocha, Rodrigo Caetano; Thatte, Bhalchandra (2015), Distributed cycle detection in large-scale sparse graphs , Simpósio Brasileiro de Pesquisa Operacional (SBPO), doi : 10.13140/RG.2.1.1233.8640 Wikipedia revision 1270153872, retrieved 2026-11-19." a b c Rocha, Rodrigo Caetano; Thatte, Bhalchandra (2015), Distributed cycle detection in large-scale sparse graphs , Sim. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).
APA a b c Rocha, Rodrigo Caetano; Thatte, Bhalchandra (2015), Distributed cycle detection in large-scale sparse graphs , Sim. (2026). a b c Rocha, Rodrigo Caetano; Thatte, Bhalchandra (2015), Distributed cycle detection in large-scale sparse graphs , Simpósio Brasileiro de Pesquisa Operacional (SBPO), doi : 10.13140/RG.2.1.1233.8640 Wikipedia revision 1270153872, retrieved 2026-11-19. Retrieved December 4, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
Cite this article
MLA
"Rocha–Thatte cycle detection algorithm." encyclopegia.org, 2025, https://encyclopegia.org/wiki/rocha-thatte-cycle-detection-algorithm. Accessed 04 December 2026.
Chicago
"Rocha–Thatte cycle detection algorithm." encyclopegia.org. Accessed December 4, 2026. https://encyclopegia.org/wiki/rocha-thatte-cycle-detection-algorithm.
APA
encyclopegia.org. (2025). Rocha–Thatte cycle detection algorithm. Retrieved December 4, 2026, from https://encyclopegia.org/wiki/rocha-thatte-cycle-detection-algorithm
Accessed December 4, 2026 · CC BY-SA 4.0 · citation page · JSON