Sorting: Data Structures and Algorithms in Java 1/43
Sorting: Data Structures and Algorithms in Java 1/43
Sorting
Complexity O(n2)
• Conquer
– Apply the same algorithm to each half
≤ pivot > pivot