Which of the following data structure is linear type?5
17509 5b5cc696e4d2b4197774c55b
Q: Which of the following data structure is linear type?
- 1Treefalse
- 2Binary Treefalse
- 3Queuetrue
- 4Graphfalse
- Show Answer
- Workspace
- Discuss
Answer : 3. "Queue"
Explanation :
Answer: C) Queue Explanation: A data structure is a specialized format for organizing and storing data. General data structure types include the array, the file, the record, the table, the tree, and so on. Any data structure is designed to organize data to suit a specific purpose so that it can be accessed and worked with in appropriate ways. Linear data structure: A linear data structure traverses the data elements sequentially, in which only one data element can directly be reached. Ex: Arrays, Linked Lists, Stack, Queue, Any type of List all are linear. Trees like Binary Tree, B Tree or B+ Tree are examples of non linear data structure.