Linear and non-linear Data structure
Published on 17 Feb 2018
What is Data Structure?
A way of organizing the data in such a way so that can be used efficiently.
Difference between Linear and non-linear data structure:
Linear
- If an element form a sequence or a linear list. It is said to be Linear. E.g: Array, LinkedList, Stack and Queues.
- Traversal are Linear.
Non-linear
- Traversal of node is non-linear in nature then it is said to be non-linear. E.g: Tree, graphs.