five

Uma Nova Proposta para a Obtenção da Complexidade de Pior Caso do ShellSort

收藏
Figshare2019-12-01 更新2026-04-29 收录
下载链接:
https://figshare.com/articles/dataset/Uma_Nova_Proposta_para_a_Obten_o_da_Complexidade_de_Pior_Caso_do_ShellSort/11391060
下载链接
链接失效反馈
官方服务:
资源简介:
ABSTRACT The worst-case time-complexity of the ShellSort, a comparison sorting algorithm, depends on a sequence of steps given as input. Each step consists of an integer representing an index offset of the pairs of elements that should be compared during the sorting of an input array. Such a complexity is known only to some specific sequences. In this work, we use a relation between the ShellSort and Frobenius number to present a new algorithm that provides an upper bound on the number of comparisons that ShellSort performs, for any given array and sequence of steps. We apply this algorithm, together with an empirical complexity analysis, to study sequences whose worst-case complexities are known through analytical method. We show that the empirical approach succeeded in determining such complexities. Based on such positive results, we extend the study to sequences for which the worst-case complexities are unknown.
创建时间:
2019-12-01
二维码
社区交流群
二维码
科研交流群
商业服务