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
Define a path in a tree?
Describe binary tree and its property.
Define root?
Why would we use dynamically allocated arrays vs vectors?
Which sorting is worst?
Why hashtable is faster than arraylist?
What is stack algorithm?
Why do we need arrays if all the operations that are performed on arrays can be performed on arraylist?
Does arraylist maintain order?
Which is better hashmap or hashtable?
Define a linear data structure.
What does arraylist remove do?
How does quick sort work?
Why using cookie to store session info is a better idea than just using session info in the request?
What is array and its types in data structure?