
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Arnab Chakraborty has Published 4293 Articles

Arnab Chakraborty
215 Views
Dual HeapExistence of general methods to arrive at efficient DEPQ (Double Ended Priority Queue) data structures from single-ended priority queue (PQ) data structures that also provide an efficient implementation of the remove(aNode) operation (this operation eliminates the node aNode from the PQ). The simplest of these methods, dual structure method, ... Read More

Arnab Chakraborty
247 Views
Now we shall explain the technique for removing the min elements in the deap data structure. During deletion, our main target to delete the minimal value from deaps. As the height of the tree is always log n, it consumes time of order of log n. We can discuss deletion ... Read More

Arnab Chakraborty
613 Views
To insert element into deap data structure, we might need the procedures to calculate the minimum and maximum values as depicted below −Procedure min_value(m): //To calculate the minimum value in deap. return m-2log2((m-1) ;Procedure max_value(m): //To calculate the maximum value in deap. return m+2log2(m-1);The insertion operation in deap data structure ... Read More

Arnab Chakraborty
2K+ Views
Deap is defined as a data structure which has no element or key value at the root node. It is formed by implementing the following rules −There is no element at root node that indicates root node is empty.Left subtree of the deap shall indicate min heap.Right subtree of deap ... Read More

Arnab Chakraborty
8K+ Views
A min-max heap is defined as a complete binary tree containing alternating min (or even) and max (or odd) levels. Even levels are denoted as for example 0, 2, 4, etc, and odd levels are denoted as 1, 3, 5, etc.We consider in the next points that the root element ... Read More

Arnab Chakraborty
224 Views
A double-ended priority queue(DEPQ) or interval heap features the following operations −isEmpty()This function performs to check if DEPQ is empty and returns true if empty.size()This function performs to return the total number of elements present in the DEPQ.getMin()This function performs to return the element having lowest priority.getMax()This function performs to ... Read More

Arnab Chakraborty
343 Views
An interval heap is same as an embedded min-max heap in which each node contains two elements. It is defined as a complete binary tree in whichThe left element is smaller than or equal to the right element.Both the elements define a interval which is closed.Interval represented by any node ... Read More

Arnab Chakraborty
785 Views
Left-Child Right-Sibling Representation is a different representation of an n-ary tree where instead of maintaining a pointer to each and every child node, a node holds just two pointers, first a pointer to its first child, and the other pointer to its immediate next sibling. This new transformation not only ... Read More

Arnab Chakraborty
408 Views
In an interval heap, the smallest element is the element on the left hand side of the root node. This element is eliminated and returned.For filling the vacancy created on the left hand side of the root node, an element from the last node is eliminated and again inserted into ... Read More

Arnab Chakraborty
250 Views
Depending on the number of elements which are present in the interval heap, following cases are possible -Odd number of elements: If the number of elements in the interval heap be odd, the new element is inserted in the last node at first. Then, it is compared with the previous ... Read More