Use of extended euclidean algorithm in solving a system of linear diophantine equations with bounded variables

  • Authors:
  • Parthasarathy Ramachandran

  • Affiliations:
  • Indian Institute of Science, Bangalore, KA, India

  • Venue:
  • ANTS'06 Proceedings of the 7th international conference on Algorithmic Number Theory
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

We develop an algorithm to generate the set of all solutions to a system of linear Diophantine equations with lower and upper bounds on the variables. The algorithm is based on the Euclid’s algorithm for computing the GCD of rational numbers. We make use of the ability to parametrise the set of all solutions to a linear Diophantine equation in two variables with a single parameter. The bounds on the variables are translated to bounds on the parameter. This is used progressively by reducing a n variable problem into a two variable problem. Computational experiments indicate that for a given number of variables the running times decreases with the increase in the number of equations in the system.