COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which of these in NOT a linear data structure?
|
Tree
|
|
Stack
|
|
Array
|
|
Queue
|
Explanation:
Detailed explanation-1: -Arrays, linked list, stack, queue are the types of a linear data structure. Trees and graphs are the types of a non-linear data structure.
Detailed explanation-2: -A tree is a nonlinear data structure, compared to arrays, linked lists, stacks and queues which are linear data structures.
Detailed explanation-3: -A tree is a non-linear acyclic, easy, connected graph. It’s a non-linear data system as in a tree a node might be associated with over one node. It’s a set of nodes connected by direct (or maybe indirect) edges.
There is 1 question to complete.