Skip to content
abdulkuddusa4Public

About

O_1_Vector is a Vector data structure implementation with constant time read write update.

Resources

Stars

11 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vector_o1

vector_o1 is a Vector data structure implementation with constant time read write update remove without sacrificing data order in exchange for some space complexity.

the data structure consists of 3 vector Vec, Vec, Vec of the same length.-

the only downside of this data structure is

  • 2 extra parallel Vector- one for index -> data mapping and one for data -> index maping.
  • its auxilary Vectors Vec Vec only grows in sizes. for example, if it stores 5 element and then removes 2, index and id array length will be unchanged. But if we add more element again we can use the existing one.

You should consider this if you really want to preserve data order. otherwise native Vec is enought

About

O_1_Vector is a Vector data structure implementation with constant time read write update.

Resources

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages