0 votes 0 votes Consider an array A[100] and each element occupies 4 word a 32-word cache is used and divided into an 8-word block What is the hit ratio for for(i=0;i<100;i++) x=A[i]+100; No of time block 0 is modified. CO and Architecture co-and-architecture array + – pream sagar asked Dec 20, 2018 • edited Jul 28, 2022 by Shubham Sharma 2 pream sagar 500 views answer comment Share Follow See all 9 Comments See all 9 9 Comments reply joshi_nitish commented Dec 20, 2018 reply Follow Share Cache line size and number of cache lines should be known along with how the array is array is arranged to answer this qsn.. 0 votes 0 votes kumar.dilip commented Dec 20, 2018 i edited by kumar.dilip Dec 20, 2018 reply Follow Share A: 50% B: 13. 0 votes 0 votes Hemanth_13 commented Dec 20, 2018 reply Follow Share It should be 50% and 13 @kumar.dilip 0 votes 0 votes pream sagar commented Dec 20, 2018 reply Follow Share how please explain i think 12 is right ans 0 votes 0 votes kumar.dilip commented Dec 20, 2018 reply Follow Share Hemanth_13 I didn't count the first one. ==>> We have to count the first one also(A[0]A[1]) ??? 0 votes 0 votes kumar.dilip commented Dec 20, 2018 reply Follow Share Because in the question asking for the number of times Block 0 modified Not acess. 0 votes 0 votes Hemanth_13 commented Dec 20, 2018 reply Follow Share Yes I considered that as well ceil(100/8) ==>13 not sure :) . @pream sagar can you provide the answer 0 votes 0 votes pream sagar commented Dec 20, 2018 reply Follow Share 0,8,16,24,32,40,48,56,64,72,80,88 THESE ARE indexes which are replaced why we count A[96] also so i think only 12 time block 0 is modified 0 votes 0 votes pream sagar commented Dec 20, 2018 reply Follow Share this problem was seen in made easy notes they give 13 0 votes 0 votes Please log in or register to add a comment.