

MCQOPTIONS
Saved Bookmarks
1. |
What is the number of swaps required to sort n elements using selection sort, in the worst case? |
A. | Θ(n) |
B. | Θ(n log n) |
C. | Θ(n2) |
D. | Θ(n2 log n) |
Answer» B. Θ(n log n) | |