Академический Документы
Профессиональный Документы
Культура Документы
PRESENTATION
BIPARENTAL HEAP OR BEAP
OUR GROUP MEMBERS:
Similar to a heap.
The difference in general is that each node will have 2
parents.
We can implement it with an Array with appx (2N)^1/2
blocks.
The ith block consists of the i elements stored from position
(i(i - 1)/2 + 1) through position i(i + 1)/2.
This enables us to increase or decrease the size of the entire
structure while changing the number of elements in only one
block.
ORDERING??
Deletion or an insertion in
O(N^(1/3) log N)
ExtractMin: 0(1)
ExtractMax: 0((N)^1/3 log
N)
Search: O(N^(1/3) log N)
CONCLUSION