Starting from:

$30

CSE6643 Homework 2 Solved

Notice: For the computational problems, you must design your own ways, such as using tables and plots etc, to present the results you obtain. And you must show the procedure you take, and explain the results you get, and draw conclusions if you have any. Computer code is not considered as an explanation. Please upload your code in T-square, and return your HW in class on or before the Due date.

•    Problem 1: Show that (1+        ) and (1+  when 

•    Problem 2: Consider a matrix

 .

(1)   Compute A−1 and

(2)   Given examples for b,δb,x and δx satisfying

                                                                       Ax = b,        A(x + δx) = b + δb,

such that   is small, but   is large.

•    Problem 3: Given x ∈ C2, determine a unitary matrix of the form

  ,

where c ∈ R and c2 + |s|2 = 1, such that the second component of Q∗x is zero.

•    Problem 4: Modify the Householder QR algorithm so that it can efficiently handle the case when A ∈ Rm×m has lower bandwidth p and upper bandwidth q. Present you algorithm in a pseudo code fashion, and compute its computational cost in terms of m. Write your own code to perform your algorithm. Use your code to compute the QR factorization for a m×m symmetric Toeplitz matrix with first column given by [10,3,2,1,0,··· ,0]T. Vary m to confirm your estimate of the computational cost.

•    Problem 5: The following experiments are on random matrices and their QR factorizations. Hint: you may want to read Lecture 9 in the reference book by Trefethen and Bau before you work on this part of the project.

(a)    Design a procedure to create a random matrix A of dimension n×n with singular values given as 3−1,3−2,··· ,3−n.

(b)   Write your own code for classical Gram-Schmidt and modified Gram-Schmidtalgorithms. Use your code to compute QR factorizations for the matrix A generated in (a). Compare and comment your results. If you find something interesting, you should try to explain it.

(c)    Write your own code for Householder transform and perform it to the matrix A.

Form the Q matrix from your procedure and comment on the results.

Run your experiments with n = 100, n = 200 and n = 300 respectively. Repeat the experiments for different random matrices.

More products