shuffling lines in a stream

BCS ao at pathlink.com
Thu Oct 9 22:19:45 PDT 2008


Reply to Andrei,

> You don't know the size beforehand, and
> one pass is preferable. The stream can be larger than the working
> memory, but not an unbounded amount of times larger. Also lines in
> the stream can be unbounded, but it is guaranteed that at least a
> nonzero fraction of the file fits in working memory.

I got the bit about the end effect. The above is what I didn't get.





More information about the Digitalmars-d mailing list