Hash Table
April 26, 2024
1 min
Problem: given a weighted graph of non-negative weight, and a source node s, find shortest path from s to all other nodes.
run time: O(nlogn+mlogn). Because m >> n => ~O(mlogn)
Space: O(n+m) for adjacent list, O(n) for heap => O(n+m)
Quick Links
Legal Stuff
Social Media