Computer Science, asked by Manjot2619, 11 months ago

Consider the array A[] = {5,4,9,1,3} apply the insertion sort to sort the array . Consider the cost associated with each sort is 25 rupees, what is the total cost of the insertion sort for sorting the entire array

Answers

Answered by karanlakhwinder3
0

Answer: ( A)

Explanation:

When the element 1 reaches the first position of the array two comparisons are only required hence 25 * 2= 50 rupees.

*step 1: 4 6 8 1 3 .

*step 2: 1 4 6 8 3.

Similar questions