d-ary heap
| Invented by | Johnson (1975) | |
|---|---|---|
| Idea: |
| |
| Advantages: |
| |
| Disadvantages: | two heaps cannot be easily merged | |
| Note: | There is a trade-off between the insert and extract-min operation running in \(O(\log_d n)\) and \(O(d \log_d n)\), respectively. Choice \(d=m/n\) leads to \(O(m\log_{m/n}n)\) implementations of the Dijkstra’s and Prim-Jarník algorithm. |
[You can download the application for offline viewing.]
References
- D.B. Johnson. Priority queues with update and finding minimum spanning trees. Information Processing Letters, 4(3):53-57, 1975. [bib]