Explain the time complexity of selection sort. Also give its derivation
Answers
Answered by
1
Time Complexities of all Sorting Algorithms
Following is a quick revision sheet that you may refer at last minute
AlgorithmTime Complexity BestAverageWorstSelection SortΩ(n^2)θ(n^2)O(n^2)Bubble SortΩ(n)θ(n^2)O(n^2)Insertion SortΩ(n)θ(n^2)O(n^2)Heap SortΩ(n log(n))θ(n log(n))O(n log(n))Quick SortΩ(n log(n))θ(n log(n))O(n^2)Merge SortΩ(n log(n))θ(n log(n))O(n log(n))Bucket SortΩ(n+k)θ(n+k)O(n^2)Radix SortΩ(nk)θ(nk)O(nk)
Following is a quick revision sheet that you may refer at last minute
AlgorithmTime Complexity BestAverageWorstSelection SortΩ(n^2)θ(n^2)O(n^2)Bubble SortΩ(n)θ(n^2)O(n^2)Insertion SortΩ(n)θ(n^2)O(n^2)Heap SortΩ(n log(n))θ(n log(n))O(n log(n))Quick SortΩ(n log(n))θ(n log(n))O(n^2)Merge SortΩ(n log(n))θ(n log(n))O(n log(n))Bucket SortΩ(n+k)θ(n+k)O(n^2)Radix SortΩ(nk)θ(nk)O(nk)
sardarg41:
ok
Similar questions