-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSLTest.cpp
More file actions
51 lines (43 loc) · 904 Bytes
/
Copy pathSLTest.cpp
File metadata and controls
51 lines (43 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include <iostream>
#include "RBST.hpp"
int main (){
RBST * s = new RBST();
/*
BloomFilter * b = new BloomFilter(1000);
b -> add("Jamal");
b -> add("Qaiser");
b -> dump();
b -> testExist("Zaran", true);
b -> testExist("Jamal", true);
b -> del("Jamal");
b -> del("Zaran");
b -> testExist("Jamal", true);
*/
/*
SkipList * s = new SkipList(10);
s -> add("Jamal", true);
*/
s -> find("Jamal", true);
s -> add("Alex", true);
s -> add("Javed", true);
s -> add("Aleph", true);
s -> del("Alexr", true);
s -> add("Rabbit", true);
s -> add("Lala", true);
s -> add("Goat", true);
s -> add("Qa", true);
s -> add("High", true);
s -> add("Lama", true);
s -> dump();
s -> del("Qa", true);
s -> del("Javed", true);
s -> dump();
/*, true
s -> find("Goat", true);
s -> del("Goat", true);
s -> find("Goat", true);
s -> dump('\n');
s -> del("Aleph", true);
s -> dump();
*/
}