midterm-f09 - 18.335 Mid-term Exam(Fall 2009 Problem 1...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 18.335 Mid-term Exam (Fall 2009) Problem 1: Caches and QR (30 pts) In class, we learned the Gram-Schmidt and modified Gram-Schmidt algorithms to form the (reduced) A = QR factorization of an m × n matrix A (with in- dependent columns a 1 ,a 2 ,... and n ≤ m ). In particular, for simplicity let us consider the computation of the m × n matrix Q only (whose columns are the orthonormal basis for the column space of A ), not worrying about keeping track of R , and for simplicity consider classical (not modified) Gram-Schmidt: q 1 = a 1 / k a 1 k for j = 2 , 3 ,...,n v j = a j- ∑ j- 1 i =1 q i ( q * i a j ) q j = v j / k v j k In this question, you will consider the cache complexity of this algorithm with an ideal cache of size Z (no cache lines). If the algorithm is implemented directly as written above, there is little temporal locality and Θ( mn 2 ) misses are required, independent of Z . You are also given that you can multiply an m × n matrix with an n × p matrix using Θ( mn +...
View Full Document

This note was uploaded on 09/26/2010 for the course MECHANICAL 2.001 taught by Professor Prof.carollivermore during the Spring '06 term at MIT.

Page1 / 2

midterm-f09 - 18.335 Mid-term Exam(Fall 2009 Problem 1...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online