Skip to content

A packed memory array for maintaining a sorted contiguous array under inserts and deletions which maintains a constant number of gaps and takes O(log(n)^2) per insert/delete

License

Notifications You must be signed in to change notification settings

goodcleanfun/packed_memory_array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packed_memory_array

A packed memory array for maintaining a sorted contiguous array in $$O(n)$$ space under inserts and deletions, while maintaining a constant number of gaps ($$O(1)$$ unused spaces) and requiring $$O(log(n)^2)$$ moves per insert/delete and allowing $$O(log(n))$$ find using a modified binary search.

About

A packed memory array for maintaining a sorted contiguous array under inserts and deletions which maintains a constant number of gaps and takes O(log(n)^2) per insert/delete

Resources

License

Stars

Watchers

Forks

Packages

No packages published