Re: Merge strategy





Eric Sosman wrote On 06/29/06 16:06,:

[...] Then a reasonable strategy for
merging your N files is

while (N > 1) {
M = min(N, K, N+1-K)

Oh, drat: that's not right. Try

M = (N <= K) ? N : min(K, N+1-K)

--
Eric.Sosman@xxxxxxx

.