Data Structures Tutorial
Data Structures Tutorial
Data Structures (DS) tutorial provides basic and advanced concepts of Data Structure.
Our Data Structure tutorial is designed for beginners and professionals.
Data Structure is a way to store and organize data so that it can be used efficiently.
Our Data Structure tutorial includes all topics of Data Structure such as Array, Pointer,
Structure, Linked List, Stack, Queue, Graph, Searching, Sorting, Programs, etc.
The data structure is not any programming language like C, C++, java, etc. It is a set
of algorithms that we can use in any programming language to structure the data in
the memory.
To structure the data in memory, 'n' number of algorithms were proposed, and all
these algorithms are known as Abstract data types. These abstract data types are the
set of rules.
Types of Data Structures
There are two types of data structures:
The primitive data structures are primitive data types. The int, char, float, double, and
pointer are the primitive data structures that can hold a single value.
When one element is connected to the 'n' number of elements known as a non-
linear data structure. The best example is trees and graphs. In this case, the
elements are arranged in a random manner.
We will discuss the above data structures in brief in the coming topics. Now, we will
see the common operations that we can perform on these data structures.
o Static data structure: It is a type of data structure where the size is allocated
at the compile time. Therefore, the maximum size is fixed.
o Dynamic data structure: It is a type of data structure where the size is
allocated at the run time. Therefore, the maximum size is flexible.
Major Operations
The major or the common operations that can be performed on the data structures
are:
As the different data structures can be implemented in a particular ADT, but the
different implementations are compared for time and space. For example, the Stack
ADT can be implemented by both Arrays and linked list. Suppose the array is
providing time efficiency while the linked list is providing space efficiency, so the one
which is the best suited for the current user's requirements will be selected.