Arnab Chakraborty has Published 4293 Articles

Comparison of Sorting methods in Data Structures

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Aug-2019 13:43:07

7K+ Views

Here we will see some sorting methods. There are 200+ sorting techniques. We will see few of them. Some sorting techniques are comparison based sort, some are non-comparison based sorting technique.Comparison Based Soring techniques are bubble sort, selection sort, insertion sort, Merge sort, quicksort, heap sort etc. These techniques are ... Read More

Comparison of Searching methods in Data Structures

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Aug-2019 13:39:01

5K+ Views

In different cases, we perform different searching schemes to find some keys. In this section we will see what are the basic differences between two searching techniques, the sequential search and binary search.Sequential SearchBinary SearchTime complexity is O(n)Time complexity is O(log n)Finds the key present at first position in constant ... Read More

Stack ADT in Data Structures

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Aug-2019 13:36:02

25K+ Views

The abstract datatype is special kind of datatype, whose behavior is defined by a set of values and set of operations. The keyword “Abstract” is used as we can use these datatypes, we can perform different operations. But how those operations are working that is totally hidden from the user. ... Read More

Convex Hull Example in Data Structures

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Aug-2019 13:34:33

2K+ Views

Here we will see one example on convex hull. Suppose we have a set of points. We have to make a polygon by taking less amount of points, that will cover all given points. In this section we will see the Jarvis March algorithm to get the convex hull.Jarvis March ... Read More

Optimal Binary Search Trees in Data Structures

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Aug-2019 13:03:53

1K+ Views

A set of integers are given in the sorted order and another array freq to frequency count. Our task is to create a binary search tree with those data to find minimum cost for all searches.An auxiliary array cost[n, n] is created to solve and store the solution of sub ... Read More

Negative Binomial distribution in Data Structures

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Aug-2019 12:54:07

153 Views

The Negative Binomial Distribution is a random number distribution that will produce integers according to a negative binomial discrete distribution. This is known as Pascal’s distribution So the negative binomial distribution can be written as$$P\lgroup i\arrowvert k, p\rgroup=\lgroup \frac{k+i-1}{i}\rgroup p^{k}\lgroup 1-p\rgroup^{i}$$Example Live Demo#include #include using namespace std; int main(){ ... Read More

Geometric Distribution in Data Structures

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Aug-2019 12:50:58

393 Views

The Geometric Distribution is a discrete probability distribution for n = 0, 1, 2, …. having the probability density function.$$P\lgroup n\rgroup=p\lgroup1-p\rgroup^{n}$$The distribution function is −$$D\lgroup n\rgroup=\displaystyle\sum\limits_{i=0}^n P\lgroup i \rgroup=1-q^{n+1}$$Example Live Demo#include #include using namespace std; int main(){    const int nrolls = 10000; // number of rolls   ... Read More

Binomial Distribution in Data Structures

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Aug-2019 12:41:00

432 Views

The Binomial Distribution is a discrete probability distribution Pp(n | N) of obtaining n successes out of N Bernoulli trails (having two possible outcomes labeled by x = 0 and x = 1. The x = 1 is success, and x = 0 is failure. Success occurs with probability p, ... Read More

Bernoulli Distribution in Data Structures

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Aug-2019 12:33:29

421 Views

The Bernoulli Distribution is a discrete distribution having two possible outcomes labeled by x = 0 and x = 1. The x = 1 is success, and x = 0 is failure. Success occurs with probability p, and failure occurs with probability q as q = 1 – p. So$$P\lgroup ... Read More

Minimum Spanning Tree in Data Structures

Arnab Chakraborty

Arnab Chakraborty

Updated on 27-Aug-2019 12:29:59

16K+ Views

A spanning tree is a subset of an undirected Graph that has all the vertices connected by minimum number of edges.If all the vertices are connected in a graph, then there exists at least one spanning tree. In a graph, there may exist more than one spanning tree.Minimum Spanning TreeA ... Read More

Advertisements