Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How can I sort more data than will fit in memory?
How can I sort more data than will fit in memory?
✍: Guest
You want an ``external sort,'' which you can read about in Knuth, Volume 3. The basic idea is to sort the data in chunks (as much as will fit in memory at one time), write each sorted chunk to a temporary file, and then merge the files. Your operating system may provide a general-purpose sort utility, and if so, you can try invoking it from within your program:
2015-08-07, 969👍, 0💬
Popular Posts:
What will be printed as the result of the operation below: main() { char s1[]="Cisco"; char s2[]="sy...
The object that contains all the properties and methods for every ASP.NET page, that is built is .. ...
What is the value of this expression? +1-2*3/4 -0.5
Can two catch blocks be executed? No, once the proper catch section is executed the control goes fin...
How can we know the number of days between two given dates in PHP? Simple arithmetic: <?php $...