Arnab Chakraborty has Published 4293 Articles

Hashing by Division in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 09:22:45

623 Views

Here we will discuss about the hashing with division. For this we use the hash function −ℎ(𝑥) = 𝑥 𝑚𝑜𝑑 𝑚To use this hash function we maintain an array A[0, … m – 1]. Where each element of the array is a pointer to the head of the linked list. ... Read More

Hash Tables for Integer Keys in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 09:18:22

378 Views

Here we will discuss about the Hash tables with the integer keys. Here the key values 𝑥 comes from universe 𝑈 such that 𝑈 = {0, 1, … , 𝑢 – 2, 𝑢 – 1}. A hash function is ℎ. The domain of this hash function is 𝑈. The range ... Read More

Deletion from a Max Heap in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 09:15:38

2K+ Views

Here we will see how to delete elements from binary max heap data structures. Suppose the initial tree is like below −Deletion Algorithmdelete(heap, n) − Begin    if heap is empty, then exit    else       item := heap[1]       last := heap[n]       ... Read More

Insertion into a Max Heap in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 09:13:15

7K+ Views

Here we will see how to insert and elements from binary max 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

Fibonacci Heaps in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 09:10:31

1K+ Views

Like Binomial heaps, Fibonacci heaps are collection of trees. They are loosely based on binomial heaps. Unlike trees with in binomial heaps are ordered trees within Fibonacci heaps are rooted but unordered.Each node x in Fibonacci heaps contains a pointer p[x] to its parent, and a pointer child[x] to any ... Read More

Binomial Heaps in Data Structure

Arnab Chakraborty

Arnab Chakraborty

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

4K+ Views

A binomial Heap is a collection of Binomial Trees. A binomial tree Bk is an ordered tree defined recursively. A binomial Tree B0 is consists of a single node.A binomial tree Bk is consisting of two binomial tree Bk-1. That are linked together. The root of one is the left ... Read More

Eulerian and Hamiltonian Graphs in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 09:06:22

2K+ Views

In this section we will see the Eulerian and Hamiltonian Graphs. But before diving into that, at first we have to see what are trails in graph. Suppose we have one graph like below −The trail is a path, which is a sequence of edges (v1, v2), (v2, v3), …, ... Read More

Depth-First Search on a Digraph in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 09:04:54

660 Views

The Depth first search for graphs are similar. But for Digraphs or directed graphs, we can find some few types of edges. The DFS algorithm forms a tree called DFS tree. There are four types of edges called −Tree Edge (T) − Those edges which are present in the DFS ... Read More

Searching a Graph in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 09:03:06

2K+ Views

We know that the graph is one non-linear data structure. In this data structure, we put some values into nodes, and the nodes are connected though different edges. As we can store data into the graph structure, we also need to search elements from the graph to use them.For searching ... Read More

Weighted Graph Representation in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 10-Aug-2020 09:01:23

19K+ Views

As we know that the graphs can be classified into different variations. They can be directed or undirected, and they can be weighted or unweighted. Here we will see how to represent weighted graph in memory. Consider the following graph −Adjacency matrix representationTo store weighted graph using adjacency matrix form, ... Read More

Advertisements