This is a discussion on which sorting is better within the C and C++ forums, part of the Programming Talk category; hi all i want some information about sorting algorithms. for Linked List which sorting technique is better for normal array ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
hi all
i want some information about sorting algorithms. for Linked List which sorting technique is better for normal array whic sorting technique is better i) for presorted array ii) for completely reversed order iii) for random list. regards sai |
|
|||
|
Choosing the best sorting techniques for linked list depends on the requirements like
If you want sorting during creation of linked list you can go for insertion sort If you want sorting after creation of linked list, then sort the list as an entity, by swapping nodes until they are in order. |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sorting in 2-dimensions (sorting structures) | hat123 | C and C++ | 1 | 04-07-2007 09:00 AM |
| [FAQ] FileMaker Pro - database for Macintosh and Windows | Martin Trautmann | Tech FAQ | 0 | 04-17-2004 08:26 AM |