- In This Assignment You Are Going To Implement Graph Applications And Measure Their Performance The Aim Of The Project 1 (63.69 KiB) Viewed 29 times
In this assignment, you are going to implement graph applications and measure their performance. The aim of the project
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
In this assignment, you are going to implement graph applications and measure their performance. The aim of the project
In this assignment, you are going to implement graph applications and measure their performance. The aim of the project is to improve your skills on understanding and using graph algorithms and experience emprical anaylsis. The problem is a well known problem MST and we have two alternatives for solution: Prim's and Kruskal's. You need to implement both of the algorithms and run experiments to see how they behave when the graph is sparse or dense. (Hint: You can use the existing code in the web.) What will the programs do? First you need to get the input from a text file. The format of the file is as the following: Number_of_vertices Vertex ID: List of Adjacent Vertices Example: The input file for this graph should be: 6 1:34 2:15 3:2 56 4:5 5: 6: Then you are going to run one of the algorithms and measure the time. You need to repeat this a few times to get an accurate time, since most of the time first execution will take a lot longer than normal (because of caching and other execution related overheads). Finally the algorithms will produce MSTs for the given input.