Find Jobs
Hire Freelancers

Design and analysis algorithms

$10-30 USD

Đã đóng
Đã đăng vào hơn 4 năm trước

$10-30 USD

Thanh toán khi bàn giao
1. Suppose you have an undirected graph with only positive integer edge weights. How can you use BFS to find the length of the shortest path from a source vertex to every other vertex in O((E+V)*D) time, where D is the maximum weight on an edge. Split an edge (u,v) with weight W > 1 into W edges, each with weight 1 and run BFS. 2. Consider a directed weighted graph with non-negative edge weights. For some cases, it is necessary to compute the length of the shortest path from every vertex v to a target vertex t. Describe how you can compute this in the same time complexity as in Dijkstra's algorithm. Reverse edges and solve for single source shortest path from t. Reverse edges in the path. 3. Consider a directed graph where each edge has some existence probability, i.e., say an edge e exists with probability Pr(e), where 0 <= Pr(e) <= 1. If a path from u to v has the edges e_1, e_2, ..., e_k, then the probability that the path exists is given by Pr(e_1) x Pr(e_2) x ... x Pr(e_k). Given a source vertex s and a target vertex t, describe how you can use Dijkstra's algorithm to find a path from s to t that has the maximum probability of existing. Take – log Pr(e) for each edge, and solve for shortest path from s to t. 4. Given a directed acyclic graph, find the length of the longest path in the graph in O(n+m) time. Note that we are NOT looking for the longest path starting at a particular vertex, rather the overall longest path that can start at any arbitrary vertex If graph has only negative edges, output the edge with maximum value. Otherwise, perform a topological sort, and say output order is v_1, v_2, …, v_n. Let dist(v_i) = 0 and parent(v_i) = null for all vertices v_i. for i = 1, 2, …, n for all adjacent vertices v_j of v_i if dist(v_j) < dist(v_i) + w(v_i,v_j) dist(v_j) = dist(v_i) + w(v_i,v_j) parent(v_j) = v_i Find vertex with max dist() value, and use parent() to construct path
Mã dự án: 22477540

Về dự án

5 đề xuất
Dự án từ xa
Hoạt động 4 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
5 freelancer chào giá trung bình $43 USD cho công việc này
Avatar người dùng
Hi, I'm an expert in algorithms design and analysis. I'm sure that I can easily do this project for you. We can have a chat about it. Thanks.
$80 USD trong 2 ngày
4,9 (292 nhận xét)
7,2
7,2
Avatar người dùng
Hi there, You have answered all the questions yourself, so what is the project exactly? let me know more details. thanks.
$30 USD trong 1 ngày
4,9 (8 nhận xét)
3,5
3,5
Avatar người dùng
HI SIR mY QUALIFICATION IS ms Mehatronics and Control Engineering. I am very expert in programming and Algorithems. let disccuss further in chatting
$20 USD trong 1 ngày
5,0 (1 nhận xét)
1,0
1,0
Avatar người dùng
All of these problems are simple and it can be coded in python, C++, Java, MATLAB, or in any software language you want. It can be done through various searching algorithms like DFS, BFS, B&B, A*, or any AI algorithm you want. Please reply with the details and these questions will be solved within a day.
$50 USD trong 1 ngày
0,0 (0 nhận xét)
0,0
0,0
Avatar người dùng
I am teaching Design & Analysis of Algorithm for last 5 years and I am a Computer Science Engineer having M.E( Master of Engineering) in d same department. I believe I can solve those problems in C.
$35 USD trong 20 ngày
0,0 (0 nhận xét)
0,0
0,0

Về khách hàng

Cờ của UNITED STATES
detroit, United States
4,6
1
Phương thức thanh toán đã xác thực
Thành viên từ thg 9 28, 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.