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

2. in your opinion, do people generally care about sustainability? do you think that most people want to give back simply to do something good, or do you believ
How and why did the USA win World War 2
InstructionsSay where Marie does each of these activities. Write a complete sentence using the most logical place from the list provided. Follow the model. un c
Work out the value of Z ABC. С 4X B. 7X A
how many people died in taxes on the summer
On arriving at the land of the Cyclops, Ulysses hopes to meet a hospitable host, but he does not get any hospitality. Review this description that Ulysses gives
HELP SOMEONE please review the image :D
How does Neptune’s orbit affect its climate? A. Its retrograde orbit creates a low troposphere. B. Its equatorial orbit creates unpredictable storms. C. Its
2. Multiply and simplify
Write a multiplication equation that represents the equation:how many 3/8s are in 5/4?