Assignment or
Assignment or
K-Shortest Path algorithm: The algorithm can be broken down into two parts, determining the first
k-shortest path, Ak, and then determining all other k-shortest paths. It is assumed that the
container A will hold k-shortest paths, whereas the container B, will hold the potential k-shortest
paths. To determine A1, the shortest path from the source to the destination, any efficient shortest
path algorithm can be used. To find Ak, where k ranges from 2 to K, the algorithm assumes that
all the paths from A1 to Ak-1 have previously been found. The k iterations can be divided into two
processes, finding all the deviations Aki and choosing a minimum length path to become Ak,
where iteration ranges from 1 to Qkk. The successive shortest paths are removed from container
B and inserted into container A and algorithm continues to thee next iteration. If the amount of
paths in container B equal or exceed the amount of k-shortest paths that still need to be found,
then necessary paths of container B are added to container A and the algorithm is finished.
By using these algorithm, we find the shortest path between 93 nodes of Bhimsen Gaupalika of
Gorkha District .We find 10 shortest path between every origin and destination and the sum of
their length using MATLAB. Every student were assigned different link to determine shortest
path.In my case,5 link were assigned. Then at a time a link was removed from the network and
code was run to find sum of shortest path. After all the computation, distance were compared and
the critical path was found out.