Arnab Chakraborty has Published 4293 Articles

Skip Lists in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 07-Jan-2020 11:53:27

629 Views

In a skip list, one can finger search for element a from a node containing the element b by simply continuing the search from this point a.Note that if a < b, then search proceeds at backward direction, and if a > b, then search proceeds at forward direction.The backwards ... Read More

Randomized Finger Search Trees in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 07-Jan-2020 11:51:31

231 Views

Two randomized alternatives to deterministic search trees are the randomized binary search trees, treaps and the skip lists. Both treaps and skip lists are defined as elegant data structures, where the randomization facilitates simple and efficient update operations.In this section we explain how both treaps and skip lists can be ... Read More

Level Linked (2,4)-Trees in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 07-Jan-2020 11:35:38

673 Views

In this section we explain how (2, 4)-trees can support efficient finger searches by the introduction of level links. The ideas explained in this section also implements to the more general class of height-balanced trees denoted (a, b)-trees, for b ≥ 2a.A (2, 4)-tree is defined as a height-balanced search ... Read More

Dynamic Finger Search Trees in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 07-Jan-2020 11:29:21

402 Views

A dynamic finger search data structure should in addition to finger searches also perform the insertion and deletion of elements at a position given by a finger.Finger search trees is defined as a variant of B-trees supporting finger searches in O(log d) time and updates in O(1) time, assuming that ... Read More

Finger Searching in Data Structure

Arnab Chakraborty

Arnab Chakraborty

Updated on 07-Jan-2020 09:42:30

421 Views

A finger search on a data structure is defined as an extension of any search operation that structure supports, where a reference (finger) to an element in the data structure is given along with the query. While the search time for an element is most frequently denoted as a function ... Read More

Construct BST from its given level order traversal in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 03-Jan-2020 11:42:38

391 Views

Suppose we have one level order traversal. From this traversal. we have to generate the tree So if the traversal is like [7, 4, 12, 3, 6, 8, 1, 5, 10], then the tree will be like −To solve this, we will use recursive approach. The first element will be ... Read More

Construct BST from given preorder traversal - Set 2 in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 03-Jan-2020 11:39:48

219 Views

Suppose we have one pre order traversal. From this traversal. we have to generate the tree So if the traversal is like [10, 5, 1, 7, 40, 50], then the tree will be like −To solve this, we will follow these steps −Create empty stackMake the first value as root, ... Read More

Construct BST from given preorder traversal - Set 1 in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 03-Jan-2020 11:36:03

179 Views

Suppose we have one pre order traversal. From this traversal. we have to generate the tree So if the traversal is like [10, 5, 1, 7, 40, 50], then the tree will be like −To solve this, we will use this trick. The trick is to set a range {min… ... Read More

Construct a Turing Machine for language L = {wwr | w ∈ {0, 1}}

Arnab Chakraborty

Arnab Chakraborty

Updated on 03-Jan-2020 11:31:12

6K+ Views

Here we will see how to make a Turing machine for language L = {WWr |W belongs to {0, 1}}. So this represents a kind of language where we will use only two characters 0s and 1s. The w is a string and wr is reverse of it. So if ... Read More

Construct a Turing Machine for language L = {ww | w ∈ {0,1}}

Arnab Chakraborty

Arnab Chakraborty

Updated on 03-Jan-2020 11:29:23

7K+ Views

Here we will see how to make a Turing machine for language L = {WW |W belongs to {0, 1}}. So this represents a kind of language where we will use only two characters 0s and 1s. The w is a string. So if w = 10110, so the Turing ... Read More

Advertisements