Skip to content

saahityaedams/Generic-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generic-Project

Implemented generic STL-set using splay tree

Team members

Shalini Sai Prasad(01FB16ECS350)

Saahitya Edamadaka(01FB16ECS322)

Brief Description

We have implemented a generic STL like set using splay tree.This can work with a any datatype(provided the approp methods and operators are implemented) and user defined functors.

A splay tree is a tree where after operations like find and insert, we rotate the nodes up in the tree such that the concerned node moves to the top and the tree is appropriately shifted.

We have implemented a forward iterator to traverse through the splay_tree.

We have implemented most of the class methods and operators to effectively mimic a STL container such as insert, find, erase, etc.

We timed the code to get results for different cases and tabulated it.

Releases

No releases published

Packages

No packages published

Languages