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] Longest Path in DAG #1718

Closed
2 tasks done
shuvojitss opened this issue Nov 7, 2024 · 1 comment
Closed
2 tasks done

[NEW ALGORITHM] Longest Path in DAG #1718

shuvojitss opened this issue Nov 7, 2024 · 1 comment

Comments

@shuvojitss
Copy link
Contributor

shuvojitss commented Nov 7, 2024


Name:

[NEW ALGORITHM] Given a weighted directed acyclic graph (DAG) and a source vertex, find the cost of the longest path from the source vertex to all other vertices present in the graph. If the vertex can’t be reached from the given source vertex, print its distance as infinity.

Input:

Source vertex and the cost matrix or the dajacency list as per your wish.

Output:

Longest path from source vertex to all other vertices.

About:

Propose a new algorithm to be added to the repository. Implementation of Dynamic Programming.


Labels:

new algorithm, gssoc-ext, hacktoberfest, level1


Assignees:

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

Additional Information:

Please assign me this issue I want to work on it.

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

2 participants