Find Jobs
Hire Freelancers

Disjoint Set to keep track of connected cities

$30-5000 USD

V teku
Objavljeno pred več kot 21 leti

$30-5000 USD

Plačilo ob dostavi
In this project you will use a disjoint set to keep track of connected cities. The input file attached(cities_map) has a list of cities. The file consists of a set of cities in rows and columns. Cities in a row are adjacent, as are cities in a column. We want to randomly form connections between adjacent cities until all cities are connected. To do this, use a disjoint set object. Number the cities as they are read. Create a disjoint set object so that there is one disjoint set per city. Now, randomly selected a pair of cities. If they are adjacent, see if they are connected. To do this, see if they are in the same set. If they are not connected, then union them in the set, and create a vertical or horizontal connection between them. When all cities are connected, print out your list of cities to show which cities have been connected. You MUST use the disjoint set object from this given website: [login to view URL]~weiss/dsaa_c++/code/ (see attachment for files [login to view URL] and DisjSets.h). ## Deliverables You should submit the source files and all the necessary files to execute the program. ## Platform It should be compilable on apache servers version 3.03
ID projekta: 2881866

Več o projektu

3 ponudb
Projekt na daljavo
Aktivno pred 21 leti

Želite zaslužiti?

Prednosti oddajanja ponudb na Freelancerju

Nastavite svoj proračun in časovni okvir
Prejmite plačilo za svoje delo
Povzetek predloga
Registracija in oddajanje ponudb sta brezplačna
Dodeljeno:
Avatar uporabnika
See private message.
$15 USD v 14 dneh
4,9 (170 ocen)
5,8
5,8
3 freelancerjev je oddalo ponudbo s povprečno vrednostjo $19 USD za to delo
Avatar uporabnika
See private message.
$25,50 USD v 14 dneh
5,0 (53 ocen)
5,4
5,4
Avatar uporabnika
See private message.
$17 USD v 14 dneh
4,9 (17 ocen)
3,3
3,3

O stranki

Zastava UNITED STATES
United States
5,0
8
Član(ica) od jun. 28, 2002

Verifikacija stranke

Hvala! Po e-pošti smo vam poslali povezavo za prevzem brezplačnega dobropisa.
Pri pošiljanju vašega e-sporočila je šlo nekaj narobe. Poskusite znova.
Registrirani uporabniki Skupaj objavljenih del
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Nalaganje predogleda
Geolociranje je bilo dovoljeno.
Vaša prijavna seja je potekla, zato ste bili odjavljeni. Prosimo, da se znova prijavite.