Data Structure
Data Structure
Type
Trees
Graphs
LINEAR DATA STRUCTURE
In linear structures, data is organized in a sequence. Operations like
accessing, adding, or removing elements happen in a linear order.
Types
Arrays
Linked lists
Stacks
Queues
APPLICATIONS OF DATA
STRUCTURES
1) Linked lists
A linked list consists of nodes, where each node, where each node has
data and a pointer to the next node.
Dynamic size
Memory efficient for insertion and deletions. Usage examples:
Web browsers and operating systems
Storing data when frequent insertions and deletions are needed
2)TREES
Trees represent hierarchical data with a root node and child nodes.
Characteristics:
Non linear structure
Each node can have multiple children, but only one parent. Usage
examples:
File System: Files are represented hierarchically.
Database indexing: Speed up searches using binary search trees.
Applications:
Decision making systems like AI
Organization charts