data structures & algorithms
data structures & algorithms
Array in
Data Structures
ObjectiveS
ARRAY:INTRODUCTION,DECLARATION ,
INITIALISATION OFARRAYS
TYPES OF ARRAYS
OPERATIONS ON ARRAYS
SEARCHING TECHNIQUES(LINEAR,BINARY SEARCH)
SORTING TECHNIQUES(BUBBLE,INSERTION,
MERGE,QUICK,SELECTION SORTS)
ADVANTAGES &DISADVANTAGES OF ARRAYS
CONCLUSION
WHAT ARE ARRAYS?
Arrays are data structures that hold a
collection of elements, typically of the
same data type, in a contiguous
memory location. Each element in an
array can be accessed using an index,
which makes it easy to retrieve and
update data.
DECLARATION OF AN ARRAY:
Arrays are declared by specifying the data type of their
elements followed by square brackets. For example,
SYNTAX:datatype array_name[arraysize];
In C:
int numbers[10];
INITIALISATION of arrays:
Arrays can be initialized at the
time of declaration or later in the
code. For example, in Java