in reply to Re^2: better union of sets algorithm?
in thread better union of sets algorithm?
Oh, yeah, i did mean intersection. Union is even easier. Use the same procedure and ignore duplicate lines that are adjacent. This means you never have more than two lines in memory at once.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: better union of sets algorithm?
by perrin (Chancellor) on Mar 11, 2005 at 15:36 UTC | |
by demerphq (Chancellor) on Mar 11, 2005 at 15:40 UTC |