Top "Longest-path" questions

Dijkstra for longest path in a DAG

I am trying to find out if it is possible to use Dijkstra's algorithm to find the longest path in …

dijkstra longest-path
finding longest path in a graph

I am trying to solve a program, where in I have to find the max number of cities connected for …

python dictionary graph longest-path
Longest path in graph

Since last 2 days,i'm trying to find some logic for calculating longest path in graph.I know i can find …

algorithm graph longest-path
How to find the longest simple path in a graph?

I know that for non-directed graph this problem is NP-complete hence we should do Brute Force in order to check …

algorithm graph longest-path
Optimizations for longest path problem in cyclic graph

What optimizations exist for trying to find the longest path in a cyclic graph? Longest path in cyclic graphs is …

algorithm optimization graph graph-theory longest-path
How do find the longest path in a cyclic Graph between two nodes?

I already solved most the questions posted here, all but the longest path one. I've read the Wikipedia article about …

c graph cyclic longest-path
Why is topological sort needed for Longest Path in Directed Acyclic Graph?

Problem: Given a Weighted Directed Acyclic Graph (DAG) and a source vertex s in it, find the longest distances from …

graph topological-sort longest-path
Print the longest path starting from root in a binary tree

In this tree: a / \ b d / / \ c e f / g The longest path starting from the root would be a-d-f-g …

python recursion binary-tree longest-path
Dijkstra's algorithm to find most weighted path

I just want to make sure this would work. Could you find the greatest path using Dijkstra's algorithm? Would you …

graph dijkstra longest-path
Computational complexity of a longest path algorithm witn a recursive method

I wrote a code segment to determine the longest path in a graph. Following is the code. But I don't …

recursion big-o time-complexity longest-path