Give an 0(n 3 ) algorithm to find the length of the longest simple path in an n-node graph, on the assumption that no cycle has a positive length. Hint: Adapt Floyd's algorithm for shortest paths (see, e.g., A. V. Aho and J. D. Ullman, Foundations of Computer Science, Computer Science Press, New York, 1992).
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here