What is Data Structure
Last updated
Last updated
A data structure is a way of organizing and storing data in a computer so that it can be accessed and used efficiently.
It refers to the logical or mathematical representation of data, as well as the implementation in a computer program.
Linear: Data elements are arranged sequentially or linearly, where each element is attached to its previous and next adjacent elements.
Non-Linear: Data elements are not placed sequentially or linearly.
The structure of the data and the synthesis of the algorithm are relative to each other. Data presentation must be easy to understand so the developer, as well as the user, can make an efficient implementation of the operation. Data structures provide an easy way of organising, retrieving, managing, and storing data.
Here is a list of the needs for data.
Data structure modification is easy.
It requires less time.
Save storage memory space.
Data representation is easy.
Easy access to the large database
Insertion: Add a new data item in a given collection of items such as us adding the apple item in memory.
Deletion: Delete data such as remove mango from our list.
Traversal: Traversal simply means accessing each data item exactly once so that it can be processed.
Searching: We want to find out the location of the data item if it exists in a given collection.
Sorting: Having data that is sorted.
Access: How do we access this data that we have on our computer?