What is Data structure?
A 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.
There are different types of methods used to store and organized the data, they are
Main two types,
- Linear Data structure
- Non – linear Data structure
Linear
data structure
Linear data structures are those in which the elements are arranged sequentially,
and each element is connected to its previous and next elements.
- Array
- Queue
- Stack
- Linked List
- Non-Linear data structure
Non-linear Data Structures
Non-linear data structures are those in which the elements are not
arranged sequentially. Instead, each element is connected to one or more other elements.
in a way that
forms a hierarchical structure.
Example:
- Tree
- Graph
No comments:
Post a Comment