Derive an expression for the hit raito of a direct mapped cache assuming there is an equal likelihood of any location in the main memory being accessed (in practice this assumption is not true). Repeat for a two-way set-associative mapped cache. Determine the size of memory at which the direct mapped cache has hit ratio within 10 per cent of the set-associative cache.