Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEW ALGORITHM] MULTISTAGE GRAPH in dynamic programming. #990

Closed
2 tasks
shuvojitss opened this issue Oct 18, 2024 · 2 comments
Closed
2 tasks

[NEW ALGORITHM] MULTISTAGE GRAPH in dynamic programming. #990

shuvojitss opened this issue Oct 18, 2024 · 2 comments

Comments

@shuvojitss
Copy link
Contributor

Name:

[NEW ALGORITHM] MULTISTAGE GRAPH
You are given a directed multistage graph with n nodes. The graph is divided into multiple stages, and you need to find the shortest path from the source node (node 0) to the destination node (node n-1) while passing through intermediate stages. Each node belongs to a particular stage, and edges between nodes have associated costs. Use Dynamic Programming to solve this.

About:

One of the most important program in dynamic programming.
The graph is represented as an adjacency matrix, where graph[i][j] denotes the cost of moving from node i to node j:
graph[i][j] = -1 indicates there is no edge from node i to node j.
graph[i][j] ≥ 0 represents the cost of traveling from node i to node j.

Input:

The adjacency Cost Matrix.

Output:

MInimum cost path and Minimum Cost.

image (2)


Labels:

new algorithm, gssoc-ext, hacktoberfest, level1


Assignees:

  • Contributor in GSSoC-ext
  • Want to work on it

Additionl Information:

@pankaj-bind Please assign me this issue I want to work on it.

@2004san
Copy link

2004san commented Oct 20, 2024

i want to work on this issue, @pankaj-bind

@pankaj-bind
Copy link
Collaborator

@shuvojitss assigned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants