Find Jobs
Hire Freelancers

C++ Project

$10-40 USD

Completed
Posted over 5 years ago

$10-40 USD

Paid on delivery
Write a C++ project to color maps in such a way that areas that share borders do not have the same colors. You will be given the geographic area as an adjacency matrix, you will also have a limited set of colors to work with. The program must provide the following functionality Allow the user to input the name of a file describing the geographic region -The first line will be a comma delimited list of area names. -All other lines represent a comma delimited adjacency matrix of the map. -Two areas will be considered adjacent and have an entry of 1. -if they share a geographic border, and a 0 if they do not share a geographic boarder. -An area can never share a border with itself -The ocean should be treated as a geographic area -Your system must transform and store the given adjacency matrix as a graph in adjacency list form -Your system should color all of the areas using the following constraints: -----You have access to the colors: red, green, blue, magenta, cyan, lightgray -----The ocean is always blue, and is the only area that is allowed to be blue -----If two areas are considered adjacent, they are not allowed to be the same color -----Your system should output: The adjacency list of the areas (including the ocean) and each area should always have its assigned color presented with ite.g. Argentina:Green - Chile:Cyan, Uruguay:Magenta, Brazil:Cyan, Paraguay:Red,Bolivia:Magenta, Ocean:Blue ---The degree of each area and the ocean ---The graph’s average degree, round to the nearest whole number your system should color the text for each area the color of its assign color. Bonus: your system must provide all of the previously required outputs and use no more than four colors (plus blue for the ocean) to color the map. The code must be well commented. Suggestions: You may want to manually go through the process of coloring the graph a few times to work out an effective way of coloring all of the areas. You could consider using a DFS or BFS for your traversal of the graph and then assign appropriate colors along the way. Keep in mind that you do have a limited number of colors to work with and that the order in which your assign colors to areas may change the overall region outcome. This also means that there are potentially many equivalent solutions to the coloring problem. Additionally, it has been proven that you do not need more than four colors to color a map, though you will need an extra color specifically for the ocean in this project.
Project ID: 18302053

About the project

4 proposals
Remote project
Active 5 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
Hi, I am Shubhashish and interested on your project. I am a regular problem solver in C/C++ on different online judge, rich at algorithms and have attended a lot of programming contest including ACM ICPC where i did code in C/C++. you can checkout my github profile: [login to view URL]
$30 USD in 1 day
5.0 (5 reviews)
3.5
3.5
4 freelancers are bidding on average $44 USD for this job
User Avatar
Hi, I can do this. Please let me know to start immediately. i can deliver you on time. Please initiate communication to discuss further. Thanks
$50 USD in 10 days
4.7 (42 reviews)
5.0
5.0
User Avatar
Dear client. I've read your project description carefully and very interested. Do not ask me about possibility. The answer is always YEAH. If you work with me, you will know why I'm the best candidate. Let's discuss over chat and get started. Waiting for your reply. Best regards.
$60 USD in 1 day
3.5 (11 reviews)
3.6
3.6
User Avatar
Hello sir, I'm a professional python developer with more than 4 years of experience I've developed alot of projects using python including chat bots, games, web apps, management systems, malware's, data scraping apps and alot others. I also have 3 years of experience using Tkinter and Pygame as GUI modules in python apps. I also have more than 3 years of experience in Java programming, C/C++ Programming, C# Programming and Full stack web development, using HTML, CSS, JavaScript, Bootstrap, JQuery, Django, Node JS, ASP.net, Microsoft Access, SQLite. That's a challenging mathematical project and find myself suitable for this challenge. I'll be happy to work with you on your Project. Please provide me with the full details in the chat and I promise you to be more than satisfied with my work. Hope to hear from you soon. Thank you
$35 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
yeah, United States
5.0
8
Payment method verified
Member since Dec 5, 2018

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.