Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
External sorting algorithm Posted by ignaz on 2 Mar 2005 at 8:14 AM
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.
Report
Re: External sorting algorithm Posted by zibadian on 2 Mar 2005 at 9:18 AM
: 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.




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.