Find Jobs
Hire Freelancers

Write some Software

$10-30 USD

Đã hoàn thành
Đã đăng vào gần 8 năm trước

$10-30 USD

Thanh toán khi bàn giao
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.
Mã dự án: 10513327

Về dự án

4 đề xuất
Dự án từ xa
Hoạt động 8 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
Đã trao cho:
Avatar người dùng
******c++ : Expert level****** ******Java : Expert level****** ******c : Expert level****** I can deliver any task in c,c++ and java in least time and least payments. No matter it is simple assignment or professional software, i deliver it according to your requiremets. Pm for further [login to view URL]!
$30 USD trong 1 ngày
5,0 (34 nhận xét)
4,4
4,4
4 freelancer chào giá trung bình $36 USD cho công việc này
Avatar người dùng
Greetings! A C++ expert at your service. I have completed a similar task few days back and I can complete this graph task quickly with 100% correctness. Looking forward to hear from you asap :)
$25 USD trong 1 ngày
4,9 (14 nhận xét)
3,6
3,6

Về khách hàng

Cờ của UNITED STATES
Mahwah, United States
5,0
1
Thành viên từ thg 5 16, 2016

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.