Here you have the binary search tree data structure implementation in C++, this project was create to the "Algorithm and Data Structure (Algoritmos y Estructura de Datos)" subject for the Universidad Nacional de Lanús.
-
Binary search Tree with:
* Insertion / Creation of the tree * Show the size * Show the Max Node * Show the Min Node * Show boolean if the contains data * Depth First Search * PreOrder search * InOrder search * PostOrder search * Breadth First Search
-
In order to compile & execute the application, you just can use this command for Linux/Mac OS (inside the project folder, of course):
mkdir -p ./bin/ && g++ $(find ./src/ -name *.cpp -o -name *.c) -o ./bin/main -g -lm && ./bin/main
If you want to learn all about computer science, algorithms and data structures, I recommend you visit the site GeeksForGeeks.