How to sort 100GB worth of strings

前端 未结 7 824
情歌与酒
情歌与酒 2020-12-12 11:45

Given a harddrive with 120GB, 100 of which are filled with the strings of length 256 and 2 GB Ram how do I sort those strings in Java most efficiently? How long will it take

7条回答
  •  离开以前
    2020-12-12 12:17

    Sounds like a task that calls for External sorting method. Volume 3 of "The Art of Computer Programming" contains a section with extensive discussion of external sorting methods.

提交回复
热议问题