Solved

Selection Sort Has O(n2) Complexity

Question 25

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions