“public class MergeBU
{
private static Comparable[] aux; // auxiliary array for merges
// See page 271 for merge() code.
public static void sort(Comparable[] a)
{ // Do lg N passes of pairwise merges.
int N = a.length;
aux = new Comparable[N];
for (int sz = 1; sz < N; sz = sz+sz) // sz: subarray size
for (int lo = 0; lo < N-sz; lo += sz+sz) // lo: subarray index
merge(a, lo, lo+sz-1, Math.min(lo+sz+sz-1, N-1));
}
}”
―
Algorithms
Share this quote:
Friends Who Liked This Quote
To see what your friends thought of this quote, please sign up!
0 likes
All Members Who Liked This Quote
None yet!
This Quote Is From
Browse By Tag
- love (101593)
- life (79556)
- inspirational (75992)
- humor (44416)
- philosophy (31075)
- inspirational-quotes (28954)
- god (26944)
- truth (24781)
- wisdom (24700)
- romance (24399)
- poetry (23351)
- life-lessons (22651)
- quotes (21166)
- death (20583)
- happiness (19056)
- travel (18864)
- hope (18580)
- faith (18447)
- inspiration (17333)
- spirituality (15760)
- relationships (15680)
- life-quotes (15611)
- religion (15409)
- love-quotes (15387)
- motivational (15343)
- writing (14957)
- success (14200)
- motivation (13199)
- time (12885)
- motivational-quotes (12594)

