A Level Computer Science 1 > Sorting algorithms > Flashcards
Define bubble sort
compare elements with each other
like rising bubble
best case of bubble sort
O(n)
worst case of bubble sort
O(n^2)
average case of bubble sort
Define merge sort
use midpoints
time complexity of merge sort
O(nlogn)