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
Which type of sorting is best?
Can list contain null values?
Which sorting is worst?
What is a singletonlist?
Is boolean a data type?
What is best time complexity?
Are linked lists considered linear or non-linear data structures?
What do you mean by secondary clustering?
What is insertion sort technique?
What is the default value of Array?
What is a 2 dimensional array?
What are the types of bulleted list?
How memory is reserved using a declaration statement ?
Define rehashing?
What is arrays copyof?