Data Structures Introduction
Data Structures Introduction
www.vectorindia.org 1
Introduction to DataStructures
Advantages of DataStructures
We need data structures because there are several advantages of using them,
few of them are as follows:
1.Data Organization: We need a proper way of organizing the data so that it can
accessed efficiently when we need that particular data. DS provides different
ways of data organization so we have options to store the data in different data
structures based on the requirement.
2.Efficiency: The main reason we organize the data is to improve the efficiency.
We can store the data in arrays then why do we need linked lists and other data
structures? because when we need to perform several operation such as add,
delete update and search on arrays , it takes more time in arrays than some of
the other data structures. So the fact that we are interested in other data
structures is because of the efficiency.
www.vectorindia.org 2
Introduction to DataStructures
As per the above illustration, following are the important points to be considered.
Linked List contains a link element called first.
Each link carries a data field(s) and a link field called next.
Each link is linked with its next link using its next link.
Last link carries a link as null to mark the end of the list.
They are a dynamic in nature which allocates the memory when required.
Insertion and deletion operations can be easily implemented.
Stacks and queues can be easily executed.
Linked List reduces the access time.
www.vectorindia.org 3
Introduction to DataStructures
Note :
Reference Books : Taken contents and diagrams from various websites.
www.vectorindia.org 4