a logo for the course

Matrix computations &
Numerical linear algebra

David Gleich

Purdue University

Fall 2012

Course number CS-51500

Tuesday and Thursday, 10:30-11:45am

Location Lawson 1106


Homework 6

Homework 6

Please answer the following questions in complete sentences in a clearly prepared manuscript and submit the solution by 5pm on Tuesday, November 20th, 2012. You should submit your PDF file to Blackboard http://mycourses.purdue.edu as well as your Matlab files.

Problem 0: List your collaborators.

Please identify anyone, whether or not they are in the class, with whom you discussed your homework. This problem is worth 1 point, but on a multiplicative scale.

Problem 1: Prove or disprove, the CG edition

These are slightly longer questions.

  1. CG will converge for a symmetric, negative definite matrix.

  2. You can use CG to solve when is full-rank, non-symmetric given a function to compute and .

  3. Let be the matrix . Then CG will converge in two steps.

  4. CG will always converge in at most steps in exact arithmetic.

  5. You can use CG with the symmetric matrix .

  6. Let be singular, with all other eigenvalues positive. Consider where is in the range of . Then CG (in exact arithmetic) will converge to the solution of .

Problem 2: Orthogonality of Lanczos

Let and , , .
Consider the -by- matrix with diagonal elements

\lambda_i = \lambda_1 + (i-1)/(n-1) (\lambda_n - \lambda_1)\rho^{n-i}.

(This is called the Strako\v{s} matrix.)

  1. Implement the Lanczos method starting from a a random vector and the vector and then plot the quantity for to . Describe what you SHOULD find and what you actually find. Do your results depend on the starting vector?

  2. Plot for the to . Also plot for to .

  3. What is What should it be?

  4. Plot for to .

Problem 3: Finding the residual

In the Lanczos derivation of CG, we showed how to efficiently compute the approximate solution by determining a recurrent for where . However, we did not determine how to update the residual. Determine how to adjust the Lanczos CG algorithm from the notes to compute the residual, or the norm of the residual, at each iteration with only a linear amount of extra work (that is, you CANNOT do another matrix-vector product).

Problem 4: Extra credit

Coloring with CG!