How to sort 100GB worth of strings

前端 未结 7 828
情歌与酒
情歌与酒 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 11:56

    I think you should use BogoSort. You might have to modify the algorithm a bit to allow for inplace sorting, but that shouldn't be too hard. :)

提交回复
热议问题