Computer Science, asked by sumitsaini4217, 1 year ago

Explain the time complexity of selection sort. Also give its derivation

Answers

Answered by BSJbanerjee
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)


sardarg41: ok
sardarg41: punjab acha ha yah kasmir acha lga apko
BSJbanerjee: both r good but Kashmir mein main bachpan se hoon toh Kashmir se lagaav zyaada hai
sardarg41: ok
sardarg41: nice
sardarg41: study kya krti ho ap
BSJbanerjee: means??
sardarg41: kon c class me ho ap
BSJbanerjee: 9 th
sardarg41: ok
Similar questions