Jump to content

Cubesort: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
add short description
m Replace 'Google Books' link by 'cite book' template
Line 34: Line 34:


* [https://sites.google.com/site/binarysearchcube Cubesort description and implementation in C]
* [https://sites.google.com/site/binarysearchcube Cubesort description and implementation in C]
* {{cite book | title = Algorithms and Computation | last1 = Niedermeier | first1 = Rolf | chapter = Recursively divisible problems | date = 1996 | pages = 183–192 | publisher = Springer Berlin Heidelberg | issn = 0302-9743 | eissn = 1611-3349 | doi = 10.1007/BFb0009494 | pages = 187-188 }} (passing mention)
* Algorithms and Computation: 7th International Symposium, ISAAC '96, Osaka ... edited by Tetsuo Asano et al, pp 187-188, https://books.google.com/books?id=vilOl8JCpFUC&pg=PA188&lpg=PA188&hl=en&f=false (passing mention)


{{sorting}}
{{sorting}}

Revision as of 19:28, 23 May 2022

Cubesort
ClassSorting algorithm
Data structureArray
Worst-case performanceO(n log n)
Worst-case space complexityΘ(n)
Optimal?

Cubesort is a parallel sorting algorithm that builds a self-balancing multi-dimensional array from the keys to be sorted. As the axes are of similar length the structure resembles a cube. After each key is inserted the cube can be rapidly converted to an array.[1]

A cubesort implementation written in C was published in 2014.[2]

Operation

Cubesort's algorithm uses a specialized binary search on each axis to find the location to insert an element. When an axis grows too large it is split. Locality of reference is optimal as only four binary searches are performed on small arrays for each insertion. By using many small dynamic arrays the high cost for insertion on single large arrays is avoided.

References

  1. ^ Cypher, Robert; Sanz, Jorge L.C (1992). "Cubesort: A parallel algorithm for sorting N data items with S-sorters". Journal of Algorithms. 13 (2): 211–234. doi:10.1016/0196-6774(92)90016-6.
  2. ^ "Cubesort".

External links