Find Jobs
Hire Freelancers

C++ Assignment

$10-100 USD

Completed
Posted over 8 years ago

$10-100 USD

Paid on delivery
Write a program that can accomplish the following: 1. Read in a graph from [login to view URL] in the following format: node# 1st-arc-to-node# weight-for-previous-arc 2nd-arc-to-node# weight-for-previous-arc 3rd-arc-to-node# weight-for-previous-arc ... As an example: 1 2 10 3 5 4 100 2 1 5 4 3 50 2 10 In the above example, node 1 has an arc with weight 10 to node 2, weight 5 to node 3, and weight 100 to node 4. Node 2 has an arc with weight 5 to node 1. Node 4 has an arc to node 3 with weight 50 and to node 2 with weight 10. Note that in the above example, there IS a node 3 despite not being specifically declared on a line. Any node that is either explicitly defined on its own line, or into which an arc goes, must be considered to exist. 2. Display an ascii art image of the graph on the screen. An sample for the above example is shown below. It is not the only possible example: +-----5-------->[3] | ^ | | | 50 | | +->[1]--10-->[2]<-10-+ | | | | +---=---5-----+ | | | 100 | | | V | [4]---------------+ As can be seen in the above example, use the following format: nodes are written inside brackets vertical lines are drawn with | horizontal lines are drawn with - 90 degree bends, and intersections between lines (in order to share one line between two arcs) are drawn with + a horizontal line crossing but not intersecting with a vertical line is drawn with an = arc weights are written somewhere on the arc's line; if a line is shared between two arcs, only the part of the line used by only ONE arc may show the arc weight to draw arrows, use <, >, V, and ^. You do NOT need to optimize for the least number of crosses, turns, or intersections. You DO need to account for every possible graph where id(v) + od(v) <= 4 for all nodes v. 3. Display a chart, in an easily readable format, of the shortest path between each node s and every node t reachable from node s.
Project ID: 9136936

About the project

6 proposals
Remote project
Active 8 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
$15 for the first one, will deliver in a day rest for the next one, will deliver next day
$35 USD in 2 days
5.0 (67 reviews)
5.3
5.3
6 freelancers are bidding on average $71 USD for this job
User Avatar
Hi. i have a lot of experience in graphs. I think i can help you with this project at low cost.. we can have a chat about it. thanks
$121 USD in 1 day
4.9 (325 reviews)
7.4
7.4
User Avatar
Hi,sir How are you today? I checked your request. I have many experiences in c. I will finish your project in 7 hours. I am waiting for you. Best regards.
$50 USD in 1 day
5.0 (17 reviews)
4.8
4.8
User Avatar
A proposal has not yet been provided
$100 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
master degree major in computer science, c++ professional, good at data structures and algorithms
$77 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi,I'm an electrical engineer and during my college ive done countless projects like this ,I hope you hire me. Kind regards Nermin
$45 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
paris, United States
5.0
1
Member since Dec 16, 2015

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.