Find Jobs
Hire Freelancers

Algorithms

$30-250 USD

Completed
Posted about 12 years ago

$30-250 USD

Paid on delivery
Suppose we are given an undirected graph G=(V,E) in an input file which has the number of nodes and the matrix. We want to preprocess the graph so we can quickly answer a query of the form:Path(i,j) that returns YES if there is a path from vertex to vertex j in G, and NO if there is no path. Your goal is to be able to answer Path(i,j) for any pair i, j in O(1) time. a) A simple way to solve this problem is to construct an n × n matrix P such that P[i, j] = 1 if there is a path from i to j, otherwise P[i, j] = 0. Describe how to construct such a matrix P.(for this part, don’t worry about the fastest method). Give the complexity analyses of your method. b) We now want an improved scheme to answerPath(i,j) that only uses O(n) extra space to store the information we use to answer in O(1) time. In addition, we want our preprocessing to be fast. i) Describe how to do the preprocessing in O(m + n) time (and using O(n) extra space. ii) Describe how to answer a Path(i,j) query in O(1) time for your method. Provide details on the design of your algorithm. Explain how your algorithms work step by step andv answer the questions above. Program call: mySM inputfile Input format: First you will have a number which denotes the number of nodes (n) and second an (nxn) matrix in the file.
Project ID: 1601280

About the project

18 proposals
Remote project
Active 12 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
I can help you
$30 USD in 5 days
5.0 (134 reviews)
6.4
6.4
18 freelancers are bidding on average $81 USD for this job
User Avatar
Please check your inbox. Thanks
$50 USD in 0 day
4.9 (217 reviews)
7.5
7.5
User Avatar
Hi, I am JAVA expert and can surely help you here, Thank You
$50 USD in 0 day
4.7 (567 reviews)
7.7
7.7
User Avatar
I know Graph Theory and C++, I can help you
$250 USD in 5 days
5.0 (690 reviews)
6.9
6.9
User Avatar
I am confident to handle your project. Please check your inbox for details, thank you.
$50 USD in 1 day
4.7 (142 reviews)
6.3
6.3
User Avatar
Hi,kindly check your pm,thanks.
$70 USD in 2 days
4.9 (56 reviews)
6.2
6.2
User Avatar
Dear sir, I am strong in C++/java programming especially in algorithm implementation. I am proficient in Graph theory and algorithms. I have deep insight into Floyd-Warshall, Dijkstra, Breadth First Search, Depth First Search, Maximum Flow, Max Match and etc algorithm and I have implemented them Based on your requirement I think I can solve the problem by Floyd-Warshall and Depth First Search algorithms and I have both implemented them and I can do it with high quality in a short time. I can show you my past code. Wait for your response Thank you BR
$30 USD in 0 day
4.9 (48 reviews)
5.7
5.7
User Avatar
Hi sir. I am a qualified programmer. i can do this task. Kindly check pmb. Thank you
$35 USD in 0 day
5.0 (44 reviews)
5.2
5.2
User Avatar
Hi. I am good at Algorithm Design/Analysis and Data Structure. I have experience in C# too. Code and description are available. I can handle it, please check Inbox. Best regards.
$75 USD in 1 day
5.0 (44 reviews)
4.6
4.6
User Avatar
Hi, Experienced Java developer for your service. Please approve the Bid. Regards,
$50 USD in 3 days
5.0 (14 reviews)
4.2
4.2
User Avatar
I am very proficient in Java, algorithms, and graph theory. I already know how to solve this problem. Please view my profile for previous feedback.
$50 USD in 3 days
5.0 (14 reviews)
4.3
4.3
User Avatar
This is a classical algorithms problem. I can do it for you with a full detailed implementation in 1 day.
$30 USD in 1 day
5.0 (4 reviews)
3.8
3.8
User Avatar
I can do this.
$100 USD in 1 day
5.0 (3 reviews)
3.6
3.6
User Avatar
PLEASE CHECK PMB
$220 USD in 5 days
0.0 (0 reviews)
0.0
0.0
User Avatar
So you just want all of this written in a text file right? The complexity analysis of how to make the nxn matrix which tells if path(i,j) exists. and for part b, you want a memory efficient method and also how to do that in O(m+n) time? btw what's m? As for the O(1) access time, well if it's like the matrix, you just need a simple memory access to find out the answer. Correct me if I am wrong about anything and check the private message to see what i have to offer
$50 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Pls check PMB.
$250 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I research on algorithms. So I can do it. I can give u details.
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of TURKEY
new york, Turkey
5.0
6
Payment method verified
Member since Mar 25, 2012

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.