Question: Task 5 Shortest Simple Bike (15%) In this task you will write the pseudocode for two effective algorithms as given a corrected graph G with
Task 5 Shortest Simple Bike (15%) In this task you will write the pseudocode for two effective algorithms as given a corrected graph G with positive weights returns the weight of the shortest simple cycle in G. If G does not contain any cycle, you return weight . 5a (4%) Explain why depth first search is not suitable here. 5b (6%) Type an algorithm where you use Dijkstra to find the shortest simple bike. If you use Dijkstra as it is (unmodified), you do not need to reproduce the code, then you can assume you have a method with the signature void dijkstra (Vertex s). If you modify Dijkstra, you must show the modified Dijkstra's algorithm. What is the complexity of your algorithm? 5c (5%) Type an algorithm where you solve the problem using Floyd in your algorithm.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
