Learning objectives
After this class, you should be able to:
- Explain the ideal cache model.
- Derive the cache complexity of the two simple matrix multiplication algorithms discussed in class, and of the cache aware algorithm discussed in class.
- Given an algorithm, derive its cache complexity.
- Given an algorithm that is cache-inefficient, modify it to make it more efficient.
Reading assignment
- Handout on cache aware and cache oblivious algorithms.
Exercises and review questions
- Questions on current lecture's material
- If matrices were stored in column major order, then show two simple algorithms, one which has a cache complexity of theta(n3) and one with cache complexity of theta(n3/L).
- Questions on next lecture's material
- None.