![]() |
TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
A simple tree implementation using structured nodes. More...
#include <iostream>Go to the source code of this file.
Classes | |
| class | node |
| class | Queue |
Functions | |
| void | enqueue (node *n) |
| node * | dequeue () |
| void | Insert (node *n, int x) |
| int | findMaxInLeftST (node *n) |
| void | Remove (node *p, node *n, int x) |
| void | BFT (node *n) |
| void | Pre (node *n) |
| void | In (node *n) |
| void | Post (node *n) |
| int | main () |
Variables | |
| Queue | queue |
A simple tree implementation using structured nodes.
Definition in file binary_search_tree.cpp.
| void BFT | ( | node * | n | ) |
Definition at line 92 of file binary_search_tree.cpp.
| node * dequeue | ( | ) |
Definition at line 27 of file binary_search_tree.cpp.
| void enqueue | ( | node * | n | ) |
Definition at line 25 of file binary_search_tree.cpp.
| int findMaxInLeftST | ( | node * | n | ) |
Definition at line 53 of file binary_search_tree.cpp.
| void In | ( | node * | n | ) |
Definition at line 109 of file binary_search_tree.cpp.
| void Insert | ( | node * | n, |
| int | x ) |
Definition at line 29 of file binary_search_tree.cpp.
| int main | ( | void | ) |
Definition at line 125 of file binary_search_tree.cpp.
| void Post | ( | node * | n | ) |
Definition at line 117 of file binary_search_tree.cpp.
| void Pre | ( | node * | n | ) |
Definition at line 101 of file binary_search_tree.cpp.
Definition at line 60 of file binary_search_tree.cpp.
| Queue queue |
Definition at line 23 of file binary_search_tree.cpp.