How to find common strings among two very large files?

后端 未结 8 2001
天涯浪人
天涯浪人 2021-02-06 07:08

I have two very large files (and neither of them would fit in memory). Each file has one string (which doesn\'t have spaces in

8条回答
  •  粉色の甜心
    2021-02-06 07:27

    I would sort each file, then use a Balanced Line algorithm, reading one line at a time from one file or the other.

提交回复
热议问题