Trees algorithm

Benjamin Bannekat

Trees in C++

What is Binary Tree?
A tree whose elements have at most 2 children is called a binary tree. Since each element in a binary tree can have only 2 children, we typically name them the left and right child.

Read More

Recursion algorithm

Benjamin Bannekat

Recursion

What is Recursion?
The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called as recursive function. Using recursive algorithm, certain problems can be solved quite easily.

Read More

Hash table algorithm

Benjamin Bannekat

Hash Table

The official name is unordered associative containers and bucket is another name of index. In hashing there is a hash function that maps keys to some values. But these hashing function may lead to collision that is two or more keys are mapped to same value. Chain hashing avoids collision. The idea is to make each cell of hash table point to a linked list of records that have same hash function value.

Read More