An average case efficient algorithm for solving two-variable linear Diophantine equations
Mayank Deora, Pinakpani Pal

TL;DR
This paper introduces an average case efficient algorithm for solving two-variable linear Diophantine equations, improving upon the Extended Euclid's algorithm in terms of recursive calls and iterations.
Contribution
It revisits and analyzes two algorithms, proposes an iterative variant, and demonstrates through implementation that it outperforms existing methods in average case scenarios.
Findings
The average number of recursive calls is a constant term improvement over Extended Euclid's algorithm.
The iterative variant reduces the number of iterations in practice.
For all solvable instances tested, the new algorithm requires fewer iterations than Extended Euclid's.
Abstract
Solving two-variable linear Diophantine equations has applications in many cryptographic protocols such as RSA and Elliptic curve cryptography. The Extended Euclid's algorithm is a well known algorithm to solve these equations. We revisit two algorithms to solve two-variable linear Diophantine equations. We write the iterative version of one of the revisited algorithms. For another, we do a fine-grained analysis of the number of recursive calls and arrive at a periodic function that represents the number of recursive calls. We find the period and use it to derive multiple upper bounds on the average number of recursive calls. The upper bounds conclude that the average number of recursive calls in the analyzed algorithm is a constant term improvement over the Extended Euclid's algorithm. We propose an iterative variant of the algorithm. We implement this algorithm and find that the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
