Merging in Data Structure

Introduction of Merging in Data Structure The merging in data structure is a fundamental process or operation in many algorithms and data manipulation tasks. Definition of Merging Merging is the process of combining two or more sets of data or lists/files into a large, single-sorted set/lists/file.  Characteristics of Merging The merging process Read more…

Loading

Searching in Data Structure

Introduction of Searching in Data Structure Searching is an operation or a technique that helps to find the place of a given element or value in the list. Definition of Searching Searching is an algorithmic process of finding out the specific and required information from a collection of data items stored Read more…

Loading

Shortest Path Problem

Introduction In graph theory, the shortest path problem is the problem of finding a path between two vertices/nodes (as source and destination) in a graph such that the sum of the weights/costs of its constituent edges route is minimized. The shortest path problem is considered as – The single-pair shortest path problem: It includes – The single-source shortest path problem, in which Read more…

Loading

Minimum Cost Spanning Tree

Introduction of Minimum Cost Spanning Tree The minimum (Cost) Spanning Tree is also known as MST.  Definition of MST A Spanning Tree (ST) is (actually derived from a graph) a tree (a connected graph without a cycle) that contains all the vertices of the graph. In other words, ST is Read more…

Loading

Representation of Graph

Introduction of Representation of Graph Graphs are believed to be a way of expressing relationships between pairs of items and are one of the most important abstractions in computer science. Definition The representation of a graph is a way to store graphical format inside the computer’s memory in the binary Read more…

Loading

Traversal in Graph

Introduction of Traversal in Graph Traversal means the act or process of passing across, over, touching, or through and doing something with the data. A graph traversal technique visits every node exactly once in a systematic fashion. Definition Graph traversal is a process for accessing/searching all the vertices data values Read more…

Loading

Splay Tree

Introduction The splay tree was introduced by Daniel Sleator and Robert Tarjan in 1985. Splay trees perform a splay operation, which is a combination of rotations and reorganizations, to move the accessed element to the root.  Definition A splay tree is a self-adjusting binary search tree data structure that provides Read more…

Loading

Red-Black Tree

Introduction of Red-Black Tree The red-Black tree is advanced and is a modified form of the Binary Search Tree. Definition A red-black tree is a self-balancing binary search tree that maintains balanced properties through the use of color annotations on its nodes i.e. every node is colored with either red Read more…

Loading

AVL Tree

Introduction of AVL Tree The AVL tree is named after its two Soviet Union inventors, Georgy Adelson-Velsky and Evgenii Landis, who published it in their paper “An algorithm for the organization of information” in 1962. The AVL tree is also called Self Balancing BST. Tree Rotation : Tree rotation is an operation performed on an Read more…

Loading

Binary Search Tree

Introduction of Binary Search Tree They are also called Ordered Binary Trees as each node in BST is placed according to a specific order. Definition A binary search tree is a non-linear, non-cyclic data structure and is an extension/type of binary tree that may be empty, or each node has Read more…

Loading