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
Which is better arraylist or linkedlist?
State the advantages of using infix notations?
Does treemap preserve order?
What does map stand for?
Which sorting algorithm is best for large data?
What is the use of threaded binary tree?
How would you dynamically allocate a one-dimensional and two-dimensional array of integers?
Can we add duplicate keys in a hashmap?
Which is better array or linked list?
How do you find the index of an element in an arraylist?
What is the Difference between sax and dom parser?
What is the structure of an array?
What is a subtree in data structures?
What are doubly linked lists?
Define a priority queue?