example of linear and non-linear data structures?
Answer Posted / sirsendu chakraborty
The data structure is said to be a Linear data structure if
its elements are in sequence and form a linear list.
Ex. Arrays, Stacks, Queues,Linked Lists.
If the elements of data structure do not form a sequence or a
linear list then that type of data structure is called as Non-
Linear data structure.
Ex. Trees, BST(Binary Search Trees) etc.
| Is This Answer Correct ? | 300 Yes | 21 No |
Post New Answer View All Answers
What is the Role of push() and pop() method?
Is hashmap an array?
Why is arraylist faster than linkedlist?
Why is sorting and classifying important?
Can we store primitives in collections?
What is the difference between data type and data structure?
What is the purpose of sorting algorithms?
Can array store heterogeneous data?
In rdbms, explain what is the efficient data structure used in the internal storage representation?
Explain the most efficient method to reverse a linked list?
What is the use of heap sort?
Define distributed query and linked server?
Provide an algorithm to reverse a linked list without using recursion.
What is the difference between null and void pointer in data structures?
What are the different binary tree traversal techniques?