A Data structures organises the group of data element in an efficient way to store and retrieve the data from computer.
Most commonly used data structures are arrays, linked list,stack,queue,hash tables.
Why do we need Data Structure ?
As applications becomes complex and demands for the huge data handling then processor slows down,
data searching would become difficult and multiple requests to the server may slow down the system to overcome all this drawbacks
we use data structure in an efficient and reusable way.
Data Structure Classification
Primitive Data Structure - it contains primary datatypes byte , short , int , long , char , Boolean , float and double.
Non-Primitive Data Structure - it is derived from primary datatypes such as array, list, files etc (contains of collection of similar type of datatype)
- Arrays - array is a collection of similar type of data element.
- Lists - list is a sequence of data structure which are connected through link
- Linear List - In linear list data is stored in the linear/sequential orderEx: list or a stack of books, in linear list data is accessed using linked list,stacks or queues.
- Linked List - linked list is a sequence of nodes where each node stores its own data and pointer(address) to the location of next node forming a chain.
- Stack - stack inserts and removes data in last in fast out (LIFO) format where both insertion and deletion happens at the single end.
- Queue - queue inserts data from end called rear/tail and removes data from other end called front/head.
- Non-Linear List- In non-linear list data is not stored in a sequential order it is stored in the form of hierarchical format /tree structure, in non-linear list data is accessed using tree or graph.
- Trees - it is multilevel data structure with hierarchical relationship among its elements know as nodes.
- Graph -Graphs can be defined as the pictorial representation of the set of elements (represented by vertices) connected by the links known as edges
3. Files - files is a collection of records.
Happy reading😊
Hi there ! Im a experienced android developer with 4 years of relevant experience Skills include Android,Core Java ,Oops and Kotlin.
Comments
Post a Comment