17
Mar

First of all including c programing language libraries:

  • stdlib.h – because we need use function malloc which is declared in stdlib header file
  • stdio.h – allows us to use other  standard c library  functions, such as printf
1
2
#include <stdio.h>
#include <stdlib.h>

Then we need to create structure which has:

Continue reading “Binary search tree insertion in c” »

07
Mar

Binary search tree example

Simple binary search tree example


Continue reading “Binary search tree” »

02
Mar

Very good example showing, how to insert numbers into b-tree, type data structure and later remove it from tree. Deletion goes a bit to fast so later I make my own tutorial, how to insert and delete data from b-tree.
Continue reading “b-tree example” »

01
Mar

First and very useful lesson how to insert nodes in binary tree.
Continue reading “First binary search tree example” »