Input Math Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

If selection sort has an input size of 10000, how many move operations will it perform? What if the input changes to 20000?

A

part 1: 10000
part 2: 20000

Note: the class implementation of selection sort has a swap method that is not adaptive (it will swap the elements, even if they both refer to the same element)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly