Question: I have an assaignment from Data Structures and Algorithm. ! ! ! IT NEEDS TO BE SOLVED WITH JAVA LANGUAGE!!! There is a graph and

I have an assaignment from Data Structures and Algorithm. !!! IT NEEDS TO BE SOLVED WITH JAVA LANGUAGE!!! There is a graph and sample output ,I will attach the necessary image of them. Please take a good look of the graph and required (sample) output when writing the code, thank you in advance. Here is the description: In this part, you must implement your own graph data structure by taking inspiration from your textbook (Algorithms (4th Edition)(Robert Sedgewick, Kevin Wayne))and use it to help to solve problem. You are NOT allowed to use any external library or.jar file. Any solutions without using graph data structure are not evaluated! Question 1(25 points): In the defined system there is one source (0), and 4 load point (1,2,3,4). In the graph the locations of the source and load is given find the smallest path of connection to loads and source. (Minimum Spanning Tree of the undirected graph) Sample Output: V=5
E=10
01120
02160
03300
04450
10120
12200
13410
14500
20160
21200
23420
24400
30300
31410
32420
34510
40450
41500
42400
43510
The Minimum Spanning Tree Path
.........
.........
.........
.........
.........
The Minimum Spanning Tree value=... The Minimum Spanning Tree Path part shows the path for example:
03300
04450
12200
14500(this is only example not the resul) The Minimum Spanning Tree Path part shows the path for example:
03300
04450
12200
14500(thisis only example not the result)
Important Note: If the path contain 0. The answer must be:
04450
Not 40450
If the connection is not contain zero the lowest number is written in the path.
32420 is not correct.
23420 correct.
The Minimum Spanning Tree value for above example
The Minimum Spanning Tree value =1450(this is only example not the result)
In the question you create 3 java document and one text file:
HW3_Q1_solution: Main body and the solution of Minimum Spanning Tree question
, FileRead: read the text file.
Valuefinder: take the value of txt file and convert the integer and create the
undirected graph
HW3_Q1: text file (I uploaded to the system)Important Note: If the path contain 0. The answer must be:
04450
Not 40450
If the connection is not contain zero the lowest number is written in the path.
32420 is not correct.
23420 correct.
The Minimum Spanning Tree value for above example
The Minimum Spanning Tree value=1450(this is only example not the result)
!!! In the question you create 3 java document and one text file:
- HW3_Q1_solution: Main body and the solution of Minimum Spanning Tree question
- FileRead: read the text file.
- Valuefinder: take the value of txt file and convert the integer and create the
undirected graph
- HW3_Q1: text file (I uploaded to the system)
 I have an assaignment from Data Structures and Algorithm. !!! IT

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!