Date: 06/22/06 (Algorithms) Keywords: no keywords So recently I learned about heaps, that is, a tree structure in which the two children of a node are smaller than that particular node. Therefore when inserting an item into the heap, the maximum time is log2 n, where n is the number of nodes in the tree. Source: http://community.livejournal.com/algorithms/78910.html
|