
- Forum
- Programming Talk
- C and C++
- which sorting is better
which sorting is better
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 ...
-
08-01-2007, 03:02 AM #1
- Join Date
- Sep 2004
- Answers
- 1
which sorting is better
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.

Reply With Quote





