Data Structure
Data Structure
A data structure is a model where data is organised ,manage and stored in a format that enable
efficient access and modification of data. Different form of data may required Different types of data
structure.
DATA STRUCTURE
1. In-built
1. Arrays
2. Structure
1. Linked list
2. Stacks
3. Queues
4. Trees
5. Heaps
6. Heaps graphs
7. Hash tables
Linked list
A inked list is linear data structure where each element is separate object known as a node.
Each node contains some data and points to the next node in the structure forming a
sequence. This structure allows for efficient insertions or removal of elements from any
position as only the link is needed to be modified to point some other elements or node
1. Singly
2. Doubly
3. Circular
USES OF LINKED LIST
1. Is used to implement other data structures such as Stacks, Queues and non linear data
structure such as trees and graphs1.
2. It has uses in harsh chaining for the implementation in open chaining.
Stack
A stack is a linear data structure which stores its elements in a particular order. The order
followed is known as LIFO (last in first out). Stack is an ordered list which insertion/deletion
can be performed at only one end which is the Top.
1. Push
2. Pop
3. Peek