Difference between revisions of "Talk:Heavy-light decomposition"

From PEGWiki
Jump to: navigation, search
(Created page with "The LCA algo is wrong Consider the case 1 / \ 2 4 \ 3 \ 5 H...")
(No difference)

Revision as of 12:22, 23 December 2013

The LCA algo is wrong

Consider the case

             1
            / \
           2   4
                \
                 3
                  \ 
                   5

Here a lca(4,2) is returned as 4.