Heap data structure

The heap data structure is a balanced binary tree where the root node of the tree is compared with the child nodes while arranging the tree. If the value of the root node is larger than or equal to any child node, the structure is called a Max Heap. If the value of the root node is lesser than or equal to any child node, the structure is called a Min Heap.

Comments

Popular posts from this blog

Check MySQL query history from command line