1. Sorting Algorithms
Sorting arranges elements in a specific order (ascending or descending).
- Bubble Sort – Repeatedly swaps adjacent elements if they are in the wrong order.
- Selection Sort – Selects the smallest/largest element and places it in order.
- Insertion Sort – Builds the sorted array one element at a time.
- Merge Sort – Uses the divide-and-conquer technique to sort.
- Quick Sort – Selects a pivot and partitions elements around it.
- Heap Sort – Uses a binary heap to sort efficiently.
- Radix Sort – Sorts numbers digit by digit.
- Counting Sort – Counts occurrences of elements (used for small range values).
- Sorting
2. Searching Algorithms
Used to find an element in an array.