PROGRAM4-DSA
PROGRAM4-DSA
PROGRAM4-DSA
return 0;
}
OUTPUT:
LEARNING OUTCOMES:
1.Understanding of Quick Sort Algorithm: Gained an understanding of the divide-and-
conquer approach used in Quick Sort, which involves partitioning an array and recursively
sorting the subarrays.
2. Recursive Problem Solving: Developed the ability to apply recursion in sorting algorithms,
breaking down a problem into smaller, manageable subproblems.
3. Time Complexity: Quick Sort is known for its average O(n log n) time complexity,
although in the worst case (e.g., when the array is already sorted), it can degrade to O(n²).