In these days, drones and robots are being used commercially to deliver the packages to aspecific location. A departmental store needs to develop an application so that when the sourceand destination is known, the robot/drone moves in the ordered direction by following the shortest path to keep delivering the package in a minimum amount of time. Initially store hasidentified few areas and a directed weighted graph G is made of with different routes.Here G = (V, E), where V is the set of locations as V = {H, A, B, C, D, E, F} and H is the sourcenode. E is the set of routes with weights (distances), shown in table with respective edges.Edge HA HB AC CF BD DF HE BE EC FEWeight 6 7 3 8 2 9 X 1 1 YHERE X=10 for EVEN roll# and X=5 for ODD roll# and Y= (roll# mod X) + 5Hint: Suppose roll# is 2018-CS-312, since 312 is even, X=10 and Y= (312 mod 10) + 5 = (2) + 5= 7You will need to cover following tasks1. Draw the graph G:2. Apply Dijkstra’s Algorithm and find out the Shortest Path3. Apply Bellman-Ford Algorithm and find out the Shortest Path4. Compare the two algorithm on the basis of efficiency and time complexity5. If it is supposed that value of Y is negative, what would be the impact of this on bothalgorithm?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here