Big O Time Compleixy On Sorting Algs Flashcards
1
Q
Worst and best case for bubble
A
Worst : o(n^2)
Best : o(n)
2
Q
Worst and best case for merge
A
Worst case : o(log n)
Best case : o(log n)
3
Q
Worst and best case for insertion
A
Worst : o(n^2)
Best : o(n)