example of linear and non-linear data structures?

Answer Posted / bala chandra

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.

In non-linear data structures the elements are stored in
hierarchical manner.
Ex.Trees,Graphs etc..

Is This Answer Correct ?    78 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

On clicking a node in a tree, all the adjacent edges are turned on. Calculate min of clicks such that all the edges are turned on.

609


What is rule regarding overriding equals and hascode method?

508


What is the difference between hashmap and arraylist?

525


What is the purpose of sorting algorithms?

510


Explain how is linked list implemented?

529






Is complete binary tree?

485


Does treeset allow null values?

526


Describe queue operation.

518


Are linked lists considered linear or non-linear data structures?

576


How does arraylist size work?

472


What are the different types of linked list?

470


Explain the implementation of an AVL tree and Binary tree.

517


What does arrays tostring do?

478


How can we delete any specific node from the linked list?

508


Explain extended binary tree.

513