Multiple Choice
How many comparisons does selection sort make when sorting an array of length n?
A) log(2n)
B) n
C) n( n + 1) / 2
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q12: The code segment below displays a pattern
Q13: Assume that names is an array of
Q14: What must be true about the return
Q15: In big-Oh notation, suppose an algorithm requires
Q16: Which sort algorithm starts by partitioning the
Q18: The largestPosition method below returns the index
Q19: Which of the following statements about running
Q20: Which of the following statements correctly specifies
Q21: If a call to the Arrays static
Q22: Suppose objects a and b are from