Probabilistic computation of the Smith normal form of a sparse integer matrix

  • Mark Giesbrecht
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 1122)


We present a new probabilistic algorithm to compute the Smith normal form of a sparse integer matrix A ∈m×n. The algorithm treats A as a “black-box”; A is only used to compute matrix-vector products and we don't access individual entries in A directly. The algorithm requires about O(m2 log ∥A∥) such black-box evaluations reduced modulo word-sized primes p on vectors in ℤ p n×1 , plus O(m2n log ∥A∥) additional bit operations. For sparse matrices this represents a substantial improvement over previously known algorithms. For example, on an n×n integer matrix A with O(n log n) non-zero entries, only about O(n3 log2A∥) bit operations are required to find the Smith form using standard integer arithmetic. The new algorithm suffers from no “fill-in” or intermediate value explosion, and uses very little additional space. The algorithm is probabilistic of the Monte Carlo type — on any input it returns the correct answer with a controllable, exponentially small probability of error.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. J. Buchmann. A subexponential algorithm for the determination of class groups and regulators of algebraic number fields. In Séminaire de théorie des nombres, Paris, 1988.Google Scholar
  2. T. J. Chou and G. E. Collins. Algorithms for the solution of systems of linear Diophantine equations. SIAM J. of Computing 11, pp. 687–708, 1982.Google Scholar
  3. P. Domich, R. Kannan, and L. Trotter. Hermite normal form computation using modulo determinant arithmetic. Math. Operations Research 12, pp. 50–59, 1987.Google Scholar
  4. M. Giesbrecht. Fast computation of the smith form of an integer matrix. In Proceedings of ISSAC'95, pp. 110–118, Montreal, Quebec, 1995. ACM Press.Google Scholar
  5. J. L. Hafner and K. S. McCurley. A rigorous subexponential algorithm for computation of class groups. J. Amer. Math. Soc. 2, pp. 837–850, 1989.Google Scholar
  6. J. L. Hafner and K. S. McCurley. Asymptotically fast triangularization of matrices over rings. SIAM J. of Computing 20(6), pp. 1068–1083, 1991.Google Scholar
  7. G. Havas, D. Holt, and S. Rees. Recognizing badly presented Z-modules. Linear algebra and its applications 192, pp. 137–163, 1993.Google Scholar
  8. C. Iliopolous. Worst-case complexity bounds on algorithms for computing the canonical structure of finite abelian groups and the Hermite and Smith normal forms of an integer matrix. SIAM J. Computing 18, pp. 658–669, 1989.Google Scholar
  9. E. Kaltofen and B. D. Saunders. On Wiedemann's method of solving sparse linear systems. In Proc. AAECC-9, vol. 539 of Springer Lecture Notes in Comp. Sci., 1991. 29–38.Google Scholar
  10. R. Kannan and A. Bachem. Polynomial algorithms for computing the Smith and Hermite normal forms of an integer matrix. SIAM J. Comp. 8, pp. 499–507, 1979.Google Scholar
  11. M. Newman. Integral Matrices. Academic Press (New York), 1972.Google Scholar
  12. J. B. Rosser and L. Schoenfeld. Approximate formulas for some functions of prime numbers. Ill. J. Math. 6, pp. 64–94, 1962.Google Scholar
  13. J. T. Schwartz. Fast probabilistic algorithms for verification of polynomial identities. J. Assoc. Computing Machinery 27, pp. 701–717, 1980.Google Scholar
  14. H. J. S. Smith. On systems of linear indeterminate equations and congruences. Philos. Trans. Royal Soc. London 151, pp. 293–326, 1861.Google Scholar
  15. A. Storjohann, 1995. Personal Communication.Google Scholar
  16. D. Wiedemann. Solving sparse linear equations over finite fields. IEEE Transactions on Information Theory IT-32, pp. 54–62, 1986.Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 1996

Authors and Affiliations

  • Mark Giesbrecht
    • 1
  1. 1.Department of Computer ScienceUniversity of ManitobaWinnipegCanada

Personalised recommendations