HW 2025 3
HW 2025 3
1
5. Let A ∈ Rn×n . Consider the QR algorithm
For k =1:n-1
Compute reflector Q = I- aplha * u * u’ such that
(QA)(k,k) = - sigma and (QA)(k+1:n, k) = 0
Compute w = A’ * u and A = A - alpha * u * w’
end
(a) Show that at the k-th step, the rank one update A ← A - alpha * u * w’ does
not affect the first k − 1 rows and columns of A.
(b) Modify above algorithm so that the strict upper triangular part of A contains the
strict upper triangular part of R (where A = QR), the diagonal entries of R are
stored in an extra array and the lower triangular part of A contains the householder
vectors (that is, vectors u’s that determine the reflectors).