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


Please Help Members By Posting Answers For Below Questions

By Which algorithm, the 8 queens problem is solved?

506


Define non-terminal nodes in a tree?

666


Which is faster array or linked list?

454


What is a node in it?

540


What happens if we try to insert duplicate key in hashmap?

417






Which sort is best for linked list?

494


Why quicksort is called quick?

498


What is the difference between hashmap and linkedhashmap?

457


How do you find the length of an arraylist?

484


What is data structure what is need of it?

476


Does arraylist shrink?

466


What is a list of lists?

511


What is a comparator function?

515


Will arraylist maintain insertion order?

497


Explain the priority queue?

521