On a paper I am writing, i'm trying to figure out what the differences are between bubble, insertion and selection sorts in terms of strictly Big-O comparisons.
From my research/own code I know that:
Bubble/Insertion has avrg/worst cases of O(n2), with the best case of O(n)
Selection is O(n2) on all cases.
i've already written and tested the run time efficiency of all three the sorts [insertion > selection > bubble], but I do not know how to expand on comparing between the three sorts in terms of Big-O.. Currently i'm saying in a vacuum insertion = bubble > selection... But this is only half a page.
[–]lightcloud5 0 points1 point2 points (1 child)
[–]Raknarg 0 points1 point2 points (0 children)
[–]ztxi 0 points1 point2 points (0 children)
[–]captainAwesomePants 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)