Logo

Question preview

Map the cache

What this preview is

About this preview

Map the cache is a medium quant interview question on computer architecture.

Unlock full access to getcracked

Join to unlock this question, detailed solutions, and our complete library of quant finance interview prep.

What this cache-mapping interview question tests

This is a medium-difficulty systems question that probes whether you understand the layered relationship between physical memory, cache hardware, and address translation. It requires you to reason backwards from cache parameters (line size, total capacity, associativity) to derive the bit-width of address fields.

To solve problems like this, you need to know how a direct-mapped cache partitions a memory address into tag, set-index, and block-offset fields. The question rewards careful arithmetic and clear understanding of what each field represents and why its width matters for hardware correctness.

  • Cache line size and block-offset bits
  • Set associativity and indexing
  • Total cache capacity and set count
  • Address field decomposition in direct-mapped caches