ds-go
Data Structures in Go
Linear vs Non-Linear Data Structures
Linear
A linear data structure is arranged in a sequential manner (following in a logical order). They are easy to implement because computer memory is also sequential.
(e.g.) - List, Queue, Stack, Array etc.
Non-Linear
A non-linear data structure is arranged in a non-sequential manner (not following a logical order). An element can have multiple paths to connect to other elements. They are not easy to implement but more efficient.
(e.g.) - Tree, Binary Search Trees, Graphs etc.