Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 824 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 824 Bytes

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.