Step 1: Examine the given array.
The array is already sorted in ascending order.
Step 2: Analyze Insertion Sort behavior.
Insertion sort performs optimally when the input array is already sorted.
Each element is compared only once with its immediate predecessor, resulting in exactly n − 1 comparisons for an array of size n.
Step 3: Compare with other sorting algorithms.
Selection Sort:
Always performs n(n − 1)/2 comparisons, independent of the input order.
Merge Sort:
Requires Θ(n log n) comparisons even when the array is already sorted.
Quick Sort (last element as pivot):
For a sorted array, this choice of pivot leads to the worst-case behavior
with Θ(n²) comparisons.
Final Conclusion:
Among the given algorithms, Insertion Sort uses the least number of
comparisons when the array is already sorted.