Code Pumpkin

Tag Archives: Tree

Tree Data Structure Terminologies – Set 2

July 2, 2018
Posted by Pumpkin

In our previous article on Tree Terminologies, we have seen basic tree terminologies like Nodes, Edges, Root, Parent, Children, Leaves and Siblings. In this article, we will understand Degree of Tree, Path, Level, Depth, Height and sub tree.  Degree Total number of children of a node is called Degree of that node. The Degree of […]

Tree Data Structure Terminologies – Set 1

July 1, 2018
Posted by Pumpkin

In this article, we will discuss one of the important non-linear data structure in computer science, Tree. Many real-life problems can be represented and solved using Tree data structure.  In this article, we will understand basic tree terminologies like Nodes, Edges, Root, Parent, Children, Leaves and Siblings. In next article on tree terminologies, we will see  terms […]

Heap (Min/Max Heap)

March 31, 2017
Posted by Pumpkin

What is heap? Heap is a balanced binary tree data strucure where the root-node key is compared with its children and arranged accordingly. Max Heap: Root element will always be greater than or equal to either of its child element( see the image on left pane). Min Heap: Root element will always be less than or equal […]

Contribute Your Articles

Interview Experiences

Subscribe Us

Like Us On Facebook

Support Code Pumpkin on Patreon!