Explain linear and non linear data structures with example.

Linear :- Method of organizing data in linear sequential form

eg Stack,Queue, linked list, arrays

non-linear:- Not in linear form. all elements may be connected with one or more elements

eg tree, graph

1 Like

linear data type-The arrangement of data in a sequential manner is known as a linear data structure.examples are arrays ,stacks etc

non linear data- When one element is connected to the many number of elements known as a non-linear data structure.exam-trees and graph

1 Like