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

Element X is found in two forms: 90.0% is an isotope that has a mass of 20.0, and 10.0% is an isotope that has a mass of 22.0. What is the atomic mass of elemen
- x / 3 = 6 ( solving linear equations )
Mr. Rowley has 16 papers and 14 exit tickets to return. Ms. Rivera has 64 homework papers and 60 exit tickets to return. For each teacher, write a ratio to repr
The electric company charges 3 cents per kilowatt-hour. George used 2800 kilowatt-hours in april, 3200 kilowatt-hours in may and 3600 kilowatt-hours in June. W
Is 63ab/7a and 9ab equivalent?
What percentage of the total mass of KHCO₃ is made up by nonmetallic elements?  a. 17%  b. 83%  c. 61%  d. 20%  e. 50%
how did harriet bishop impact the future of minnesota
Need help to Write 4.01 as a percent
What word describes what people do when they spread out and live in almost every land area of the world?
- x / 3 = 6 ( solving linear equations )