Posted on 2004-04-12
I need a simple (im sure its simple for you guys) algorithm that can sort a large textfile.
i need my program to first sort and then merge (nothing new!!) . the sorting stage would split my large textfile into several smaller sorted textfiles and and the merging stage would merge all these textfiles together to make the final sorted textfile. i have tried it myself but i cannot figure out the algorithm ( i always get stuck at some point and realise i cannot continue).
i dont want to have to use pointers...maybe there is some recursive method ??(not sure). i have looked at swag but there doesnt seem to be anything close enough to what i need.
Any help is more than appreciated !!! :)
Thanks a real lot!