Pivot element

Pivot element

The pivot or pivot element is the element of a matrix, an array, or some other kind of finite set, which is selected first by an algorithm (e.g. Gaussian elimination, Quicksort, Simplex algorithm, etc.), to do certain calculations. In the case of matrix algorithms, a pivot entry is usually required to be at least distinct from zero, and often distant from it; in this case finding this element is called pivoting. Pivoting may be followed by an interchange of rows or columns to bring the pivot to a fixed position and allow the algorithm to proceed successfully, and possibly to reduce round-off error.

Pivoting might be thought of as swapping or sorting rows or columns in a matrix, and thus it can be represented as multiplication by permutation matrices. However, algorithms rarely move the matrix elements because this would cost too much time; instead, they just keep track of the permutations.

The pivot element in quicksort is the element that is selected as the boundary for partitioning. Quicksort sorts all elements "left" and "right" of the pivot element recursively.

Overall, pivoting adds more operations to the computational cost of an algorithm. These additional operations are sometimes necessary for the algorithm to work at all. Other times these additional operations are worthwhile because they add numerical stability to the final result.

Contents

Examples of systems that require pivoting

In the case of Gaussian elimination, the algorithm requires that pivot elements not be zero. Interchanging rows or columns in the case of a zero pivot element is necessary. The system below requires the interchange of rows 2 and 3 to perform elimination.


\left[ \begin{array}{ccc|c}
1 & -1 & 2 & 8 \\
0 & 0 & -1 & -11 \\
0 & 2 & -1 & -3
\end{array} \right]

The system that results from pivoting is as follows and will allow the elimination algorithm and backwards substitution to output the solution to the system.


\left[ \begin{array}{ccc|c}
1 & -1 & 2 & 8 \\
0 & 2 & -1 & -3 \\
0 & 0 & -1 & -11
\end{array} \right]

Furthermore, in Gaussian elimination it is generally desirable to choose a pivot element with large absolute value. This improves the numerical stability. The following system is dramatically affected by round-off error when Gaussian elimination and backwards substitution are performed.


\left[ \begin{array}{cc|c}
0.00300 & 59.14 & 59.17 \\
5.291 & -6.130 & 46.78 \\
\end{array} \right]

This system has the exact solution of x1 = 10.00 and x2 = 1.000, but when the elimination algorithm and backwards substitution are performed using four-digit arithmetic, the small value of a11 causes small round-off errors to be propagated. The algorithm without pivoting yields the approximation of x1 ≈ 9873.3 and x2 ≈ 4. In this case it is desirable that we interchange the two rows so that a21 is in the pivot position


\left[ \begin{array}{cc|c}
5.291 & -6.130 & 46.78 \\
0.00300 & 59.14 & 59.17 \\
\end{array} \right].

Considering this system, the elimination algorithm and backwards substitution using four-digit arithmetic yield the correct values x1 = 10.00 and x2 = 1.000.

Partial and complete pivoting

In partial pivoting, the algorithm selects the entry with largest absolute value from the column of the matrix that is currently being considered as the pivot element. Partial pivoting is generally sufficient to adequately reduce round-off error. However for certain systems and algorithms, complete pivoting (or maximal pivoting) may be required for acceptable accuracy. Complete pivoting considers all entries in the whole matrix, interchanging rows and columns to achieve the highest accuracy. Complete pivoting is usually not necessary to ensure numerical stability and, due to the additional computations it introduces, it may not always be the most appropriate pivoting strategy.

Scaled pivoting

A variation of the partial pivoting strategy is scaled partial pivoting. In this approach, the algorithm selects as the pivot element the entry that is largest relative to the entries in its row. This strategy is desirable when entries' large differences in magnitude lead to the propagation of round-off error. Scaled pivoting should be used in a system like the one below where a row's entries vary greatly in magnitude. In the example below, it would be desirable to interchange the two rows because the current pivot element 30 is larger than 5.291 but it is relatively small compared with the other entries in its row. Without row interchange in this case, rounding errors will be propagated as in the previous example.


\left[ \begin{array}{cc|c}
30 & 591400 & 591700 \\
5.291 & -6.130 & 46.78 \\
\end{array} \right]

References

This article incorporates material from Pivoting on PlanetMath, which is licensed under the Creative Commons Attribution/Share-Alike License.

  • R. L. Burden, J. D. Faires, Numerical Analysis, 8th edition, Thomson Brooks/Cole, 2005. ISBN 0534392008
  • G. H. Golub, C. F. Loan, Matrix Computations, 3rd edition, Johns Hopkins, 1996. ISBN 0801854148.
  • Fukuda, Komei; Terlaky, Tamás (1997). Thomas M. Liebling and Dominique de Werra. ed. "Criss-cross methods: A fresh view on pivot algorithms". Mathematical Programming: Series B (Amsterdam: North-Holland Publishing Co.) 79 (Papers from the 16th International Symposium on Mathematical Programming held in Lausanne, 1997): 369–395. doi:10.1016/S0025-5610(97)00062-2. MR1464775. Postscript preprint. 
  • Terlaky, Tamás; Zhang, Shu Zhong (1993). "Pivot rules for linear programming: A Survey on recent theoretical developments". Annals of Operations Research (Springer Netherlands) 46–47 (1): 203–233. doi:10.1007/BF02096264. ISSN 0254-5330. MR1260019. PDF file of (1991) preprint. 

Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Pivot-Element — Pivot Element,   Quicksort …   Universal-Lexikon

  • Pivot-Element — Das Pivotelement (engl. pivot = Dreh /Angelpunkt) ist dasjenige Element einer Matrix, welches als erstes von einem Algorithmus (z. B. Gaußsches Eliminationsverfahren, Quicksort oder dem Simplex Verfahren) ausgewählt wird, um bestimmte… …   Deutsch Wikipedia

  • Pivot — may refer to: * Pivot, the fulcrum as part of a lever * Pivot joint, a kind of joint between bones in the body * Pivot turn, a dance moveIn mathematics: * Pivot element, the first element distinct from zero in a matrix in echelon form * Pivotal… …   Wikipedia

  • pivot — [ pivo ] n. m. • v. 1170; o. i., p. ê. italique °puga « pointe »; cf. lat. pungere « piquer » 1 ♦ Extrémité amincie (ou pièce rapportée à l extrémité) d un arbre tournant vertical. ⇒ axe, crapaudine, palier, tourillon. L aiguille de la boussole… …   Encyclopédie Universelle

  • pivot — PIVÓT, (1, 2, 3) pivoturi, s.n., (4) pivoţi, s.m. 1. s.n. (tehn.) Fus de formă cilindrică, tronconică, conică etc., care se roteşte ori alunecă într un lagăr la care sarcina acţionează în direcţia axului. 2. s.n. Rădăcină principală, verticală,… …   Dicționar Român

  • Pivot (mecanique) — Liaison (mécanique) Pour les articles homonymes, voir liaison. les Liaisons piston/bielle et piston/chemise sont des pivots glissants Un mécanisme est l association de plusieurs pièces liées entre elles par des contacts physiques qui les rendent… …   Wikipédia en Français

  • Pivot (mécanique) — Liaison (mécanique) Pour les articles homonymes, voir liaison. les Liaisons piston/bielle et piston/chemise sont des pivots glissants Un mécanisme est l association de plusieurs pièces liées entre elles par des contacts physiques qui les rendent… …   Wikipédia en Français

  • Pivot — Der Begriff Pivot bezeichnet das erste von Null verschiedene Element einer Matrix in Normalform, siehe Pivotelement den Drehpunkt eines Schiffes, genannt Pivotpunkt den Drehpunkt einer Rundachse an einer Werkzeugmaschine, genannt Pivotpunkt Bei… …   Deutsch Wikipedia

  • Liaison pivot — Liaison (mécanique) Pour les articles homonymes, voir liaison. les Liaisons piston/bielle et piston/chemise sont des pivots glissants Un mécanisme est l association de plusieurs pièces liées entre elles par des contacts physiques qui les rendent… …   Wikipédia en Français

  • Liaison pivot glissant — Liaison (mécanique) Pour les articles homonymes, voir liaison. les Liaisons piston/bielle et piston/chemise sont des pivots glissants Un mécanisme est l association de plusieurs pièces liées entre elles par des contacts physiques qui les rendent… …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”