Skip to content

Implementation of an integer data structure with O(lg lg u) operations

Notifications You must be signed in to change notification settings

abhisheklolage/van-emde-boas-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

This is an implementation of van Emde Boas Tree, an integer data structure.

Elements are in the range [0, 1, ..., u - 1] - u is the universe size - duplicates are not allowed

It has special operations like predecessor(x) and successors(x) which gives the previous and the next element present in the universe.

Following operations are implemented - Insertion O(lg lg u) - Deletion O(lg lg u) - Minimum O(1) - Maximum O(1) - Predecessor O(lg lg u) - Successor O(lg lg u)

TODO: Resolve side effects of Delete operation Note: For achieving O(lg lg n) bound where n is the number of integers actually present in the tree, see y-fast trees.

About

Implementation of an integer data structure with O(lg lg u) operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages