Week 4 Flashcards

1
Q

How to solve linear equation using back substitution?

A

If we have a diagonal matrix, then we can easily solve the first one. Then we can fill the value in in the row above, and continue from there.

I.e.

  1. Prepare space for the solution x = (x1, …, xn)
  2. Solve starting at i = n
  3. Calculate the remaining sum: s.i = sum j >I a.ij * xj, where the sum is defined as s.i = 0 if I = n
  4. Compute solution xi = (bi-si)/aii
  5. Decrease I, repeat from 3 while i > 0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does Gaussian elimination work?

A
  1. Set i =1
  2. Wipe column I below pivot a.ii by:
    1. Set j = i + 1
  3. 2 Calculate multiplicity f = a.ji/a.ii
  4. 3 Subtract f times row I from row j: a’.jk = a jk - f a/ik, k ≥ I
  5. 4 Increase j, if j ≤ n goto 2
  6. Increase I, if i ≤ n - 1 goto step 2
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a trivial pivot?

A

When you swap rows when needed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a partial pivot?

A

When you swap rows to get larger (absolute) pivot in this column

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is complete pivoting?

A

When you swap rows and columns to get the largest absolute pivot from the remaining submatrix. (This is not recommended, the gain is small, but it requires much more work.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What’s scaled partial pivoting?

A

Swapping rows to get the largest absolute relative pivot in this column.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to partial pivot?

A
  1. Jet j* = i
  2. For j in i + 1,.., n
    - If |a.ji| > |a.jI| then j = j
    - Use j* for optimal row
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why scale partial pivot?

A

If factor f leads to a large subtraction factor, large rounding errors may accumulate.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How to Scaled Partial Pivot?

A
  1. Find s.j = max 1≤k≤n |a.jk.^(0)|, j = 1, …, n^1.
  2. Choose pivot a.ki^(i -1) with k = argmax i≤j≤n (a.ji^(i-1))/(s.j)
  3. Use a.ki^(i-1) as the pivot for eliminating th ei-th column
How well did you know this?
1
Not at all
2
3
4
5
Perfectly