Finding hit ratio of a cache
Since there is 8 word block, 2 element can stay in one block.
Now notice that each element is refered twice, one read and one write operation.
So when in a block when 1st element is refered for read, it will be miss, and hence that block will be copied to cache.
Now 2nd reference to that 1st element will be hit, as well as both reference to 2nd element will also ne hit sience block has 2 elements.
So out of 4 reference, 1 miss and 3 hit for one block. Gets repeated for each and every block.
So hit 3/4
and miss 1/4