Advantage and disadvantage of array in data structure
Answers
Answered by
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...
- 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
India Languages,
6 months ago
English,
6 months ago
Math,
6 months ago
Computer Science,
11 months ago
Environmental Sciences,
11 months ago
English,
1 year ago
Science,
1 year ago
Biology,
1 year ago