Computer Science, asked by suryarushitha8998, 11 months ago

Advantage and disadvantage of array in data structure

Answers

Answered by NikhilCr7jr
40
ADVANTAGES OF THE ARRAY IN DATA STRUCTURE :

- collection of similar types of data.
- we need to only remember the first index of the array.
- 2 dimensional array is used to represent a matrix .
- it is used to implement other data structure like linked lists , stacks , queue , etc .

DISADVANTAGES OF ARRAY DATA IN STRUCTURE :
- the time complexity increase in insertion and depletion operation.
- wastage of memory because arrays are fixed in size.
- if there is enough space present in the memory but not in continuous form, in this case you will not able to to initialise your array .

hope it's helpful and mark me as a brain list...
Similar questions