Analysis of the Continued Logarithm Algorithm

01/30/2018
by   Pablo Rotondo, et al.
0

The Continued Logarithm Algorithm - CL for short- introduced by Gosper in 1978 computes the gcd of two integers; it seems very efficient, as it only performs shifts and subtractions. Shallit has studied its worst-case complexity in 2016 and showed it to be linear. We here perform the average-case analysis of the algorithm: we study its main parameters (number of iterations, total number of shifts) and obtain precise asymptotics for their mean values. Our 'dynamical' analysis involves the dynamical system underlying the algorithm, that produces continued fraction expansions whose quotients are powers of 2. Even though this CL system has already been studied by Chan (around 2005), the presence of powers of 2 in the quotients ingrains into the central parameters a dyadic flavour that cannot be grasped solely by studying the CL system. We thus introduce a dyadic component and deal with a two-component system. With this new mixed system at hand, we then provide a complete average-case analysis of the CL algorithm, with explicit constants.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/23/2018

Average Case - Worst Case Tradeoffs for Evacuating 2 Robots from the Disk in the Face-to-Face Model

The problem of evacuating two robots from the disk in the face-to-face m...
research
06/08/2020

Halting Time is Predictable for Large Models: A Universality Property and Average-case Analysis

Average-case analysis computes the complexity of an algorithm averaged o...
research
05/11/2022

Linear average-case complexity of algorithmic problems in groups

The worst-case complexity of group-theoretic algorithms has been studied...
research
06/24/2016

Asymptotic and exact results on the complexity of the Novelli-Pak-Stoyanovskii algorithm

The Novelli-Pak-Stoyanovskii algorithm is a sorting algorithm for Young ...
research
12/06/2022

Quantum Worst-Case to Average-Case Reductions for All Linear Problems

We study the problem of designing worst-case to average-case reductions ...
research
03/26/2023

The central tree property and algorithmic problems on subgroups of free groups

We study the average case complexity of the generalized membership probl...
research
04/10/2022

Efficient Reconstruction of Stochastic Pedigrees: Some Steps From Theory to Practice

In an extant population, how much information do extant individuals prov...

Please sign up or login with your details

Forgot password? Click here to reset