Name the two types of data structures and give one point of difference between them.
Advertisements
Advertisements
प्रश्न
Name the two types of data structures and give one point of difference between them.
फरक स्पष्ट करा
Advertisements
उत्तर
The two types are Linear and Non-linear data structures.
| Basis of Difference | Linear Data Structure | Non-linear Data Structure |
|---|---|---|
| Arrangement | Elements are arranged in a sequential order. | Elements are not arranged sequentially. |
| Relationship | Each element is generally connected to its previous and next element. | An element may be connected to multiple elements. |
| Structure | Has a single-level arrangement. | Has a multilevel or hierarchical arrangement. |
| Examples | Array, list, stack, queue, linked list | Tree, graph |
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
