nextupprevious
Next:9.1 Bubble SortUp:DSAPrevious:8.7.2 Traveling Salesman Problem

9. Sorting Methods

The function of sorting or ordering a list of objects according to some linear order is so fundamental that it is ubiquitous in engineering applications in all disciplines. There are two broad categories of sorting methods: Internal sorting takes place in the main memory, where we can take advantage of the random access nature of the main memory; External sorting is necessary when the number and size of objects are prohibitive to be accommodated in the main memory.

The Problem:

                                                                            ri1, ri2,..., rin,  
Sorting Methods
   
Internal External
(In memory) Appropriate for secondary storage
quick sort  
heap sort mergesort
bubble sort radix sort
insertion sort polyphase sort
selection sort  
shell sort  




nextupprevious
Next:9.1 Bubble SortUp:DSAPrevious:8.7.2 Traveling Salesman Problem
eEL,CSA_Dept,IISc,Bangalore