COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Simple and Nested
|
|
Linear and Non Linear
|
|
Sequential and random
|
|
None of the above
|
Detailed explanation-1: -In linear data structure, data elements are sequentially connected and each element is traversable through a single run. In non-linear data structure, data elements are hierarchically connected and are present at various levels. In linear data structure, all data elements are present at a single level.
Detailed explanation-2: -Trees and Graphs are the types of non-linear data structures. Tree: The tree is a non-linear data structure that is comprised of various nodes. The nodes in the tree data structure are arranged in hierarchical order.
Detailed explanation-3: -Non-primitive data structures are divided into linear and non-linear data structures. Arrays and linked lists are examples of linear data structure and trees, graph are examples of non-linear data structure.