Data Structures Explained - CodeHype
Data Structures Explained - CodeHype
@codehype_
Data Structures
Explained!
codehype.in Swipe →
What is Data Structure ?
eHype
Cod
CodeHype CodeHype
Arrays
eHype
Cod
eHype
Cod
CodeHype CodeHype
Linked Lists
eHype
Cod pe
ody
eH
C
Types of linked lists:
CodeHype CodeHype
Stack
Stack is a linear data structure that follows a
particular order in which the operations are
performed. The order is LIFO(Last in first
out). Entering (Push) and retrieving (Pop)
data is possible from only one end.
eHype
Cod
eHype
Cod
CodeHype CodeHype
Queue
Queue is a linear data structure that follows a
particular order in which the operations are
performed. The order is First In First
Out(FIFO) i.e. the data item stored first will be
accessed first. In this, entering and retrieving
data is not done from only one end.
eHype
Cod
eHype
Cod
CodeHype CodeHype
Tree
A tree is a non-linear and hierarchical data
structure where the elements are arranged in
a tree-like structure. In a tree, the topmost
node is called the root node. Each node
contains some data, and data can be of any
type. It consists of a central node, structural
nodes, and sub-nodes which are connected
via edges.
eHype
Cod
eHype
Cod
CodeHype CodeHype
Graph
A graph is a non-linear data structure that
consists of vertices (or nodes) and edges. It
consists of a finite set of vertices and set of
edges that connect a pair of nodes. The graph
is used to solve the most challenging and
complex programming problems. It has
different terminologies which are Path,
Degree, Adjacent vertices, Connected
components, etc.
eHype
Cod
eHype
Cod
CodeHype CodeHype
Conclusion
While these are the commonly utilized
data structures, there are other types
like policy-based data structures in
Computer Science. Regardless of the
choice, each structure has its benefits
and drawbacks.
e H y pe
C o d
Selecting the appropriate one is crucial
to avoid costly mistakes. Understanding
the situation's requirements helps in
making the best-suited data structure
decision.
CodeHype CodeHype
Follow for more useful content
Telegram
@codehype
Join Telegram for
FREE Coding
Resources
CodeHype