Hi,
>>Linear are - Array, Linked List, Stack, Queue
In the above category Linked List will not come as Liniear, also Stack and Queue we can implement as NonLinear. Array is the perfect example of Linear
Main Topics
Browse All TopicsHello experts,
please tell me
1. what is difference between Linear and Non Linear Data Structures ?
Linear are - Array, Linked List, Stack, Queue
Non Linear are - Tree, Graph
2. In which category does Heap Come ?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Linear or non-linear depend on how you search an element with a specified key.
In linear structure, when you find an key, you have to begin at the first element in the structure and go down to when you meet the key you want to find.
And non-linear is of course not linear :) => when you do a search in a non-linear structure is generally faster than linear structure .
in Heap, we needn't care whether it's linear or not, because the main purpose of heap is make us easily to obtain max or min key of the data structure.
>> Linear or non-linear depend on how you search an element with a specified key.
That's not what defines linear versus non-linear (see my post for that ;) ). If a linear data structure, like an array for example, is sorted, you can often search as fast as with say a binary tree.
Or, look at it from a different perspective : linked lists and arrays are two linear data structures, yet the way search algorithms are implemented with them are quite different. Queues and stacks are other examples of linear data structures, but there's usually no need for searching in them, so again : search strategies are not a defining characteristic of linear versus non-linear data structures.
I am not sure that your question is well-defined enough to give an answer.
On the one hand if you would like a definition of linear vs. non-linear data structures one could certainly be manufactured. Whether the definition would be useful for your purposes is another question.
The referenced wikipedia page is basically trying to define the difference through examples. On this page linear data structures are basically one dimensional and non-linear have more than one dimension.
This is consistent with what one finds In text books where typical examples of linear are lists and one-dimensional arrays and typical examples of non-linear are graphs (including trees) and arrays of 2 or more dimensions. This is basically what the wikipedia page is saying but some unfortunate choice of terminology confuses the issue. e.g., the page lists a matrix and a sparse matrix as being linear but from the context I think the author meant only to include one-dimensional matrices. Including "Parallel Array" in the linear category may be debatable.
You can find consistent categorization of linear vs non-linear in many data strures books.
Business Accounts
Answer for Membership
by: Infinity08Posted on 2008-01-28 at 22:35:14ID: 20765824
>> 1. what is difference between Linear and Non Linear Data Structures ?
ki/Heap_(d ata_struct ure)
Linear means that they are represented by one (single) series of data ... ie. Each data member has at most one predecessor and at most one successor.
Non-linear means anything else.
>> 2. In which category does Heap Come ?
non-linear, since it's a kind of tree :
http://en.wikipedia.org/wi