GET TUTORING NEAR ME!

By providing your phone number, you consent to receive text messages from Club Z! for purposes related to our services. Message frequency may vary. Message and Data Rates may apply. Reply HELP for help or STOP to unsubscribe. See our Privacy Policy and our Terms and Conditions page

    Home / Get Math Help

    Longest Path

    Alternate name
    Definition

    The longest path problem asks to find a path of maximum length in a given graph. The problem is NP-complete, but there exists an efficient dynamic programming solution for acyclic digraphs. The detour matrix is a real symmetric matrix whose (i, j)th entry is the length of the longest path from vertex i to vertex j. For a traceable graph, longest paths correspond to Hamiltonian paths. Finding a longest path is challenging for stacked book graphs and Apollonian networks.