Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quicksort - advanced question

Status
Not open for further replies.

Rydel

Programmer
Feb 5, 2001
376
CZ
It seems quicksort does not suit very well for large arrays. I need to manipulate certain (very large) list of words and at the end to sort them all. It works for medim-size files, but for example now I have a file of 800KB or larger with circa 120,000 words or more, then my quicksort runs out of stack. Any idea how to solve this one? To use some other algorithm? Which one will be quick enough yet not too demanding on memory? Or, maybe, I can increase the stack size during the execution?


regards,
rydel n23
 
I would suggest the "Heap" sort. You can -of course- use quicksort within the heap sort concept.





MichaelRed
m.red@att.net

Searching for employment in all the wrong places
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top