in reply to Smoothsort
In add_tree should the second heapify be to $$tree_num_ref-2 the same as the preceding get_start_root ?
poj($start,$root)=get_start_root($trees_ref,$$tree_num_ref- +1); heapify($tab_ref,$$trees_ref[$$tree_num_ref-1],$start); ($start,$root) = get_start_root($trees_ref,$$tree_num_ref- +2); heapify($tab_ref,$$trees_ref[$$tree_num_ref-1],$start);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Smoothsort
by QuillMeantTen (Friar) on Sep 21, 2015 at 07:00 UTC |
In Section
Seekers of Perl Wisdom