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

Is quicksort greedy algorithm?

684


Can you please explain the difference between string and an array?

743


What is impact of signed numbers on the memory?

674


What is mean by merge sort?

684


Is it necessary to sort a file before searching a particular item ?

737


What is binary tree in discrete mathematics?

635


Why is data structure needed?

710


Explain the principle of quicksort. What is its complexity?

821


Explain recursive function & what is the data structures used to perform recursion?

827


What is the difference between hashmap and linkedhashmap?

651


How would you swap the Kth node from beginning with Kth node from end in a Linked List.

747


What is map entry?

664


What is the difference between classifying and sorting?

710


Are collections thread safe?

644


What is bubble sort algorithm in data structure sort and searching?

696