External sorting algorithm - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

External sorting algorithm

ignazignaz Posts: 4Member
Maybe someone knows an external sort algorithm?
I don't have an idea how to make one...
There's a huge file with numbers and I need to sort them out, but number count is giant.

Comments

  • zibadianzibadian Posts: 6,349Member
    : Maybe someone knows an external sort algorithm?
    : I don't have an idea how to make one...
    : There's a huge file with numbers and I need to sort them out, but number count is giant.
    :
    I would split the list into more managable parts (for instance 1000 numbers) and save those into separate files. Then you can sort those files 1 at the time. Finally you can open a number of those files and merge those together while keeping them sorted. You can continue doing this until all the numbers are back into 1 file.

Sign In or Register to comment.