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

Can constructor be static?

925


What is difference between list and set?

826


Can arraylist be resized?

986


If you are using c language to implement the heterogeneous linked list, what pointer type should be used?

1048


What is binary tree and its types?

965


Explain the Complete structure of hashmap along with the basic coding of the hashmap internal implementation.

1088


Is linkedlist thread safe?

859


What is significance of ” * ” ?

1025


What is space complexity of a program?

870


How many types of arrays are there in visual basic?

925


Which sorting is best and why?

889


How do I rearrange rows in numbers?

884


List the differences between comparable and comparator interface?

922


What is difference between list set and map?

890


What is difference between hashmap and hashset?

965