Question:

# difference between linear and non linear data structure

by Guest11708395  |  8 years, 2 month(s) ago

0 LIKES UnLike

difference between linear and non linear data structure

Tags: data, difference, linear, structure

1. Guest21343762
hn

2. Guest17094334
1. what is difference between Linear and Non Linear Data Structures ? Linear are - Array, Linked List, Stack, Queue Non Linear are - Tree, Graph A data structure is linear if every item is related (or attatched) to its previous and next item(e.g.array, linked list) and it is non-linear if every item is attached to many other items in specific ways to reflect relationships(e.g, n-ary tree). In linear data structure data items are arranged in a linear sequence. In non-linear data structure data items are not in a sequence. ****************************************************************************** egs of linear data structure are stack, queue, array egs of non linear data structure are graph and tree one thing remember-- array is always a static data structure and link list is always a dynamic data structure but others are dependent on array and link list,which is used. ********************************************
3. Ali Abdullah
Hi, A data structure is linear if every item is related (or attatched) to its previous and next item(e.g.array, linked list) and it is non-linear if every item is attached to many other items in specific ways to reflect relationships(e.g, n-ary tree). In linear data structure data items are arranged in a linear sequence. In non-linear data structure data items are not in a sequence.

#### Question Stats

Latest activity: 7 years, 1 month(s) ago.
This question has been viewed 3017 times and has 3 answers.

2 People are following this question