Abstract
A new linear-time algorithm is presented for the tree-path-maxima problem of, given a tree T with real edge weights and a list of pairs of distinct nodes in T, computing for each pair (u,v) on the list a maximum-weight edge on the path in T between u and v. Linear-time algorithms for the tree-path-maxima problem were known previously, but the new algorithm may be considered significantly simpler than the earlier solutions. A linear-time algorithm for the tree-path-maxima problem implies a linear-time algorithm for the MST-verification problem of determining whether a given spanning tree of a given undirected graph G with real edge weights is a minimum-weight spanning tree of G.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.