Skip to main content
Log in

A nearly optimal distributed algorithm for computing the weighted girth

  • Research Paper
  • Published:
Science China Information Sciences Aims and scope Submit manuscript

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).

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Diestel R. Graph Theory. 4th ed. Berlin: Springer, 2012

    MATH  Google Scholar 

  2. 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

  3. 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

  4. Itai A, Rodeh M. Finding a minimum circuit in a graph. SIAM J Comput, 1978, 7: 413–423

    Article  MathSciNet  MATH  Google Scholar 

  5. Coppersmith D, Winograd S. Matrix multiplication via arithmetic progressions. J Symb Comput, 1990, 9: 251–280

    Article  MathSciNet  MATH  Google Scholar 

  6. 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

  7. 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

  8. Lingas A, Lundell E M. Efficient approximation algorithms for shortest cycles in undirected graphs. Inf Process Lett, 2009, 109: 493–498

    Article  MathSciNet  MATH  Google Scholar 

  9. Roditty L, Tov R. Approximating the girth. ACM Trans Algorithms, 2013, 9: 1–13

    Article  MathSciNet  MATH  Google Scholar 

  10. 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

  11. 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

  12. Nanongkai D. Distributed approximation algorithms for weighted shortest paths. In: Proceedings of Symposium on the Theory of Computing (STOC), 2014. 565–573

  13. 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

  14. 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

  15. 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

  16. 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

  17. 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

  18. Peleg D. Distributed Computing a Locality Sensitive Approach. Philadelphia: Society for Industrial and Applied Mathematics, 2000

    Book  MATH  Google Scholar 

  19. Elkin M. Distributed exact shortest paths in sublinear time. In: Proceedings of Symposium on the Theory of Computing (STOC), 2017. 757–770

  20. Leighton F T, Maggs B M, Rao S B. Packet routing and job-shop scheduling inO(congestion+dilation) steps. Combinatorica, 1994, 14: 167–186

    Article  MathSciNet  MATH  Google Scholar 

  21. 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

  22. Kushilevitz E, Nisan N. Communication Complexity. Cambridge: Cambridge University Press, 1997

    MATH  Google Scholar 

  23. Jin H, Yao P C, Liao X F. Towards dataflow based graph processing. Sci China Inf Sci, 2017, 60: 126102

    Article  Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Qiang-Sheng Hua.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s11432-020-2931-x

Keywords

Navigation