Skip to content

DanCip00/Symbol-table-for-strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Symbol-table-for-strings

Symbol table for strings optimized for many key requests without wasting memory.

Structure

ST.h is a first-class ADT, which provides the basic functions of data collections.

The internal structure is made with an ordered vector of items containing correlated string and id, this allows a search cost (dichotomous) O(logN) for the keys, and with the addition of a vector (which exploits the relationship between ID and index) makes direct access O(1) via ID possible.

Complexity

  • STinsert -> O(n) (if the elements are alredy sorted O(1) for each insertion)
  • STsearch(from key get value) -> O(1)
  • STsearchIndex( from value to key) -> O(logN)

About

Symbol table for strings optimized for many key requests without wasting memory (hash table).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages