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
By Which algorithm, the 8 queens problem is solved?
Define non-terminal nodes in a tree?
Which is faster array or linked list?
What is a node in it?
What happens if we try to insert duplicate key in hashmap?
Which sort is best for linked list?
Why quicksort is called quick?
What is the difference between hashmap and linkedhashmap?
How do you find the length of an arraylist?
What is data structure what is need of it?
Does arraylist shrink?
What is a list of lists?
What is a comparator function?
Will arraylist maintain insertion order?
Explain the priority queue?