Advertisement
Ruggeri96

Untitled

Jan 22nd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.72 KB | None | 0 0
  1. // BST.h
  2. #ifndef BST_H_INCLUDED
  3. #define BST_H_INCLUDED
  4.  
  5. // Scelta tra ADT I Categoria, Quasi ADT item standard oppure Item adhoc
  6. #include "Item.h"
  7.  
  8. typedef struct binarysearchtree *BST;
  9.  
  10. BST BSTinit();
  11. void BSTfree(BST bst);
  12. int BSTcount(BST bst);
  13. int BSTempty(BST bst);
  14. Item BSTsearch(BST bst, Key k);
  15. void BSTinsert_leafI(BST bst, Item x);
  16. void BSTinsert_leafR(BST bst, Item x);
  17. void BSTinsert_root(BST bst, Item x);
  18. void BSTdelete(BST bst, Key k);
  19. Item BSTmin(BST bst);
  20. Item BSTmax(BST bst);
  21. Item BSTselect(BST bst, int k);
  22. void BSTvisit(BST bst, int strategy);
  23. Item BSTsucc(BST bst, Key k);
  24. Item BSTpred(BST bst, Key k);
  25. void BSTpartition(BST bst, int k);
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. #endif // BST_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement