Hello readers, today we introduce you to the basic data structure. If you like this information, please share it with your friends. Give me a comment to improve my writing skills and subscribe by email for future updates.
So Let's start...
Array
An array is a data structure that contains a group of elements. typically these elements are all of the same data types, such as an integer and string.
Here's an image of a simple array of size 4, containing elements (1,2,3, and 4).
Stack
A stack is a data structure used to store a collection of objects. Individual items can be added and stored in a stack using a push operation.
Here's an image of a stack containing three data elements (1, 2, and 3), where 3 is at the top and will be removed first:
Queues
The queue is another linear data structure that stores the elements in a sequential manner.
Here's an image of Queues containing four data elements (1, 2, 3, and 4), where 1 is at the top and will be removed first:
Linked List
A linked list is like a chain of nodes, where each node contains information like data and a pointer to the succeeding node in the chain.
Here's a visual representation of the internal structure of a linked list:
Graph
A graph is a set of nodes that are connected to each other in the form of a network. Nodes are also called vertices.
Trees
A tree is a hierarchical data structure consisting of vertices (nodes) and edges that connect them.
Trie
It provides fast retrieval and is mostly used for searching words in a dictionary, providing auto-suggestion in a search engine, and even for IP routing.
Hash
Hashing is a process used to uniquely identify objects and store each object at some pre-calculated unique index called its "key".
Thanks for Reading!
If you learned at least one thing from this post, then share the post. There is no expert who can remain an expert without sharing their knowledge. So, keep sharing your knowledge with everyone.