Find Jobs
Hire Freelancers

I would like to hire a Programmer

$10-30 USD

Annulleret
Slået op over 6 år siden

$10-30 USD

Betales ved levering
In this problem you will implement Dijkstra's algorithm to find shortest paths between pairs of cities on a map. We are providing a a GUI that lets you visualize the map and the path your algorithm finds between two cities. Before you start: Download and unpack the file [login to view URL] in a new window, which contains the GUI, a graph implementation, and data files representing a map. The file [login to view URL] contains a list of cities and their (X,Y) coordinates on the map. These are the vertices in the graph. The file [login to view URL] lists direct, connections between pairs of cities. These links are bidirectional, if you can from NewYork to Boston, you can get from Boston to NewYork. These are the edges of the graph. If you use an IDE, import the java files and make sure that [login to view URL] and [login to view URL] are placed in the project directory. If you use java and javac from the command line put the files in the same directory as the source files. Compile all java sources and run the program Display. This should bring up a window and display the map. You will notice that clicking on "Compute All Euclidean Distances" does nothing and that "Draw Dijkstra's Path" will throw a null pointer exception on the terminal. You will have to implement these methods yourself. Carefully read through the classes [login to view URL] and [login to view URL], which represent the vertices and edges of a graph. You will not have to modify these classes for the assignment, but you need to understand how the graph is represented and what information is associated with each vertex and edge. If you do modify these files, please explain in the README. You will only have to modify [login to view URL], which represents a graph and will contain your implementation of Dijkstra's algorithm. You will need to use the instance variable vertexNames, which contains a mapping from city names to Vertex objects after the graph is read from the data files. The main method of Dijkstra illustrates how the class is used by the GUI and might be useful for testing your implementation on the command line. a. Implement the method computeAllEuclideanDistances() which should compute the euclidean distance between all cities that have a direct link and set the weights for the corresponding edges in the graph. Once this works correctly, the correct distances should be displayed in the GUI when clicking on "Compute All Euclidean Distances". b. In the method doDijkstra(String s), implement Dijkstra's algorithm starting at the city with name s. Use the distances associated with the edges. The method should update the distance and prev instance variables of the Vertex objects. You do not have to use a priority queue to store vertices that still need to be visited. Instead, keep these vertices on a list and scan through the entire list to find the minimum. We are making this simplification (at the expense of runtime) because [login to view URL] does not support the decreaseKey operation. c. Implement the method getDijkstraPath(String s, String t), which first calls doDijstra(s) and then uses the distance and prev instance variables of the Vertex objects to find the shortest path between s and t. The resulting path should be returned as a list of Edge objects. Once this works correctly, you should be able to compute and display paths in the GUI.
Projekt-ID: 14884077

Om projektet

14 forslag
Projekt på afstand
Aktiv 7 år siden

Leder du efter muligheder for at tjene penge?

Fordele ved budafgivning på Freelancer

Fastsæt dit budget og din tidsramme
Bliv betalt for dit arbejde
Oprids dit forslag
Det er gratis at skrive sig op og byde på jobs
14 freelancere byder i gennemsnit $23 USD på dette job
Brug Avatar.
Hi there, I went through the files and requirements and I can definitely do this one. I know Dijsktra algorithm very well and have implemented projects related to it. Let me know if you are interested Relevant Skills and Experience Java, Algorithms, Data Structures Proposed Milestones $30 USD - Completion milestone
$30 USD på 1 dag
4,9 (1083 anmeldelser)
7,6
7,6
Brug Avatar.
I can do it quickly Stay tuned, I'm still working on this proposal.
$20 USD på 1 dag
5,0 (10 anmeldelser)
3,9
3,9
Brug Avatar.
I can do your dijkstra's algorithm Stay tuned, I'm still working on this proposal.
$35 USD på 1 dag
5,0 (7 anmeldelser)
3,3
3,3
Brug Avatar.
would like to hire a Programmer Relevant Skills and Experience Product Developer (Core JAVA, Hibernate, WebServices ( RESTFul ), AGILE) • 6 years 2 months experience in Product Development & test-suite automation. Proposed Milestones $15 USD - After work is done
$15 USD på 1 dag
5,0 (4 anmeldelser)
2,5
2,5
Brug Avatar.
I have already implemented this as you had given the source files. Just one question is it okay to use an inner class for the doDijkstra(String s) function, I found it easier to use than lists. Relevant Skills and Experience I can show you screenshots of the running program right now. Proposed Milestones $20 USD - Complete Project
$14 USD på 1 dag
5,0 (1 bedømmelse)
1,5
1,5
Brug Avatar.
i have one year experience in java programming. so i will do this easly. Relevant Skills and Experience c programing, java programing, RDBMS, mysql Proposed Milestones $15 USD - i have already done project on java programming. Additional Services Offered $1 USD - pdf file tell me about project.
$15 USD på 1 dag
0,0 (0 anmeldelser)
0,0
0,0
Brug Avatar.
A proposal has not yet been provided
$25 USD på 1 dag
0,0 (0 anmeldelser)
0,0
0,0
Brug Avatar.
i have already implemented the algorithm in java.
$10 USD på 3 dage
0,0 (0 anmeldelser)
0,0
0,0
Brug Avatar.
I have more than 5 years of exp and I am working in product based company. I have good knowledge of algorithms. Relevant Skills and Experience java algo data structure Proposed Milestones $10 USD - full
$10 USD på 1 dag
0,0 (0 anmeldelser)
0,0
0,0
Brug Avatar.
The source code will be delivered in one hour after project is granted Relevant Skills and Experience Java Graph Theory Proposed Milestones $10 USD - Source Code
$10 USD på 1 dag
0,0 (0 anmeldelser)
0,0
0,0

Om klienten

Flag for UNITED STATES
United States
0,0
0
Medlem siden aug. 9, 2017

Klientverificering

Tak! Vi har sendt dig en e-mail med et link, så du kan modtage din kredit.
Noget gik galt, da vi forsøgte at sende din mail. Prøv venligst igen.
Registrerede brugere Oprettede jobs i alt
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Indlæser forhåndsvisning
Geolokalisering er tilladt.
Din session er udløbet, og du er blevet logget ud. Log venligst ind igen.