Arnab Chakraborty has Published 4293 Articles

Insertion and Deletion in Heaps in Data Sturcture

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 08:59:32

6K+ Views

Here we will see how to insert and delete elements from binary heap data structures. Suppose the initial tree is like below −Insertion Algorithminsert(heap, n, item): Begin    if heap is full, then exit    else       n := n + 1       for i := ... Read More

Priority Queues in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 08:56:47

704 Views

As we know that the queue data structure is First in First Out data structure. The queue has some variations also. These are the Dequeue and the Priority Queue.Here we will see one variation of queue, that is the priority queue. In this structure, each element in the queue has ... Read More

Binary Heap in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 08:46:41

537 Views

Heap or Binary Heap is a special case of balanced binary tree data structure. This is complete binary tree structure. So up to l-1 levels it is full, and at l level, all nodes are from left. Here the root-node key is compared with its children and arranged accordingly. If ... Read More

Inorder Traversal of a Threaded Binary Tree in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 08:46:00

5K+ Views

Here we will see the threaded binary tree data structure. We know that the binary tree nodes may have at most two children. But if they have only one children, or no children, the link part in the linked list representation remains null. Using threaded binary tree representation, we can ... Read More

Threaded Binary Trees in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 08:39:09

4K+ Views

Here we will see the threaded binary tree data structure. We know that the binary tree nodes may have at most two children. But if they have only one children, or no children, the link part in the linked list representation remains null. Using threaded binary tree representation, we can ... Read More

Generalized Lists in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 08:37:45

6K+ Views

In this section we will see the generalized lists. The generalized list can be defined as below −A generalized list L is a finite sequence of n elements (n ≥ 0). The element ei is either an atom (single element) or another generalized list. The elements ei that are not ... Read More

Doubly Linked Circular Lists in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 08:33:43

2K+ Views

Circular Linked List is a variation of Linked list in which the first element points to the last element and the last element points to the first element. Both Singly Linked List and Doubly Linked List can be made into a circular linked list.In doubly linked list, the next pointer ... Read More

Sparse Matrices in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 08:23:11

5K+ Views

In this section we will see what is the sparse matrix and how we can represent them in memory. So a matrix will be a sparse matrix if most of the elements of it is 0. Another definition is, a matrix with a maximum of 1/3 non-zero elements (roughly 30% ... Read More

Irregular Arrays in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 08:19:28

1K+ Views

Here we will see the Irregular arrays. Before discussing the irregular arrays, we have to know what are regular arrays. The regular arrays are that kind of arrays, where the number of columns in each row is same. Or in other words, when each row is holding same number of ... Read More

Array of Arrays Representation in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 08:17:35

736 Views

In this section we will see another representation of multidimensional arrays. Here we will see the Array of Arrays representation. In this form, we have an array, that is holding the starting addresses of multiple arrays. The representation will be look like this.This is a two-dimensional array x of size ... Read More

Advertisements