Compare the efficiency of Selection Sort and Insertion Sort

Homework Assignment

Requirements: Compare the efficiency of Selection Sort and Insertion Sort.

Approach: Evaluate the following Selection Sort and Insertion Sort codes in at least one case (best, worst, or average) and count the number of type of operations performed (assignments, comparisons, and overall, separately)

. For counting them, you need to add in the right place specific statements to increment the counters for assignments and/or comparisons, wherever needed

You may also like...