Find Jobs
Hire Freelancers

(Project) Graph Algorithm

$250-750 USD

Closed
Posted about 6 years ago

$250-750 USD

Paid on delivery
Terminology: A Graph has Nodes connected by Links (directed from one node to another); Cycle free - application: project tasks. The Links have no attributes. If a Node has no links it is independent of the others; same applies to sets of Nodes. When storing a graph, I reference the other nodes like this class Graph { public nodes: GraphNode[]; } class GraphNode { public id: string; // key public label: string; public prerequisiteId: string; // pointer - the id of the previous node public dependentId: string; // pointer - the id of the following node } (why: ease of entry and retrieval, no need for storing a list; links have no attributes and can be derived on the fly) With this, I can draw most graphs found in project plans with their tasks. e.g. b a< > d c a=starting point b=parallel, starts after a is complete (prerequisite: a, dependent:d) c=parallel, starts after a is complete (prerequisite: a, dependent:d) d=finish, starts after b+c is complete Question A: What graph constructs can I not represent with this model? (please provide images or so) When drawing the graph, I convert the structure to class PaintNode { public id: string; public label: string; public prerequisiteIds: string[]; // pointer list - the id of the previous nodes } The conversion from GraphNodes to PaintNodes is pretty easy. Question B: What is a good algorithm to convert PaintNodes to GraphNodes? (pseudo code is fine in Java or Typescript style) Question C: How can I recognize that the PaintNodes cannot be converted to GraphNodes due to the restriction of the data model? (pseudo code is fine in Java or Typescript style) Follow up project: automatic layout
Project ID: 16354280

About the project

1 proposal
Remote project
Active 6 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
1 freelancer is bidding on average $305 USD for this job
User Avatar
I am well experienced in graph algorithms. I can surely help you out with these questions you have given. Please inbox me.
$305 USD in 3 days
5.0 (114 reviews)
6.0
6.0

About the client

Flag of UNITED STATES
Redwood City, United States
5.0
1
Payment method verified
Member since Jan 22, 2010

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.