Question: You have implemented Dijkstra's algorithm for computing single - pair shortest paths. You ran your implementation on many test cases where in each test case

You have implemented Dijkstra's algorithm for computing single-pair shortest paths. You ran your implementation on many test cases where in each test case the directed graph has n vertices and m=5n edges. Let T(n) denote the running time of your implementation on a directed graph with n vertices. You observe that T(2n)/T(n) approaches 4.0 for very large values of n. Should you be satisfied with your implementation?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!