Find Jobs
Hire Freelancers

Disjoint Set to keep track of connected cities

$30-5000 USD

In Progress
Posted over 21 years ago

$30-5000 USD

Paid on delivery
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
Project ID: 2881866

About the project

3 proposals
Remote project
Active 22 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$15 USD in 14 days
4.9 (170 reviews)
5.8
5.8
3 freelancers are bidding on average $19 USD for this job
User Avatar
See private message.
$25.50 USD in 14 days
5.0 (53 reviews)
5.4
5.4
User Avatar
See private message.
$17 USD in 14 days
4.9 (17 reviews)
3.3
3.3

About the client

Flag of UNITED STATES
United States
5.0
8
Member since Jun 28, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.