Efficient generation of random nonsingular matrices

  • Authors:
  • Dana Randall

  • Affiliations:
  • Computer Science Division, 571 Evans Hall, University of California at Berkeley, Berkeley, CA 94720

  • Venue:
  • Random Structures & Algorithms
  • Year:
  • 1993

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present an efficient algorithm for generating an n × n nonsingular matrix uniformly over a finite field. This algorithm is useful for several cryptographic and checking applications. Over GF[2] our algorithm runs in expected time M(n) + O(n2), where M(n) is the time needed to multiply two n × n matrices, and the expected number of random bits it uses is n2 + 3. (Over other finite fields we use n2 + O(1) random field elements on average.) This is more efficient than the standard method for solving this problem, both in terms of expected running time and the expected number of random bits used. The standard method is to generate random n × n matrices until we produce one with nonzero determinant. In contrast, our technique directly produces a random matrix guaranteed to have nonzero determinant. We also introduce efficient algorithms for related problems such as uniformly generating singular matrices or matrices with fixed determinant. © 1993 John Wiley & Sons, Inc. © 1993 Wiley Periodicals, Inc.