Sorting a doubly link list

R

ravi

Can any body tell me an effective algo to sort a doubly link list
algo must be time as well as memory effective
 
S

santosh

Can any body tell me an effective algo to sort a doubly link list
algo must be time as well as memory effective

Have you tried the Standard qsort, and measured it to be inadequate
for your setup? Maybe a mergesort or a heapsort might be better?
 
B

Ben Pfaff

santosh said:
Have you tried the Standard qsort, and measured it to be inadequate
for your setup?

qsort doesn't work directly on linked lists. It's for arrays.
Maybe a mergesort or a heapsort might be better?

qsort might be implemented as merge sort or heap sort.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top