Find Jobs
Hire Freelancers

Use Python to find the minimum spanning tree for a graph

$10-30 USD

En curso
Publicado hace alrededor de 4 años

$10-30 USD

Pagado a la entrega
In this problem you are to find the minimum spanning tree for a graph that consists of 128 cities. The file [login to view URL] contains the map of the cities. In the graph, each pair of cities is connected by an undirected edge and its weight is given by the number of miles between the two cities. The minimum spanning tree for this graph will represent 127 roads between cities that allow all cities to be connected to each other. There are many such sets of 127 roads (spanning trees); you are to find the set that uses the minimum asphalt (hence, minimum spanning tree). The complete data set is in the [login to view URL] file. The format of the data file is as follows: 1. The first four lines are commentary. 2. Each of the 128 cities is represented as: 1. The name of the city (with state), on a separate line. You can ignore everything after the opening brace (those numbers represent latitude, longitude, and maybe population). 2. A series of zero or more lines, that contains the distance, in miles, to each of the previous cities in the list, in the reverse order of those cities. 3. The last line is a comment also. Algorithm: You can use either Prim’s or Kruskal’s algorithm. Your output should give the total cost of the minimum spanning tree and then list the (127) edges in the minimum spanning tree, starting with Youngstown, OH. In the following format: Youngstown, OH – Yankton, SD Yankton, SD – Yakima, WA Yakima, WA - ... ... (Note that this example is only for formatting purposes and is not in fact part of the MST) Implementation: Implement your code Python. Name the source file as yourFirstName_yourLastName.py. Provide clear instructions how to use your code. Submission: In your submission PDF document explain the choice of algorithm, and list all the data structures used for implementation. Explain why you used these data structures. Include the resulting output from running your code in the PDF document. Additionally, submit all your source files. Grading: • 10 points for explanation of choice of algorithm and data structures • 10 points for correct program output • 10 points for running program
ID del proyecto: 25126536

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 4 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
I can do this spanning tree quickly plus documentation in 2 days or less I'll send you Relevant Skills and Experience Python, python3
$20 USD en 2 días
0,0 (0 comentarios)
0,0
0,0
4 freelancers están ofertando un promedio de $20 USD por este trabajo
Avatar del usuario
Alert: I will give you 20% discount on my bid rate also give on my All Services. So grabs this special offer is limited. Let’s get to the point. Hi, hopefully you’re feeling well. I’m Python Developer worked in web scraping , cwraling Machine and Deep Learning and I’ve a good experience in it. I can apply my skills to solve your problem. Right now I've placed a bid, but we can finalize it after discussion. Please start the chat so we can have detailed discussion. Thanks
$20 USD en 7 días
4,7 (9 comentarios)
3,5
3,5
Avatar del usuario
Hi, I am familiar with Data structures and skilled in Python. I could finish your project in a day or two. -Best Regards.
$20 USD en 2 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
San Jose, United States
5,0
7
Forma de pago verificada
Miembro desde ago 24, 2016

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.