Please enable JavaScript.
Coggle requires JavaScript to display documents.
Algorithms - Coggle Diagram
Algorithms
Sorting
Bubble sort
Worst case
O(n^2)
Selection sort
Worst case
O(n^2)
Insertion sort
Worst case
O(n^2)
Best case
O(n)
Average case
O(n^2 / 2)
Searching
Linear search
Worst case
O(n)
Best case
O(1)
Binary search
Worst case
O(log N)
Best case
O(1)