Black Box Linear Algebra

Similar documents
Black Box Linear Algebra with the LinBox Library. William J. Turner North Carolina State University wjturner

Black Box Linear Algebra with the LinBox Library. William J. Turner North Carolina State University wjturner

TURNER, WILLIAM JONATHAN. Black Box Linear Algebra with the LinBox Library.

Preconditioners for Singular Black Box Matrices

A Fraction Free Matrix Berlekamp/Massey Algorithm*

Journal of Symbolic Computation. On the Berlekamp/Massey algorithm and counting singular Hankel matrices over a finite field

On the Berlekamp/Massey Algorithm and Counting Singular Hankel Matrices over a Finite Field

Solving Sparse Integer Linear Systems

On the use of polynomial matrix approximant in the block Wiedemann algorithm

The Seven Dwarfs of Symbolic Computation and the Discovery of Reduced Symbolic Models. Erich Kaltofen North Carolina State University google->kaltofen

Parametric euclidean algorithm

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

ABSTRACT. YUHASZ, GEORGE L. Berlekamp/Massey Algorithms for Linearly Generated Matrix Sequences. (Under the direction of Professor Erich Kaltofen.

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

CME 302: NUMERICAL LINEAR ALGEBRA FALL 2005/06 LECTURE 6

On Computing Determinants of Matrices Without Divisions*

On the BMS Algorithm

A Fast Las Vegas Algorithm for Computing the Smith Normal Form of a Polynomial Matrix

Primitive sets in a lattice

Algorithms for Fast Linear System Solving and Rank Profile Computation

Solving Sparse Rational Linear Systems. Pascal Giorgi. University of Waterloo (Canada) / University of Perpignan (France) joint work with

1 Multiply Eq. E i by λ 0: (λe i ) (E i ) 2 Multiply Eq. E j by λ and add to Eq. E i : (E i + λe j ) (E i )

Index. book 2009/5/27 page 121. (Page numbers set in bold type indicate the definition of an entry.)

Processor Efficient Parallel Solution of Linear Systems over an Abstract Field*

CS227-Scientific Computing. Lecture 4: A Crash Course in Linear Algebra

Lectures on Linear Algebra for IT

Numerical Methods in Matrix Computations

9. Numerical linear algebra background

Linear Systems of n equations for n unknowns

The Berlekamp-Massey Algorithm revisited

An Algorithm for Projective Representations of some Matrix Groups.

Linear Equations in Linear Algebra

Numerical Techniques for Computing the Inertia of Products of Matrices of Rational Numbers

Relationships Between Planes

Fast algorithms for multivariate interpolation problems

Linear Systems and Matrices

AMS 209, Fall 2015 Final Project Type A Numerical Linear Algebra: Gaussian Elimination with Pivoting for Solving Linear Systems

POLI270 - Linear Algebra

Lattice reduction of polynomial matrices

Chap 3. Linear Algebra

An Efficient Algorithm for Computing Parametric Multivariate Polynomial GCD

ELE/MCE 503 Linear Algebra Facts Fall 2018

Lecture 10 Oct. 3, 2017

Sparse BLAS-3 Reduction

Fast algorithms for factoring polynomials A selection. Erich Kaltofen North Carolina State University google->kaltofen google->han lu

Low-Complexity Encoding Algorithm for LDPC Codes

Berlekamp-Massey decoding of RS code

4.2 Floating-Point Numbers

arxiv: v1 [cs.sc] 17 Apr 2013

LU Factorization. Marco Chiarandini. DM559 Linear and Integer Programming. Department of Mathematics & Computer Science University of Southern Denmark

Integer Least Squares: Sphere Decoding and the LLL Algorithm

RECAP How to find a maximum matching?

BOUNDS ON THE COEFFICIENTS OF THE CHARACTERISTIC AND MINIMAL POLYNOMIALS

Algebra C Numerical Linear Algebra Sample Exam Problems

Direct Methods for Solving Linear Systems. Matrix Factorization

1. Let m 1 and n 1 be two natural numbers such that m > n. Which of the following is/are true?

THE VECTOR RATIONAL FUNCTION RECONSTRUCTION PROBLEM

Review Questions REVIEW QUESTIONS 71

Finding Succinct. Ordered Minimal Perfect. Hash Functions. Steven S. Seiden 3 Daniel S. Hirschberg 3. September 22, Abstract

Exact Arithmetic on a Computer

Computing the Rank and a Small Nullspace Basis of apolynomial Matrix

arxiv: v1 [cs.sc] 29 Jul 2009

Lecture Summaries for Linear Algebra M51A

(x 1 +x 2 )(x 1 x 2 )+(x 2 +x 3 )(x 2 x 3 )+(x 3 +x 1 )(x 3 x 1 ).

Gaussian Elimination and Back Substitution

9. Numerical linear algebra background

On the application of different numerical methods to obtain null-spaces of polynomial matrices. Part 1: block Toeplitz algorithms.

Hands-on Matrix Algebra Using R

Fraction-free Row Reduction of Matrices of Skew Polynomials

Lecture 2: January 18

RON M. ROTH * GADIEL SEROUSSI **

Matrix Operations: Determinant

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

ECON 186 Class Notes: Linear Algebra

Lecture 7: Introduction to linear systems

Lecture 12 (Tue, Mar 5) Gaussian elimination and LU factorization (II)

Foundations of Matrix Analysis

Advanced Engineering Mathematics Prof. Pratima Panigrahi Department of Mathematics Indian Institute of Technology, Kharagpur

Scientific Computing: An Introductory Survey

3. Replace any row by the sum of that row and a constant multiple of any other row.

DEN: Linear algebra numerical view (GEM: Gauss elimination method for reducing a full rank matrix to upper-triangular

Rings. EE 387, Notes 7, Handout #10

On Randomized Network Coding

Math Camp Lecture 4: Linear Algebra. Xiao Yu Wang. Aug 2010 MIT. Xiao Yu Wang (MIT) Math Camp /10 1 / 88

This can be accomplished by left matrix multiplication as follows: I

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

Remark 1 By definition, an eigenvector must be a nonzero vector, but eigenvalue could be zero.

Deterministic distinct-degree factorisation of polynomials over finite fields*

Chapter 3 Transformations

Modern Computer Algebra

Chapter 7. Linear Algebra: Matrices, Vectors,

Exact Probability of Erasure and a Decoding Algorithm for Convolutional Codes on the Binary Erasure Channel

Lectures on Linear Algebra for IT

ANSWERS. E k E 2 E 1 A = B

ON MATRIX BALANCING AND EIGENVECTOR COMPUTATION

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

Basic Concepts in Linear Algebra

Introduction to Matrices

Linear Algebra I Lecture 8

EE731 Lecture Notes: Matrix Computations for Signal Processing

Transcription:

Black Box Linear Algebra An Introduction to Wiedemann s Approach William J. Turner Department of Mathematics & Computer Science Wabash College

Symbolic Computation Sometimes called Computer Algebra Symbols or exact arithmetic Not floating point numbers (numerical analysis) No round off errors Algorithms may not be compatible Numerical Analysis Find approximation quickly May never find exact solution Symbolic Computation Find exact solution quickly May never approximate Black Box Linear Algebra p.1/29

Probabilistic Algorithms Three types: Monte Carlo: Always fast, probably correct Las Vegas: Probably fast, always correct Certificate BPP: Bounded Probabalistic Polynomial Time Probably fast, probably correct Atlantic City? Schwartz-Zippel Lemma Probability randomly choose root of polynomial Black Box Linear Algebra p.2/29

Black Box Linear Algebra p.3/29 Solving Linear Systems

Black Box Linear Algebra p.4/29 Gaussian Elimination Row echelon form and back substitution Must know how matrix stored Matrix changed in calculation Sparse matrices may become dense

Black Box Matrix Model External view of matrix Only matrix-vector products allowed Independent of implementation Implementations efficient in time or space Not unique to symbolic computation Can compute Krylov sequence Black Box Linear Algebra p.5/29

Black Box Linear Algebra p.6/29 Examples Matrix storage time Arbitrary matrix Sparse matrix nonzero entries) ( Hilbert matrix ) ( Toeplitz matrix

Black Box Linear Algebra p.7/29 Linearly Generated Sequences. Let be a vector space over field A sequence and is linearly generated if and only if there exist such that for all or

Black Box Linear Algebra p.8/29 Generating Polynomials generates The polynomial -module is an

Minimal Generating Polynomial If and, then is an ideal is a principal ideal domain There exists a unique monic generator of minimal degree, the minimal generating polynomial of sequence Minimal polynomial divides all generating polynomials Black Box Linear Algebra p.9/29

Black Box Linear Algebra p.10/29 Example: Fibonacci Numbers Minimal polynomial is also generates also generates elements of Skips first

Black Box Linear Algebra p.11/29 Matrix Power Sequence generates Cayley-Hamilton Theorem be minimal polynomial of Let

Krylov Sequence Let be minimal polynomial of Black Box Linear Algebra p.12/29

Solving, and, Suppose satisfies requirements If exists, then is a solution Black Box Linear Algebra p.13/29

Black Box Linear Algebra p.14/29 Nonsingular is the unique solution

Bilinear Projection Sequence T T T T T be minimal polynomial of Let with, then If chosen randomly from finite probability at least Certificate: Black Box Linear Algebra p.15/29

Computing Minimal Polynomial Must know Extended Euclidean Algorithm Inputs are and Stop when Minimal polynomial is reversal of Berlekamp-Massey Algorithm From coding theory Interpolates elements of scalar sequence Related to Extended Euclidean Algorithm Black Box Linear Algebra p.16/29

Black Box Linear Algebra p.17/29 Berlekamp-Massey Algorithm with generator with Input: Scalar sequence Output: Minimal polynomial of sequence Initial guess 1: generates do to 2: for 3: 4: does not generate then 5: if 6: update to generate 7: end if 8: end for

Black Box Linear Algebra p.18/29 Example: Fibonacci Numbers recursion relation

Black Box Linear Algebra p.19/29 Wiedemann s Algorithm T Only need and Require: nonsingular such that Ensure: where random vector in 1: 2: use Berlekamp-Massey to compute Store only 3:

Black Box Linear Algebra p.20/29 Back to original problem

Back to original problem T Black Box Linear Algebra p.21/29

Singular Kaltofen and Saunders (1991): If known leading principal minor nonzero Randomly choose Solve is leading is first nonsingular system rows of submatrix of Then uniformly samples solution manifold Black Box Linear Algebra p.22/29

Precondition Matrix Want leading principal minor of nonzero or Need efficient matrix-vector product New linear system Black Box Linear Algebra p.23/29

Generic Rank Profile Wiedemann (1986):, parameterized and can realize any permutation Kaltofen and Saunders (1991):, unit upper triangular Toeplitz and unit lower triangular Toeplitz Chen et al. (2002); Turner (2002):,, 0 1 0 0 1 0 1 1 based on butterfly networks 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 0 0 0 0 Generic exchange matrix mixes inputs Turner (2002): Generalize butterfly networks to radix- switches Patton and Turner (2004): Toeplitz (or Hankel) matrix switches Black Box Linear Algebra p.24/29

Matrix Rank Kaltofen and Saunders (1991): If (unknown) Leading principal minors nonzero up to Then with probability at least Black Box Linear Algebra p.25/29

Matrix Minimal Polynomial If chosen randomly, then with probability at least If and chosen randomly, then least with probability at Black Box Linear Algebra p.26/29

Rank Preconditioners Generic rank profile preconditioner and diagonal matrix Chen et al. (2002): and Toeplitz unit lower triangular Toeplitz, upper triangular Turner (2002, 2003): Relax slightly generic rank profile Patton and Turner (2004):... Toeplitz (or Hankel) Patton and Turner (2004): Black Box Linear Algebra p.27/29

Black Box Linear Algebra p.28/29 Matrix Determinant If Then

Determinant Preconditioners Generic rank profile preconditioner and diagonal matrix Kaltofen and Pan (1992): unit upper triangular Toeplitz and lower triangular Toeplitz Chen et al. (2002):... Turner (2002, 2003):...... Black Box Linear Algebra p.29/29

References E. R. BERLEKAMP (1968). Algebraic Coding Theory. McGraw-Hill, New York. L. CHEN, W. EBERLY, E. KALTOFEN, B. D. SAUNDERS, W. J. TURNER, and G. VILLARD (2002). Efficient Matrix Preconditioners for Black Box Linear Algebra. Linear Algebra and its Applications, 343-344: 119 146. Special issue on Infinite Systems of Linear Equations Finitely Specified. J. L. DORNSTETTER (1987). On the Equivalence Between Berlekamp s and Euclid s Algorithms. IEEE Transactions on Information Theory, IT-33(3): 428 431. J. VON ZUR GATHEN and J. GERHARD (1999). Modern Computer Algebra. Cambridge University Press, Cambridge. E. KALTOFEN (1992). Efficient Solution of Sparse Linear Systems. Lecture notes, Computer Science Department, Rensselaer Polytechnic Institute, Troy, N.Y. E. KALTOFEN and V. PAN (1991). Processor Efficient Parallel Solution of Linear Systems over an Abstract Field. In Proceedings of SPAA 91 3rd Annual ACM Symposium on Parallel Algorithms and Architectures, 180 191. ACM Press, New York, New York. E. KALTOFEN and V. PAN (1992). Processor Efficient Parallel Solution of Linear Systems II: the Positive Characteristic and Singular Cases. In Proceedings of the 33rd Annual Symposium on Foundations of Computer Science, 714 723. IEEE Computer Society Press, Los Alamitos, California. E. KALTOFEN and B. D. SAUNDERS (1991). On Wiedemann s Method of Solving Sparse Linear Systems. In H. F. MATTSON, T. MORA, and T. R. N. RAO (eds.), AAECC-9: Proceedings of the 1991 Applied Algebra, Algebraic Algorithms and Error- Correcting Codes, International Conference, vol. 539 of Lecture Notes in Computer Science, 29 38. Springer Verlag, Heidelberg, Germany. J. L. MASSEY (1969). Shift-Register Synthesis and BCH Decoding. IEEE Transactions on Information Theory, IT-15(1): 122 127. A. E. PATTON and W. J. TURNER (2004). Toeplitz and Hankel Matrix Preconditioners for Black Box Linear Algebra. To be submitted to International Symposium on Symbolic and Algebraic Computation 2004. J. T. SCHWARTZ (1980). Fast Probabilistic Algorithms for Verification of Polynomial Identities. J. ACM, 27: 701 717. W. J. TURNER (2002). Black Box Linear Algebra with the LinBox Library. Ph.D. thesis, North Carolina State University, Raleigh, North Carolina. W. J. TURNER (2003). Determinantal Divisors and Matrix Preconditioners. Submitted to Journal of Symbolic Computation. D. H. WIEDEMANN (1986). Solving Sparse Linear Equations Over Finite Fields. IEEE Transactions on Information Theory, IT-32(1): 54 62. R. ZIPPEL (1979). Probabilistic Algorithms for Sparse Polynomials. In E. W. NG (ed.), Symbolic and Algebraic Computation, EUROSAM 79, An International Symposiumon Symbolic and Algebraic Computation, Marseille, France, June 1979, Proceedings, vol. 72 of Lecture Notes in Computer Science, 216 226. Springer Verlag, Heidelberg, Germany. R. ZIPPEL (1990). Interpolating Polynomials from Their Values. Journal of Symbolic Computation, 9(3): 375 403. 29-1