Stack Implementation using Array Program

A stack is a fundamental data structure that follows the Last In, First Out (LIFO) principle, meaning the last element added to the stack will be the first one to be removed. It’s like a stack of plates, you add to the top and take from the top. This post will explore how to implement … Read more

Implement stack using singly linked list

Stack can be implemented by both array and linked list. There is some limitation or you can say that drawback in stack implementation using an array is that the array must be declared with some fixed size. In case if the size of the array becomes small to perform the required operation so this is … Read more

Dijkstra’s Algorithm Explanation with example

Dijkstra’s algorithm, given by a brilliant Dutch computer scientist and software engineer Dr. Edsger Dijkstra in 1959. Dijkstra’s algorithm is a greedy algorithm that solves the single-source shortest path problem for a directed and undirected graph that has non-negative edge weight. For Graph G = (V, E)w (u, v) ≥ 0 for each edge (u, … Read more

Breadth First Search (BFS) Traversal in Data Structure

Breadth-first search graph traversal techniques use a queue data structure as an auxiliary data structure to store nodes for further processing. The size of the queue will be the maximum total number of vertices in the graph. It is a smart way to look through data organized in a graph. A graph is a collection … Read more

Hashing in data structure with its types

Hashing is an approach to convert a larger key into a smaller integer value within a given limited range. Here the key is a larger value that we need to store And the integer value is an address in the hash table where the key will be store. To find integer address from key-value we … Read more