Skip to main content
Erschienen in: Theory of Computing Systems 2/2017

21.04.2017

Optimizing Binary Heaps

verfasst von: Stefan Edelkamp, Amr Elmasry, Jyrki Katajainen

Erschienen in: Theory of Computing Systems | Ausgabe 2/2017

Einloggen

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Excerpt

In its elementary form, a priority queue is a data structure that stores a multiset of elements and supports the operations: construct, minimum, insert, and extract-min [11, Chapter 6]. In most cases, in applications where this set of operations is sufficient, the basic priority queue that the users would select is a binary heap [49]. Even though a binary heap is practically efficient, its theoretical behaviour is known not to be optimal. The same is true for the best-known variants presented in the literature (see, e.g. [27]). …

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Fußnoten
1
As is standard, throughout the text, for integers d ≥ 2 and n ≥ 0, we write log d n when we mean log d(max{d,n}), and we use lg n as a shorthand for log 2n.
 
2
log ∗n is the iterated logarithm of n, recursively defined as 1 for n ≤ 2, and 1 + log ∗(lg n) for n > 2.
 
Literatur
1.
Zurück zum Zitat Alstrup, S., Husfeldt, T., Rauhe, T., Thorup, M.: Black box for constant-time insertion in priority queues. ACM Trans. Algorithms 1(1), 102–106 (2005)MathSciNetCrossRefMATH Alstrup, S., Husfeldt, T., Rauhe, T., Thorup, M.: Black box for constant-time insertion in priority queues. ACM Trans. Algorithms 1(1), 102–106 (2005)MathSciNetCrossRefMATH
3.
Zurück zum Zitat Brodal, G. S., Nielsen, J. S., Truelsen, J.: Strictly implicit priority queues: on the number of moves and worst-case time WADS 2015, vol. 9214, pp 91–102. Springer, Heidelberg (2015) Brodal, G. S., Nielsen, J. S., Truelsen, J.: Strictly implicit priority queues: on the number of moves and worst-case time WADS 2015, vol. 9214, pp 91–102. Springer, Heidelberg (2015)
5.
Zurück zum Zitat Bruun, A., Edelkamp, S., Katajainen, J., Rasmussen, J.: Policy-based benchmarking of weak heaps and their relatives SEA 2010, LNCS, vol. 6049, pp 424–435. Springer, Heidelberg (2010) Bruun, A., Edelkamp, S., Katajainen, J., Rasmussen, J.: Policy-based benchmarking of weak heaps and their relatives SEA 2010, LNCS, vol. 6049, pp 424–435. Springer, Heidelberg (2010)
6.
Zurück zum Zitat Carlsson, S.: A variant of Heapsort with almost optimal number of comparisons. Inform. Process. Lett. 24(4), 247–250 (1987)MathSciNetCrossRefMATH Carlsson, S.: A variant of Heapsort with almost optimal number of comparisons. Inform. Process. Lett. 24(4), 247–250 (1987)MathSciNetCrossRefMATH
9.
Zurück zum Zitat Carlsson, S., Munro, J. I., Poblete, P. V.: An implicit binomial queue with constant insertion time SWAT 1988, LNCS, vol. 318, pp 1–13. Springer, Heidelberg (1988) Carlsson, S., Munro, J. I., Poblete, P. V.: An implicit binomial queue with constant insertion time SWAT 1988, LNCS, vol. 318, pp 1–13. Springer, Heidelberg (1988)
10.
Zurück zum Zitat Chen, J., Edelkamp, S., Elmasry, A., Katajainen, J.: In-Place heap construction with optimized comparisons, moves, and cache misses MFCS 2012, LNCS, vol. 7464, pp 259–270. Springer, Heidelberg (2012) Chen, J., Edelkamp, S., Elmasry, A., Katajainen, J.: In-Place heap construction with optimized comparisons, moves, and cache misses MFCS 2012, LNCS, vol. 7464, pp 259–270. Springer, Heidelberg (2012)
11.
Zurück zum Zitat Cormen, T. H., Leiserson, C. E., Rivest, R. L., Stein, C.: Introduction to Algorithms, 3th edn. The MIT Press, Cambridge (2009)MATH Cormen, T. H., Leiserson, C. E., Rivest, R. L., Stein, C.: Introduction to Algorithms, 3th edn. The MIT Press, Cambridge (2009)MATH
12.
Zurück zum Zitat Darwish, O., Elmasry, A., Katajainen, J.: Memory-adjustable navigation piles with applications to sorting and convex hulls. E-print arXiv:1510.07185, arXiv.org Ithaca (2015) Darwish, O., Elmasry, A., Katajainen, J.: Memory-adjustable navigation piles with applications to sorting and convex hulls. E-print arXiv:1510.​07185, arXiv.org Ithaca (2015)
13.
Zurück zum Zitat Driscoll, J. R., Gabow, H. N., Shrairman, R., Tarjan, R. E.: Relaxed heaps: An alternative to Fibonacci heaps with applications to parallel computation. Commun. ACM 31(11), 1343–1354 (1988)MathSciNetCrossRef Driscoll, J. R., Gabow, H. N., Shrairman, R., Tarjan, R. E.: Relaxed heaps: An alternative to Fibonacci heaps with applications to parallel computation. Commun. ACM 31(11), 1343–1354 (1988)MathSciNetCrossRef
15.
Zurück zum Zitat Edelkamp, S., Elmasry, A., Katajainen, J.: The weak-heap data structure: Variants and applications. J. Discrete Algorithms 16, 187–205 (2012)MathSciNetCrossRefMATH Edelkamp, S., Elmasry, A., Katajainen, J.: The weak-heap data structure: Variants and applications. J. Discrete Algorithms 16, 187–205 (2012)MathSciNetCrossRefMATH
16.
Zurück zum Zitat Edelkamp, S., Elmasry, A., Katajainen, J.: A catalogue of weak-heap programs. CPH STL Report 2012-2. Dept. Comput. Sci., Univ, Copenhagen, Copenhagen (2012) Edelkamp, S., Elmasry, A., Katajainen, J.: A catalogue of weak-heap programs. CPH STL Report 2012-2. Dept. Comput. Sci., Univ, Copenhagen, Copenhagen (2012)
18.
Zurück zum Zitat Edelkamp, S., Elmasry, A., Katajainen, J.: Strengthened lazy heaps: Surpassing the lower bounds for binary heaps. E-print arXiv:1407.3377, arXiv.org Ithaca (2014) Edelkamp, S., Elmasry, A., Katajainen, J.: Strengthened lazy heaps: Surpassing the lower bounds for binary heaps. E-print arXiv:1407.​3377, arXiv.org Ithaca (2014)
19.
Zurück zum Zitat Edelkamp, S., Elmasry, A., Katajainen, J.: An in-place Priority Queue with O(1) Time for Push and lg n + O(1) Comparisons for Pop CSR 2015, LNCS, vol. 9139, pp 1–15. Springer, Heidelberg (2015) Edelkamp, S., Elmasry, A., Katajainen, J.: An in-place Priority Queue with O(1) Time for Push and lg n + O(1) Comparisons for Pop CSR 2015, LNCS, vol. 9139, pp 1–15. Springer, Heidelberg (2015)
20.
21.
Zurück zum Zitat Elmasry, A., Jensen, C., Katajainen, J.: Two skew-binary numeral systems and one application. Theory Comput. Syst. 50(1), 185–211 (2012)MathSciNetCrossRefMATH Elmasry, A., Jensen, C., Katajainen, J.: Two skew-binary numeral systems and one application. Theory Comput. Syst. 50(1), 185–211 (2012)MathSciNetCrossRefMATH
22.
Zurück zum Zitat Elmasry, A., Katajainen, J.: Towards ultimate binary heaps CPH STL report 2013-1. Dept. Comput. Sci., Univ, Copenhagen, Copenhagen (2013) Elmasry, A., Katajainen, J.: Towards ultimate binary heaps CPH STL report 2013-1. Dept. Comput. Sci., Univ, Copenhagen, Copenhagen (2013)
23.
Zurück zum Zitat van Emde Boas, P.: Thirty nine years of stratified trees ISCIM 2013, vol. 1, pp 1–14. Epoka University, Tirana (2013) van Emde Boas, P.: Thirty nine years of stratified trees ISCIM 2013, vol. 1, pp 1–14. Epoka University, Tirana (2013)
24.
Zurück zum Zitat Fleischer, R.: A tight lower bound for the worst case of Bottom-up-heapsort. Algorithmica 11(2), 104–115 (1994)MathSciNetCrossRef Fleischer, R.: A tight lower bound for the worst case of Bottom-up-heapsort. Algorithmica 11(2), 104–115 (1994)MathSciNetCrossRef
25.
Zurück zum Zitat Fleischer, R., Sinha, B., Uhrig, C.: A lower bound for the worst case of Bottom-up-heapsort. Inform. and Comput. 102(3), 263–279 (1993)MathSciNetCrossRefMATH Fleischer, R., Sinha, B., Uhrig, C.: A lower bound for the worst case of Bottom-up-heapsort. Inform. and Comput. 102(3), 263–279 (1993)MathSciNetCrossRefMATH
26.
Zurück zum Zitat Floyd, R. W.: Algorithm 245: Treesort 3. Commun. ACM 7(12), 701 (1964)CrossRef Floyd, R. W.: Algorithm 245: Treesort 3. Commun. ACM 7(12), 701 (1964)CrossRef
29.
Zurück zum Zitat Han, Y., Thorup, M.: Integer sorting in \({O}(n \sqrt {\log \log n})\) expected time and linear space FOCS 2002, pp 135–144. IEEE Computer Society, Los Alamitos (2002) Han, Y., Thorup, M.: Integer sorting in \({O}(n \sqrt {\log \log n})\) expected time and linear space FOCS 2002, pp 135–144. IEEE Computer Society, Los Alamitos (2002)
30.
Zurück zum Zitat Harvey, N. J. A., Zatloukal, K. C.: The Post-Order Heap FUN 2004 (2004) Harvey, N. J. A., Zatloukal, K. C.: The Post-Order Heap FUN 2004 (2004)
31.
Zurück zum Zitat Hayward, R., McDiarmid, C.: Average case analysis of heap building by repeated insertion. J. Algorithms 12(1), 126–153 (1991)MathSciNetCrossRefMATH Hayward, R., McDiarmid, C.: Average case analysis of heap building by repeated insertion. J. Algorithms 12(1), 126–153 (1991)MathSciNetCrossRefMATH
32.
Zurück zum Zitat Johnson, D. B.: Priority queues with update and finding minimum spanning trees. Inform. Process. Lett. 4(3), 53–57 (1975)CrossRefMATH Johnson, D. B.: Priority queues with update and finding minimum spanning trees. Inform. Process. Lett. 4(3), 53–57 (1975)CrossRefMATH
33.
Zurück zum Zitat Katajainen, J.: The Ultimate Heapsort CATS 1998, Australian computer science communications, vol. 20, pp 87–95. Springer, Singapore (1998) Katajainen, J.: The Ultimate Heapsort CATS 1998, Australian computer science communications, vol. 20, pp 87–95. Springer, Singapore (1998)
34.
Zurück zum Zitat Knuth, D. E. The Art of Computer Programming: Fundamental Algorithms, 3rd edn, vol. 1. Addison Wesley Longman, Reading (1997) Knuth, D. E. The Art of Computer Programming: Fundamental Algorithms, 3rd edn, vol. 1. Addison Wesley Longman, Reading (1997)
35.
Zurück zum Zitat Knuth, D. E. The Art of Computer Programming: Sorting and Searching, 2nd edn, vol. 3. Addison Wesley Longman, Reading (1998) Knuth, D. E. The Art of Computer Programming: Sorting and Searching, 2nd edn, vol. 3. Addison Wesley Longman, Reading (1998)
39.
Zurück zum Zitat Overmars, M. H.: The Design of Dynamic Data Structures, LNCS, vol. 156. Springer, Heidelberg (1983) Overmars, M. H.: The Design of Dynamic Data Structures, LNCS, vol. 156. Springer, Heidelberg (1983)
40.
Zurück zum Zitat Sack, J. R., Strothotte, T.: A characterization of heaps and its applications 86(1), 69–86 (1990) Sack, J. R., Strothotte, T.: A characterization of heaps and its applications 86(1), 69–86 (1990)
42.
Zurück zum Zitat Suchenek, M. A.: Elementary yet precise worst-case analysis of Floyd’s heap-construction program. Fund. Inform. 120(1), 75–92 (2012)MathSciNetMATH Suchenek, M. A.: Elementary yet precise worst-case analysis of Floyd’s heap-construction program. Fund. Inform. 120(1), 75–92 (2012)MathSciNetMATH
45.
Zurück zum Zitat Wang, X., Wu, Y., Zhu, D.: A new variant of in-place sort algorithm. Procedia Eng. 29, 2274–2278 (2012)CrossRef Wang, X., Wu, Y., Zhu, D.: A new variant of in-place sort algorithm. Procedia Eng. 29, 2274–2278 (2012)CrossRef
46.
Zurück zum Zitat Wegener, I.: The worst case complexity of McDiarmid and Reed’s variant of Bottom-up Heapsort is less than n log n + 1.1n. Inform. and Comput. 97(1), 86–96 (1992)MathSciNetCrossRefMATH Wegener, I.: The worst case complexity of McDiarmid and Reed’s variant of Bottom-up Heapsort is less than n log n + 1.1n. Inform. and Comput. 97(1), 86–96 (1992)MathSciNetCrossRefMATH
47.
Zurück zum Zitat Wegener, I.: Bottom-up-heapsort, a new variant of Heapsort beating, on an average, Quicksort (if n is not very small). Theoret. Comput. Sci. 118(1), 81–98 (1993)MathSciNetCrossRefMATH Wegener, I.: Bottom-up-heapsort, a new variant of Heapsort beating, on an average, Quicksort (if n is not very small). Theoret. Comput. Sci. 118(1), 81–98 (1993)MathSciNetCrossRefMATH
48.
Zurück zum Zitat Wegener, I.: A simple modification of Xunrang and Yuzhang’s Heapsort variant improving its complexity significantly. Comput. J. 36(3), 286–288 (1993)CrossRefMATH Wegener, I.: A simple modification of Xunrang and Yuzhang’s Heapsort variant improving its complexity significantly. Comput. J. 36(3), 286–288 (1993)CrossRefMATH
49.
Zurück zum Zitat Williams, J. W. J.: Algorithm 232: Heapsort. Commun. ACM 7(6), 347–348 (1964) Williams, J. W. J.: Algorithm 232: Heapsort. Commun. ACM 7(6), 347–348 (1964)
50.
Zurück zum Zitat Xunrang, G., Yuzhang, Z.: A new Heapsort algorithm and the analysis of its complexity. Comput. J. 33(3), 281–282 (1990)CrossRef Xunrang, G., Yuzhang, Z.: A new Heapsort algorithm and the analysis of its complexity. Comput. J. 33(3), 281–282 (1990)CrossRef
Metadaten
Titel
Optimizing Binary Heaps
verfasst von
Stefan Edelkamp
Amr Elmasry
Jyrki Katajainen
Publikationsdatum
21.04.2017
Verlag
Springer US
Erschienen in
Theory of Computing Systems / Ausgabe 2/2017
Print ISSN: 1432-4350
Elektronische ISSN: 1433-0490
DOI
https://doi.org/10.1007/s00224-017-9760-2

Weitere Artikel der Ausgabe 2/2017

Theory of Computing Systems 2/2017 Zur Ausgabe

Premium Partner