2 Introduction To Sorting Techniques
2 Introduction To Sorting Techniques
Sorting algorithm
Some of the most common sorting algorithms are:
Selection sort, Bubble sort, Insertion Sort, Cycle Sort, Merge Sort, 3-way
Merge Sort, Quick sort, Heap sort and Counting sort
Insertion
n n^2 n^2 1 Yes Insertion
Sort
Insertion &
n nlogn nlogn n Yes
Tim Sort Merging
Selection
n^2 n^2 n^2 1 No Selection
Sort
Cocktail
n n^2 n^2 1 Yes Exchanging
Shaker Sort
Odd–even Exchanging
n n^2 n^2 1 Yes
Sort Indexes: