Discussion:
Interchange with leader??
(too old to reply)
p-nut buddha
2005-10-03 09:15:15 UTC
Permalink
Can someone translate "Interchange with leader" to English for me? The
method commentary says:

// search forward for leader

// swap

Ok, "search forward", does that just mean to search forward in the array?
Doing so wouldn't seem to guarantee that you would swap with a leaf.
p-nut buddha
2005-10-03 10:13:10 UTC
Permalink
Once I understood the block equivalence class it became clear what to do.
Post by p-nut buddha
Can someone translate "Interchange with leader" to English for me? The
// search forward for leader
// swap
Ok, "search forward", does that just mean to search forward in the array?
Doing so wouldn't seem to guarantee that you would swap with a leaf.
Loading...