Almightytay4542 Almightytay4542
  • 21-11-2017
  • Computers and Technology
contestada

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 long will it take the computer to sort 1,024 times that many, or 1,048,576 elements?

Respuesta :

W0lf93
W0lf93 W0lf93
  • 30-11-2017
1,048,576 is 1,024 times 1,024, 1,024 * 1,024 or 1,024 squared or 1,024^2. If a computer takes x amount of time to sort 1,024 elements then the relationship is a 1 to 1. Therefore the computer will take x times x or x^2 (x squared) amount of time to sort 1,048,576.
Answer Link

Otras preguntas

Type of response in which physical reactions result from stress
The meaning of an artwork almost never relies on the medium or media used by the artist. a. True b. False
Which TWO of the following statements best express the central ideas of the text?
Why is aerobic respiration more efficient than fermentation?
THIS IS THE QUESTION TO THE BACK PAGE! PLS HELP ME ASAP (@sqdancefan) THANK YOU!! (Random answers gets moderated.)
During World War II, Bell Aircraft had the GREATEST impact on which area in Georgia?
jack noticed on a sale on his favorite model of all-terrian (atv) The sales person said the company was cutting the price for that weekend so jack got a 7% disc
What is Erie Canal and how did it affected the American economy
Kenya has a pile of salt on the counter. She uses a pinch of it for a meal. Which of the following physical properties of the salt changes? Density
A 0.1 m solution of which salt is the most basic? (a) nano3 (b) naclo4 (c) nahso4 (d) nahco