Deleting from front of Array
O(n)
Deleting from end of array
O(1)
Insertion into ordered array
O(n)
Reading from array
O(1)
Reading from linked list
O(n)
Insertion into linked list
0(1)
Searching ordered array
O(1)
Quicksort
Average: O(N log N)
Worst: O(N^2)
Quickselect
O(n)
Searching linked lists
O(n)
Deletion in Linked List
O(n)
O(1) at beginning
Searching binary tree
O(LogN)
Inserting in Binary Search Tree
O(logN)
Deletion in Binary search tree
O(logN)
Inserting into a heap
O(logN)
Deletion from Heap
O(logN) only delete top node
Bubblesort
O(n^2)
Selection Sort
O(n^2) twice as fast as bubble sort
Insert Sort
O(n^2)