insertion sort, best case + worst case
θ(n)
θ(n^2)
selection sort, best case + worst case
θ(n^2)
θ(n^2)
bubble sort, best case + worst case
θ(n^2)
θ(n^2)
merge sort, best case + worst case
θ(nlogn)
θ(nlogn)
shunting yard algortihm
O(n)
dictionary operations in an AVL tree
O(logn)
dictionary operations in a BST
O(n)
best case: balanced tree omega(logn)