A linear data structure stores data in a linear sequence.The data is organized in a single,
Arrays, stacks, queues and linked lists are all
of linear data structures.
for accessing individual elements, but inflexible when it comes to inserting and deleting elements.
Stacks are a linear data structure that follows the Last In, First Out (
Queues are a linear data structure that follows the First In, First Out (
They are more
than arrays when it comes to inserting and deleting elements, but slower for accessing individual elements.
In a linear data structure, the elements are accessed
, starting from one end to the other.
Linear data structures are efficient for accessing individual elements, but
for inserting and deleting elements
Various types of data structure