Data Structure is a way to store and organize data that it can be used efficiently. As per name indicates itself that organizing the data in memory. The data structure is not any programming language like c, ctt, It is set of algorithms that we Java, etc. can use in any programming language to stricture data in memory
int,char,float,double
The arrangement of data in the sequential manner is known as linear data structure. The data structure used for this purpose are Arrays, linked list, stacks and queues. In this date structures, one element is connected to only one another element in a linear form
when one element is connected to the n number of elements known as non-linera data structures
Example- trees and graphs.
in this case,elments are arranged in a random manner
As applications are getting complexed and amount of data is increasing day by day, there may arrise following problems :-
Processor speed :- As data is growing day by day to the billions of files per entity, processor may fail to deal with that amount of data.
Data Structure :- consider an inventory size of 106 items in store,
if our application needs to: search for a particular item, it needs to transverse 106 items every time,
results in slowing down process multiple requests :- If thousands of users are searching data simultaneously on a web server, then there are chances that to be failed to search during that process.
To solve this problems, data Structures are used. Data is organized to form a data structure in a such way that all items, are not required to be searched and require later, can be searched instantly.