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

How to sort 1 million floating point numbers?

921


What does stack top do?

677


Which is faster array or arraylist?

678


Define red-black trees.

765


How does bogo sort work?

805


How is any data structure application is classified among files?

788


What does arrays tostring do?

658


How do you find the length of an arraylist?

684


In Data Structure, write output of given program.

706


Explain binary representation?

668


Differentiate between arraylist and linkedlist.

837


What is the difference between a Stack and a Queue.

701


Why do we use arrays?

699


Define adjacent nodes?

748


What is dynamic array how is it created?

673