BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help
Not What You Meant?  There are 10 definitions for Heap.

Beap

Print-Friendly
About 1 pages (255 words)

Bookmark and Share Know this topic well? Help others and get FREE products!

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.

Beap
Beap

Performance

The height of the structure is approximately <math>\sqrt{n}</math>. Also, assuming the last level is full, the number of elements on that level is also <math>\sqrt{n}</math>. In fact, because of these properties all basic operations (insert, remove, find) run in <math>O(\sqrt{n})</math> time on average. Find operations in the heap can be <math>O(n)</math> 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 <math>O(\sqrt{n})</math> 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 does not scale 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

View More Summaries on Beap
 
Ask any question on Beap and get it answered FAST!
Answer questions in BookRags Q&A and earn points toward
discounted or even FREE Study Guides and other BookRags products!
Learn more about BookRags Q&A
Copyrights
Beap from Wíkipedia. ©2006 by Wíkipedia. Licensed under the GNU Free Documentation License. View a list of authors or edit this article.

Article Navigation
Join BookRagslearn moreJoin BookRags




About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy