what are the differences between direct mapping associative mapping and set-associative mapping?
Direct mapping maps each block of main memory into only one possible cache line. Associative mapping permits each main memory block to be loaded into any line of the cache. The set-associative mapping combines both methods while decreasing disadvantages.