Sorting_Algorithms
Sorting_Algorithms
What is Sorting?
• Sorting is the process of arranging data in a specific order, such as
ascending or descending.
2. Selection Sort
3. Insertion Sort
◦ Divides the array into halves, sorts them, and merges them.
◦ Time Complexity:
▪ Best: O(n log n)
▪ Worst: O(n log n)
▪ Average: O(n log n)
2. Quick Sort
Applications of Sorting