Downloaded 21 times


![Need of new algorithms
• Users usually want data sorted.
• Sorting useful for eliminating duplicates.
• Internal sorting algorithms take advantage of the fact
that memory is directly addressable.
• Shell sort – A[i] and A[i-hk] in one time unit
• Heap sort -- A[i] and A[i*2+1] in one time unit
• Quick sort -- 3 median of 3 partitioning
A[left]
A[center]
A[right]](/proxy?url=https%3A%2F%2Fimage.slidesharecdn.com%2Fadsseminar-161004124140%2F85%2Fexternal-sorting-3-320.jpg)



External sorting algorithms are needed to sort data that is too large to fit into main memory. Traditional sorting algorithms require the entire input to reside in memory. External sorting techniques divide the large input into chunks that can fit in memory, sort each chunk, and then merge the sorted chunks. The document discusses how external accesses to data on disk are much slower than accessing data in memory, necessitating new algorithms to minimize disk I/O for large datasets that cannot fit in memory.


![Need of new algorithms
• Users usually want data sorted.
• Sorting useful for eliminating duplicates.
• Internal sorting algorithms take advantage of the fact
that memory is directly addressable.
• Shell sort – A[i] and A[i-hk] in one time unit
• Heap sort -- A[i] and A[i*2+1] in one time unit
• Quick sort -- 3 median of 3 partitioning
A[left]
A[center]
A[right]](/proxy?url=https%3A%2F%2Fimage.slidesharecdn.com%2Fadsseminar-161004124140%2F85%2Fexternal-sorting-3-320.jpg)


