Um Limite Superior para a Complexidade do ShellSort

  • Raquel M. Souza
  • Fabiano S. Oliveira
  • Paulo E. D. Pinto

Resumo


The worst-case time complexity of the ShellSort algorithm is known only for some specific sequences (a sequence is a parameter of the algorithm). Relating the algorithm to the Frobenius number concept, we present an algorithm for determining the maximum number of comparisons for any sequence and array to be ordered. We apply this method together with the empirical determination of complexity to analyze several sequences whose worst case complexity are known. We show that the empirical approach succeeded in determining the same complexities which are analytically known and presented its results for sequences with unknown worst-case time complexity.

Publicado
26/07/2018
SOUZA, Raquel M.; OLIVEIRA, Fabiano S.; PINTO, Paulo E. D.. Um Limite Superior para a Complexidade do ShellSort. In: ENCONTRO DE TEORIA DA COMPUTAÇÃO (ETC), 3. , 2018, Natal. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2018 . ISSN 2595-6116. DOI: https://doi.org/10.5753/etc.2018.3144.