Importance of Data Structure
Data Structure is process through which we can collect and organize data in best way as well as perform operation on that in most effective way. If we have good understanding of data structures then we are specialized in organizing and storing data. Data structure is designed to organized data to suit a specific purpose so we can access and perform operation with in appropriate ways.
There are mainly two types of data structure:
- Primitive Data Structures.
- Abstract Data Structure
Primitive Data Structures: Primitive data types like integer,float, boolean & char etc. Concept to handling these types of data types in efficient way known as Primitive Data Structures.
Abstract Data Structure: We have also complex type of data types like linked list, tree, graph, stack & queue etc. Concept to handling complex, connected and large amount of data in an appropriate way known as Abstract Data Structure.
There are two types of Abstract Data Structures:
- Stacks: It is a simple data structure that allows adding and removing elements in a particular order. Every time an element is added, it goes on the top of the stack, the only element that can be removed is the element that was at the top of the stack, just like a pile of objects.
- Queue: Queue is also an abstract data type or a linear data structure, in which the first element is inserted from one end called REAR(also called tail), and the deletion of existing element takes place from the other end called as FRONT(also called head). This makes queue as FIFO data structure, which means that element inserted first will also be removed first. The process to add an element into queue is called Enqueue and the process of removal of an element from queue is called Dequeue.
Data structures refers to the way we organize information on our computer. With a slight thinking , you can guess that the way we organize information can have a lot of impact on the performance. Take for example, a library. Suppose, you want to have a book on Set Theory from a public library, to do that you have to first go to the maths section, then to set theory section. If these books are not organized in this manner and just distributed randomly then it will be really a cumbersome process to find a book on set theory.