Improved Algorithms for Integer Complexity
Data Structures and Algorithms
2023-09-14 v2 Number Theory
Abstract
The integer complexity of a positive integer is defined as the minimum number of 1's needed to represent , using additions, multiplications and parentheses. We present two simple and faster algorithms for computing the integer complexity: 1) A near-optimal -time algorithm for computing the integer complexity of all , improving the previous one [Cordwell et al., 2017]. 2) The first sublinear-time algorithm for computing the integer complexity of a single , with running time . The previous algorithms for computing a single require computing all .
Cite
@article{arxiv.2308.10301,
title = {Improved Algorithms for Integer Complexity},
author = {Qizheng He},
journal= {arXiv preprint arXiv:2308.10301},
year = {2023}
}
Comments
include the code and add more experiments