Beap

Beap

Beap, short for bi-parental heap, introduced by Ian Munro and Hendra Suwanda. In this data structure a node usually has two parents (unless it is the first or last on a level) and two children (unless it is on the last level). What separates the beap from Williams' heap is that beap allows sublinear search.

Performance

The height of the structure is approximately sqrt{n}. Also, assuming the last level is full, the number of elements on that level is also sqrt{n}. In fact, because of these properties all basic operations (insert, remove, find) run in O(sqrt{n}) time on average. Find operations in the heap can be O(n) in the worst case. Removal and insertion of new elements involves propagation of elements up or down (much like in a heap) in order to restore the beap invariant. An additional perk is that beap provides constant time access to the smallest element and O(sqrt{n}) time for the maximum element.

Advantages

The main advantage of the beap is that it can be fully implemented in-place - only data nodes need to be present (no pointers or other extra information is required). However, this structure should be used with care since it is not O(log{n}) nor does it perform much better than a vector for small values of n.

References

J. Ian Munro and Hendra Suwanda. "Implicit data structures for fast search and update". "Journal of Computer and System Sciences", 21(2):236250, 1980.

J.W.J Williams in Algorithms 232, "Heapsort", "Comm. ACM 7" (June 1964), 347-348


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • BEAP — bronchiectasis, eosinophilia, asthma, pneumonia …   Medical dictionary

  • BEAP — • bronchiectasis, eosinophilia, asthma, pneumonia …   Dictionary of medical acronyms & abbreviations

  • presbyopia — [prez΄bē ō′pē ə, pres΄bē ō′pē ə] n. [ModL < Gr presbys, old (see PRIEST) + ōps, EYE] a form of farsightedness occurring after middle age, caused by a diminished elasticity of the crystalline lens presbyope [prez΄bēōp΄, pres΄bēōp΄] n.… …   English World dictionary

  • Heap (data structure) — This article is about the programming data structure. For the dynamic memory area, see Dynamic memory allocation. Example of a complete binary max heap In computer science, a heap is a specialized tree based data structure that satisfies the heap …   Wikipedia

  • Bull Terrier (Miniature) — Standard (left) and Miniature Bull Terriers Other names Miniature Bull Terrier Country of origin England Traits …   Wikipedia

  • Orlan — This article is about the performance artist. For the series of Russian space suits, see Orlan space suits. ORLAN is a French artist, born May 30, 1947 in Saint Étienne, Loire.[1] She lives and works in Los Angeles, New York, and Paris. She was… …   Wikipedia

  • Implicit data structure — In computer science, an implicit data structure is a data structure that uses very little memory besides the actual data elements. It is called implicit because most of the structure of the elements is expressed implicitly by their order. Another …   Wikipedia

  • Heap — may refer to:In computer science: * heap (data structure), a tree like data structure * The heap (or free store ) is the area of memory used for dynamic memory allocationIn mathematics: *a heap (mathematics) is a generalization of a group.In… …   Wikipedia

  • Digital Arts and Culture — was a conference series that was established by Espen Aarseth in 1998, and was one of the first academic events to gather researchers, practitioners and artists working within the field of digital arts, cultures, aesthetics and design. The DAC… …   Wikipedia

  • Deap — In der Informatik ist ein Heap (wörtlich Haufen oder Halde) eine zumeist auf Bäumen basierende abstrakte Datenstruktur. In einem Heap können Objekte oder Elemente abgelegt und aus diesem wieder entnommen werden. Sie dienen damit der Speicherung… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”