Gaussian elimination (pivoting)

Click For Summary

Homework Help Overview

The discussion revolves around the process of Gaussian elimination with a focus on pivoting techniques. The original poster expresses confusion regarding the correct method for selecting pivot elements in a matrix, contrasting their textbook understanding with their lecturer's approach.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Participants explore the differences between the textbook method of selecting pivot elements and the lecturer's method, questioning the validity of the latter. There are attempts to clarify the steps involved in both approaches, including the selection of maximum elements in rows and columns.

Discussion Status

The discussion is ongoing, with participants seeking clarification on the pivoting process. Some have offered insights into the potential correctness of both methods, while others are still trying to understand the implications of the differing approaches.

Contextual Notes

There is mention of specific images referenced in the discussion that illustrate the methods being debated, which may contribute to the confusion. Participants have also noted the importance of using LaTeX for clarity in presenting mathematical expressions.

  • #31
Mark44 said:
The you look at a33 as a potential pivot.
?? What do you mean ?
 
Physics news on Phys.org
  • #32
fonseh said:
?? What do you mean ?
Then you look at a33 as a potential pivot.
 
  • #33
Ray Vickson said:
Generally, we start in column 1 and move the numerically largest value in that column to position (1,1), perhaps by swapping some row i and row 1. Then we do row operations to zero out the remaining elements in column 1.

As I recall, some computer implementations of Gaussian elimination that concern themselves with "numerical methods" begin by switching rows and columns so the element with largest absolute value (picked from the all elements in the entire matrix) is in position 1,1. They follow a similar policy to select subsequent pivots. However, for making theoretical conclusions about the algorithm of Gaussian elimination or prescribing how to do hand-calculations it is simpler to consider an algorithm where less freedom-of-choice is allowed in selecting pivots.

It would be challenging exercise in scholarship to determine if there is a "standard" definition of "Gaussian elimination" as a unique algorithm.
 
  • #34
Stephen Tashi said:
As I recall, some computer implementations of Gaussian elimination that concern themselves with "numerical methods" begin by switching rows and columns so the element with largest absolute value (picked from the all elements in the entire matrix) is in position 1,1. They follow a similar policy to select subsequent pivots. However, for making theoretical conclusions about the algorithm of Gaussian elimination or prescribing how to do hand-calculations it is simpler to consider an algorithm where less freedom-of-choice is allowed in selecting pivots.

It would be challenging exercise in scholarship to determine if there is a "standard" definition of "Gaussian elimination" as a unique algorithm.

In my post I did mention that some implementations just seek a pivot element whose absolute value exceeds some threshold, without bothering to look for the largest. Of course, some implementations do not move rows at all, but just store pointers and lists and the like in order to keep track of which rows have already originated pivots and which are still available for new pivots.

And, of course, with exact, rational arithmetic we do not need to worry at all about the magnitude of the pivot element, just so long as it is nonzero. I believe that "pure" (original) Gaussian elimination is like that; only "floating-point" Gaussian elimination needs to, and does exercise care in the pivot choice.
 
  • #35
Mark44 said:
What is so difficult to understand here? In the visible image of your post, they swapped rows 1 and 2. As I mentioned before, this is one of the three possible row operations. The next operation is to replace row 2 by -.02/500 * R1 + R2. This is another of the three row operations I mentioned. The a2, 1 entry in the second row will be 0 after this operation.
Or the notes in this picture is misleading ? It mentioned that the a11 or a22 is 0 , not when we pivot the a11 , the a21 and a31 is 0 ...
 

Attachments

  • hhh.jpg
    hhh.jpg
    38 KB · Views: 407
  • #36
fonseh said:
Or the notes in this picture is misleading ? It mentioned that the a11 or a22 is 0 , not when we pivot the a11 , the a21 and a31 is 0 ...

The note you post is 100% clear, so you must be reading it incorrectly. Remember: after swapping rows 1 and ##i##, the old row ##i## becomes the new row 1, and vice-versa. The old ##a_{i1}## becomes the new ##a_{11}##, and the old ##a_{11}## becomes the new ##a_{i1}##.
 
Last edited:
  • #37
Ray Vickson said:
The note you post is 100% clear, so you must be reading it incorrectly. Remember: after swapping rows 1 and ##i##, the old row ##i## becomes the new row 1, and vice-versa. The old ##a_{i1}## becomes the new ##a_{11}##, and the old ##a_{11}## becomes the new ##a_{i1}##.
It didnt mention about when after swapping row , the old a11 will become 0
 
  • #38
fonseh said:
It didnt mention about when after swapping row , the old a11 will become 0

No, you didn't, but the posted note DID, and that is all that counts here. You are trying to understand what the note is all about, and whether the note is correct. It is correct. (The note itself did not say that the old row i becomes the new row 1, etc., but it takes that as understood by the reader.)
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
Replies
13
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K