I am looking at a heap sorting algorithm . I am wondering why this is implemented in a binary tree? Can this use another tree? For example, a tree with three children - node? Or four? With a large number of children, although a little more is required for the removal operation . tree height may be less. I believe that the cost of time should be significantly compared to the binary tree implementation.
Wikipedia also shows the difference in cost - only 12%. The height of the tree should decrease depending on log (3) / log (2) ~ = 1.5
. , heapsort satysfying, . .
, , .
Source: https://habr.com/ru/post/1768848/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1768843/best-practices-to-store-login-information&usg=ALkJrhgSX0P4tf0wGH38OkqNF6DqKWuUgQSplit DateTime strings when converting - c #Time management - javascriptZend Framework: How to set default mail transport in configuration file? - emailCopy sheet with JXL in Java - javaHow to check for an item? - javascriptHow to prevent screen capture on iPhone - iphoneLINQ: choose a collection? - c #Modular system architecture - architectureHow to disable screenshots on iphone screen or automatically watermark? - iphoneAll Articles