Algorithm: Sorting Algorithms
Sorting algorithms are used to sort/order a set of data according to a given rule, like- ascending order, descending order, or any other custom rule.
Sorting algorithms are used to sort/order a set of data according to a given rule, like- ascending order, descending order, or any other custom rule.
There are the big O notations that we commonly encounter- Big O Notation Name Description O(1) Constant O(n) Linear O(n^2) Quadratic O(n^3) Cubic O(log(n)) Logarithmic (Log Linear) O(n log(n)) Linearithmic O(n!) Factorial O(2^n) Exponintial
Summary Algorithm Name Bubble Sort Category Sorting Algorithms Best Case Time Complexity Average Case Time Complexity Worst Case Time Complexity Space / Memory Complexity