Data Structures
What are Data Structures?
Data structure is a storage that is used to store and organize data. It is a
way of arranging data on a computer so that it can be accessed and
updated efficiently.
Types of Data Structure
Basically, data structures are divided into two categories:
1. Linear data structure
2. Non-linear data structure
1. Linear data structures
In linear data structures, the elements are arranged in sequence
one after the other. Since elements are arranged in particular
order, they are easy to implement.
Popular linear data structures are:
Array Data Structure
In an array, elements in memory are arranged in continuous
memory. All the elements of an array are of the same type. And, the
type of elements that can be stored in the form of arrays is
determined by the programming language.
Stack Data Structure
In stack data structure, elements are stored in the LIFO principle.
That is, the last element stored in a stack will be removed first.
What are Data Structures?
Data structure is a storage that is used to store and organize data. It is a
way of arranging data on a computer so that it can be accessed and
updated efficiently.
Types of Data Structure
Basically, data structures are divided into two categories:
1. Linear data structure
2. Non-linear data structure
1. Linear data structures
In linear data structures, the elements are arranged in sequence
one after the other. Since elements are arranged in particular
order, they are easy to implement.
Popular linear data structures are:
Array Data Structure
In an array, elements in memory are arranged in continuous
memory. All the elements of an array are of the same type. And, the
type of elements that can be stored in the form of arrays is
determined by the programming language.
Stack Data Structure
In stack data structure, elements are stored in the LIFO principle.
That is, the last element stored in a stack will be removed first.