subject

A) examine the code given below to compute the average of an array: total = 0; for(j=0; j < k; j++) { sub_total = 0; /* nested loops to avoid overflow */ for(i=0; i < n; i++) sub_total += a[j*n + i]; total += sub_total/n; } average = total/k; when designing a cache to run this application, given a constant cache capacity and associativity, will you want a larger or smaller block size? why?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
What is the term for water wave that is created by an underwater earthquake
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
During physical science class ben and jerry connected three identical lightbulbs in parallel to a battery where happens when ben removes one of the lightbulbs from it’s socket
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
You know the right answer?
A) examine the code given below to compute the average of an array: total = 0; for(j=0; j < k...
Questions
Questions on the website: 13722362