Multiple Choice
Selection sort has O(n2) complexity. If a computer can sort 1,000 elements in 4 seconds, approximately how many seconds will it take the computer to sort 1,000 times that many, or 1,000,000 elements?
A) 16
B) 1,000
C) 1,000,000
D) 4,000,000
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q20: Which of the sorts in the textbook
Q21: An algorithm that cuts the work in
Q22: The binarySearch method of the Collections class
Q23: Suppose a developer gets class XYZ files
Q24: Which of the sorts in the textbook
Q26: In each iteration, selection sort places which
Q27: A binary search is generally _ a
Q28: Suppose the call obj1.compareTo(obj2) returns 0. What
Q29: Suppose you wish to sort an array
Q30: In the textbook, we found that the