A Note on the Performance of Algorithms for Solving Linear Diophantine Equations in the Naturals

Valeriu Motroi, Stefan Ciobaca
4/12/2021
cs.DScs.PF

Official code: Djok216/LDEAlgsComparison (1 star, C, last commit 2020-06-24).

Abstract

We implement four algorithms for solving linear Diophantine equations in the naturals: a lexicographic enumeration algorithm, a completion procedure, a graph-based algorithm, and the Slopes algorithm. As already known, the lexicographic enumeration algorithm and the completion procedure are slower than the other two algorithms.

Show full abstract

We compare in more detail the graph-based algorithm and the Slopes algorithm. In contrast to previous comparisons, our work suggests that they are equally fast on small inputs, but the graph-based algorithm gets much faster as the input grows. We conclude that implementations of AC-unification algorithms should use the graph-based algorithm for maximum efficiency.

View on arXivView PDF

Code Implementations(1)

11C, C++Apr 25, 20206 years ago

Similar Papers

Cite this paper

@article{motroi2021note,
  title  = {A Note on the Performance of Algorithms for Solving Linear Diophantine Equations in the Naturals},
  author = {Valeriu Motroi and Stefan Ciobaca},
  year   = {2021},
  eprint = {2104.05200},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.05200}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.05200.svg)](https://codeofpaper.com/paper/2104.05200)

Discussion