Journal of the Egyptian Mathematical Society (Apr 2019)

Complexity analysis and performance of double hashing sort algorithm

  • Hazem M. Bahig

DOI
https://doi.org/10.1186/s42787-019-0004-2
Journal volume & issue
Vol. 27, no. 1
pp. 1 – 12

Abstract

Read online

Abstract Sorting an array of n elements represents one of the leading problems in different fields of computer science such as databases, graphs, computational geometry, and bioinformatics. A large number of sorting algorithms have been proposed based on different strategies. Recently, a sequential algorithm, called double hashing sort (DHS) algorithm, has been shown to exceed the quick sort algorithm in performance by 10–25%. In this paper, we study this technique from the standpoints of complexity analysis and the algorithm’s practical performance. We propose a new complexity analysis for the DHS algorithm based on the relation between the size of the input and the domain of the input elements. Our results reveal that the previous complexity analysis was not accurate. We also show experimentally that the counting sort algorithm performs significantly better than the DHS algorithm. Our experimental studies are based on six benchmarks; the percentage of improvement was roughly 46% on the average for all cases studied.

Keywords