0
1.6kviews
Explain the types of data structures.
1 Answer
written 6.5 years ago by |
i) Stack:
ii) Queue:
iii) Circular Queue:
iv) Array:
1-D Vector Array | Multidimensional Array |
---|---|
It is a series of elements. | It is a series of elements each having another sub-series of elements. |
It can be accessed by identifier name + index | It can be accessed by Identifier name + 2 or more indexes |
It is used when each element is to be given a distinct identity by an index. | It is used when each element is to be given a distinct identity by 2 or more indices. |
It is a one dimensional array, therefore 1 index. | The number of indices is equal to number of dimensions. |
Index starts from 0 and is a positive integer. | Indices start from 0 and are positive integers. |
v) List:
vi) Pipe:
vii) Table: