Algorithm Efficiency Analysis (2 mark)
A developer used two different sorting algorithms to arrange a list of numbers in ascending order. Algorithm A is a selection sort (time complexity of O(n^2)), and Algorithm B is a quicksort (time complexity of O(n log n)). Which algorithm is likely to be more time-efficient for sorting large datasets and why?
Algorithm Efficiency Analysis (2 mark) Read More »