作者hank5925 (树爷)
看板NTU-Exam
标题[试题] 99下 林智仁 数值方法 期末考
时间Tue Jun 28 09:04:44 2011
课程名称︰ 数值方法
课程性质︰ 系选修
课程教师︰ 林智仁
开课学院: 电机资讯学院
开课系所︰ 资工所
考试日期(年月日)︰ 100.6.14
考试时限(分钟): 180
是否需发放奖励金: 是
(如未明确表示,则不予发放)
试题 :
Numerical Methods
Midterm 3
June 14, 2011
* Please give details of your calculation. A direct answer without explana-
tion is not counted.
* Your answers must be in English.
* Please carefully read problem statements.
* During the exam you are not allowed to borrow other's class note.
* Try to work on easier questions first.
Problem 1 (10%)
Given the following linear system
┌ ┐┌ ┐ ┌ ┐
│ 3 1 1 ││x_1│ │1│
Ax = │ 1 2 1 ││x_2│ = b = │1│ (1)
│ 1 1 1 ││x_3│ │1│
└ ┘└ ┘ └ ┘
1. Is the matrix A symmetric positive definite?
2. Find the solution of (a) by any method.
Problem 2 (35%)
1. Do the first CG iteration to solve (1).
2. Do the second CG iteration to solve (1).
3. Do the third CG iteration to solve (1).
4. We would like to study how the direction p_3 of the third iteration is
obtained. Put your obtained r_2, p_1 and p_2 into the following probl-
em and solve
2
min || p-r_2 ||
p ⊥
subject to p∈{ Ap_1, Ap_2 } .
Explain your findings.
Hint: the calculation may be complicated. However, you should know how to
check results after each iteration. Then this task will not be that diffic-
ult.
Problem 3 (15%)
In deriving the direction p_k of conjugate gradient method, we use a lemma
to know that we need to solve
min || r_(k-1) - AP_(k-1)z ||.
z
Then after some derivations, we have that
|| r_(k-1) - AP_(k-1)z ||
μ 2 2 μ 2
= (1 + ────) || r_(k-1) || + || - ──── r_(k-2) - AP_(k-2)w ||,
α_(k-1) α_(k-1)
┌ ┐
│ w │
where z = │ μ│ (2)
└ ┘
Formally prove that if w, μare the optimal solution of minimizing (2), then
-w / (μ/α_(k-1)) must be the solution of
min || r_(k-2) - AP_(k-2)z ||.
z
Problem 4 (15%)
Given any linear system
Ax = b, (3)
with A symmetric positive definite. Assume now we solve
T T
P A Px = P b, (4)
instead, where P is a permutation matrix.
1. If we apply CG to solve both (3) and (4), will the number iterations
be different? We assume exact operations without any numerical errors.
We also assume that the stopping condition is when the exact solution
of (3) or (4) has been found.
2. How about vectors r_k, p_k and scalars α_k, β_k ? If they are chang-
ed, what are the new values?
Problem 5 (25%)
Given three points (1,3), (2,1), and (3,3). Find the spline approximation.
Draw a figure to show how s_j(x) looks like.
(a) Consider the following boundary condition:
s_0"(x_0) = 0 and s_(n-1)"(x_n) = 0
(b) Consider the following boundary condition:
s_0'(x_0) = -1 and s_(n-1)'(x_n) = 1
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.30.134