Skip to content

Add Solver For Linear Diophantine Equations #2742

@rahulc29

Description

@rahulc29

Linear Diophantine Equations Solver
Linear Diophantine Equations are of the form ax + by = c where the solutions (x, y) are integers.

Approach
There exists a standard algorithm to find any one solution of the Diophantine equation. This solution can then be transposed to yield all infinite solutions to the equation. This algorithm exploits the well-known Extended Euclidean Algorithm

Resources
For further information, please see :

  1. CP Algorithms Article
  2. Wikipedia Article on Extended Euclidean Algorithm
  3. Wikipedia Article On Linear Diophantine Equations

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions