Escolar Documentos
Profissional Documentos
Cultura Documentos
Outline
Introduction Priliminary approaches Direct addressing Superimposing a binary tree structure Recursive structure Proto of van emde boas tree Van emde boas tree Some operations. comparisons
Introduction
This
was invented by a team led by Peter van Emde Boas in 1975. data structures that support the operations of a priority queue,binary heaps, red-black trees, Fibonacci heaps In each of these data structures, at least one important operation take O(log n) time van Emde Boas trees support the each of these operations, in O(log logn) Search O(log(logm)) Insert O(log(logm)) Delete O(log(logm))
Recursive structure
previously , we used a summary structure of size u^1/2 on top of bit vectore with each entry pointing to another stucture of size . Now, we make the structure recursive, shrinking the universe size by the square root at each level of recursion.
Proto of VEB
Proto of VEB
Follwing are some functions which helps us to find the position of elements within the tree
High(x) gives the index of xs cluster Low(x) gives the index of x within the cluster The function index(x,y) builds an element number from x and y and identify the position of x
Some operations
Finding MIN and MAX Member Insert Delete
should not use a van Emde Boas tree when we perform only a small number of operations, since the time to create the data structure would exceed the time saved in the individual operations. use a simple data structure, such as an array or linked list, to represent a set with only a few elements
Some comparisons
Implementation Insert Extract-min Ease of programming
Binary Heap
Van Emde Boas Tree
O(logn)
O(log logn)
O(logn)
O(log logn)
Easy
VERY HARD
References
1.Introduction to algorithms third edition Thomas H Cormen.
Thank you