How many comparisons would be needed to sort an array containing 100 elements using SelectionSort if the

Question:

How many comparisons would be needed to sort an array containing 100 elements using SelectionSort if the original array values were already sorted? 

1. 10,000 

2. 9,900 

3. 4,950 

4. 99 

5. None of the above

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

C++ Plus Data Structures

ISBN: 9781284089189

6th Edition

Authors: Nell Dale, Chip Weems, Tim Richards

Question Posted: