Jump to content

Bareiss algorithm

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 138.38.59.1 (talk) at 13:42, 10 October 2011. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In mathematics, the Bareiss algorithm, named after Erwin Bareiss, is an algorithm to calculate the determinant of a matrix with integer entries using only integer arithmetic; any divisions that are performed are guaranteed to be exact (there is no remainder). The method can also be used to compute the determinant of matrices with (approximated) real entries, avoiding the introduction any round-off errors beyond those already present in the input.

For an n × n matrix of maximum (absolute) value 2L for each entry, the Bareiss algorithm runs in O(n3) elementary operations with an O(n n 2nL) bound on the absolute value of intermediate values needed.

Calculating the determinant

To compute the determinant using the bareiss algorithm you must find the total number of elements in each row and multiply them by the total number of elements in each column.


References

  • Bareiss, Erwin (1968), "Sylvester's Identity and Multistep Integer-Preserving Gaussian Elimination" (PDF), Mathematics of computation, 22 (102): 565–578.