Abstract

We revisit the all-pairs-shortest-paths problem for an unweighted undirected graph with n vertices and m edges. We present new algorithms with the following running times: { O ( mn /log n ) if m > n log n log log log n O ( mn log log n /log n ) if m > n log log n O ( n 2 log 2 log n /log n ) if m ≤ n log log n . These represent the best time bounds known for the problem for all m ≪ n 1.376 . We also obtain a similar type of result for the diameter problem for unweighted directed graphs.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.