Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

example of linear and non-linear data structures?

Answer Posted / sneha rajput

A data structure is classified into two categories: Linear and Non-Linear data structures. A data structure is said to be linear if the elements form a sequence, for example Array, Linked list, queue etc. Elements in a nonlinear data structure do not form a sequence, for example Tree, Hash tree, Binary tree, etc.

There are two ways of representing linear data structures in memory. One way is to have the linear relationship between the elements by means of sequential memory locations. Such linear structures are called arrays. The other way is to have the linear relationship between the elements represented by means of links. Such linear data structures are called linked list.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is arraylist a collection?

980


What is sequential search? What is the average number of comparisons in a sequential search?

807


Differentiate between the singly linked list and doubly linked list.

987


What are the disadvantages of using collection classes over arrays?

1054


Is heap sort stable?

879


What is linked list ?

944


State the merits of linear representation of binary trees?

1027


Why do we need to recycle?

856


Mention the advantages of representing stacks using linked lists than arrays?

918


what is traversal in linked lists?

1091


Tell me do array subscripts always start with zero?

882


Why do we need linked list?

831


Write is a binary search tree? Write an algorithm and tell complexity?

905


Define heap order property?

1029


What is lifo?

1418