Multiple Choice
Merge sort has a O(n log2(n) ) complexity. If a computer can sort 1,024 elements in an amount of time x, approximately how much longer will it take the computer to sort 1,024 times that many, or 1,048,576 elements?
A) 1,024 times longer
B) 2,048 times longer
C) 8,192 times longer
D) 1,048,576 times longer
Correct Answer:

Verified
Correct Answer:
Verified
Q80: Which sort algorithm starts by partitioning the
Q82: Assume we are using quicksort to sort
Q83: A portion of your program implements a
Q84: Which function has a faster growth rate:
Q86: The code segment below displays a pattern
Q87: Consider the following code snippet: public static
Q88: If the Arrays static method binarySearch is
Q89: The sort method of the Arrays class
Q90: In the worst case, a linear search
Q96: Which sort algorithm is used in the