Docsity

Homework 3 for Math 571 (Winter 2009), Assignments of Mathematics

Toggle sidebar
bg1
Math 571 (Winter 2009): Homework 3
Due Date: See web page
[i] In the class, we derived the operation count for the reduced QR factorization using the
modified Gram-Schmidt method. Suppose the QR factorization of Ais used to solve the
linear systems
Ax1=b1, Ax2=b2. . . , Axk=bk
for x1,x2,...,xk. Assuming Ais a nonsingular m×mmatrix, determine the total operation
count in terms of mand k.
[ii] Assume that A,Band Care m×mmatrices stored in column major order. To carry
out the matrix-matrix product C=AB, we can write a program that first initializes Cto 0
and then loops over
cij =cij +aikbkj .
For the looping, the indices i,jand kare all varied from 1 to m. The loops can be ordered
in any of six different ways. For each of the six orderings, the operation count is 2m3−m2.
Which of the six orderings will be the fastest in practice and why?
[iii] In the class, we discussed the use of Hadamard matrices in cellular communication. The
2×2 Hadamard matrix is given by
H2=1 1
1−1.
If Hnis the n×nHadamard matrix, the 2n×2nHadamard matrix is given by
H2n=HnHn
Hn−Hn.
If nis a power of 2, prove that the columns of Hnare orthogonal to each other.
[iv] Let Abe an m×nmatrix with m≥nand let A=QR be its reduced QR factorization.
If exactly kof the diagonal entries of Requal 0, with 1 ≤k < n, what can you say about
the rank of A? Justify your answer.

Partial preview of the text

Download Homework 3 for Math 571 (Winter 2009) and more Assignments Mathematics in PDF only on Docsity!

Math 571 (Winter 2009): Homework 3

Due Date: See web page

[i] In the class, we derived the operation count for the reduced QR factorization using the modified Gram-Schmidt method. Suppose the QR factorization of A is used to solve the linear systems Ax 1 = b 1 , Ax 2 = b 2... , Axk = bk

for x 1 , x 2 ,... , xk. Assuming A is a nonsingular m×m matrix, determine the total operation count in terms of m and k.

[ii] Assume that A, B and C are m × m matrices stored in column major order. To carry out the matrix-matrix product C = AB, we can write a program that first initializes C to 0 and then loops over cij = cij + aikbkj.

For the looping, the indices i, j and k are all varied from 1 to m. The loops can be ordered in any of six different ways. For each of the six orderings, the operation count is 2m^3 − m^2. Which of the six orderings will be the fastest in practice and why?

[iii] In the class, we discussed the use of Hadamard matrices in cellular communication. The 2 × 2 Hadamard matrix is given by

H 2 =

If Hn is the n × n Hadamard matrix, the 2n × 2 n Hadamard matrix is given by

H 2 n =

Hn Hn Hn −Hn

If n is a power of 2, prove that the columns of Hn are orthogonal to each other.

[iv] Let A be an m × n matrix with m ≥ n and let A = QR be its reduced QR factorization. If exactly k of the diagonal entries of R equal 0, with 1 ≤ k < n, what can you say about the rank of A? Justify your answer.