Grafalgo
Library of useful data structures and algorithms
|
00001 00009 #ifndef SABSTSET_H 00010 #define SABSTSET_H 00011 00012 #include "BstSet.h" 00013 00014 namespace grafalgo { 00015 00020 class SaBstSet : public BstSet { 00021 public: SaBstSet(int=100); 00022 ~SaBstSet(); 00023 bst find(index); 00024 index access(keytyp,bst&); 00025 00026 bool insert(index,bst&); 00027 void remove(index,bst&); 00028 BstPair split(index,bst); 00029 protected: 00030 index splay(index); 00031 void splaystep(index); 00032 }; 00033 00034 } // ends namespace 00035 00036 #endif