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
Is quicksort greedy algorithm?
Can you please explain the difference between string and an array?
What is impact of signed numbers on the memory?
What is mean by merge sort?
Is it necessary to sort a file before searching a particular item ?
What is binary tree in discrete mathematics?
Why is data structure needed?
Explain the principle of quicksort. What is its complexity?
Explain recursive function & what is the data structures used to perform recursion?
What is the difference between hashmap and linkedhashmap?
How would you swap the Kth node from beginning with Kth node from end in a Linked List.
What is map entry?
What is the difference between classifying and sorting?
Are collections thread safe?
What is bubble sort algorithm in data structure sort and searching?