Abstract
Computing the weighted girth, which is the sum of weights of edges in the minimum weight cycle, is an important problem in network analysis. The problem for distributively computing girth in unweighted graphs has garnered lots of attention, but there are few studies in weighted graphs. In this paper, we propose a distributed randomized algorithm for computing the weighted girth in weighted graphs with integral edge weights in the range [1, nc], where n is the number of vertices and c is a constant. The algorithm is devised under the standard synchronous \({\cal C}{\cal O}{\cal N}{\cal G}{\cal E}{\cal S}{\cal T}\) model, which limits each vertex can only transfer O(log n) bits information along each incident edge in a round. The upper bound of the algorithm is O(n log2n) rounds. We also prove the lower bound for computing the weighted girth is Ω(D + n/ log n) where D is the hop diameter of the weighted graph. This means our distributed algorithm is optimal within a factor of O(log3n).
Similar content being viewed by others
References
Diestel R. Graph Theory. 4th ed. Berlin: Springer, 2012
Bernstein A. A nearly optimal algorithm for approximating replacement paths and k shortest simple paths in general graphs. In: Proceedings of ACM-SIAM Symposium On Discrete Algorithms (SODA), 2010. 742–755
Williams V V, Williams R. Subcubic equivalences between path, matrix and triangle problems. In: Proceedings of Symposium on Foundations of Computer Science (FOCS), 2010. 645–654
Itai A, Rodeh M. Finding a minimum circuit in a graph. SIAM J Comput, 1978, 7: 413–423
Coppersmith D, Winograd S. Matrix multiplication via arithmetic progressions. J Symb Comput, 1990, 9: 251–280
Roditty L, Williams V V. Minimum weight cycles and triangles: equivalences and algorithms. In: Proceedings of Symposium on Foundations of Computer Science (FOCS), 2011. 180–189
Williams V V. Hardness of easy problems: basing hardness on popular conjectures such as the strong exponential time hypothesis. In: Proceedings International Programme on the Elimination of Child Labour (IPEC), 2015. 17–29
Lingas A, Lundell E M. Efficient approximation algorithms for shortest cycles in undirected graphs. Inf Process Lett, 2009, 109: 493–498
Roditty L, Tov R. Approximating the girth. ACM Trans Algorithms, 2013, 9: 1–13
Holzer S, Wattenhofer R. Optimal distributed all pairs shortest paths and applications. In: Proceedings of ACM Symposium on Principles of distributed computing (PODC), 2012. 355–364
Lenzen C, Peleg D. Efficient distributed source detection with limited bandwidth. In: Proceedings of ACM Symposium On Principles of Distributed Computing (PODC), 2013. 375–382
Nanongkai D. Distributed approximation algorithms for weighted shortest paths. In: Proceedings of Symposium on the Theory of Computing (STOC), 2014. 565–573
Peleg D, Roditty L, Tal E. Distributed algorithms for network diameter and girth. In: Proceedings of International Colloquium on Automata, Languages and Programming (ICALP), 2012. 660–672
Hua Q, Fan H, Qian L, et al. Brief announcement: a tight distributed algorithm for all pairs shortest paths and applications. In: Proceedings of Symposium on Parallelism in Algorithms and Architectures (SPAA), 2016. 439–441
Hua Q, Fan H, Ai M, et al. Nearly optimal distributed algorithm for computing betweenness centrality. In: Proceedings of International Conference on Distributed Computing Systems (ICDCS), 2016. 271–280
Frischknecht S, Holzer S, Wattenhofer R. Networks cannot compute their diameter in sublinear time. In: Proceedings of ACM-SIAM Symposium on Discrete Algorithms (SODA), 2012. 1150–1162
Huang C C, Nanongkai D, Saranurak T. Distributed exact weighted all-pairs shortest paths in Õ(n5/4) rounds. In: Proceedings of Symposium on Foundations of Computer Science (FOCS), 2017. 168–179
Peleg D. Distributed Computing a Locality Sensitive Approach. Philadelphia: Society for Industrial and Applied Mathematics, 2000
Elkin M. Distributed exact shortest paths in sublinear time. In: Proceedings of Symposium on the Theory of Computing (STOC), 2017. 757–770
Leighton F T, Maggs B M, Rao S B. Packet routing and job-shop scheduling inO(congestion+dilation) steps. Combinatorica, 1994, 14: 167–186
Yao A C. Some complexity questions related to distributive computing (preliminary report). In: Proceedings of Symposium on the Theory of Computing (STOC), 1979. 209–213
Kushilevitz E, Nisan N. Communication Complexity. Cambridge: Cambridge University Press, 1997
Jin H, Yao P C, Liao X F. Towards dataflow based graph processing. Sci China Inf Sci, 2017, 60: 126102
Acknowledgements
This work was supported in part by National Key Research and Development Program of China (Grant No. 2018YFB1003203), National Natural Science Foundation of China (Grants No. 61972447), and Fundamental Research Funds for the Central Universities (Grant No. 2019kfyXKJC021). We thank the anonymous reviewers for the helpful comments to improve the presentation of this paper.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Hua, QS., Qian, L., Yu, D. et al. A nearly optimal distributed algorithm for computing the weighted girth. Sci. China Inf. Sci. 64, 212101 (2021). https://doi.org/10.1007/s11432-020-2931-x
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s11432-020-2931-x