Data Structure & Algorithm
1. Data Structures (DS)?
A way to Store and Organize data in a computer
2. Algorithm
A step-by-step set of operations or instructions designed to solve a particular problem or
perform a specific task.
3. Types of DS
Linear Data Structures:
Arrays: Collection of elements stored in contiguous memory.
Linked Lists: Elements connected by pointers.
Stacks: LIFO structure (Last In, First Out).
Queues: FIFO structure (First In, First Out).
Non-Linear Data Structures
Trees: A hierarchical structure with a root and nodes.
Graphs: Set of vertices connected by edges.
4. Types of Algorithms
Sorting Algorithms: Used to arrange elements in a particular order (e.g., Quick
Sort, Merge Sort, Bubble Sort).
Searching Algorithms: Used to find an element in a data structure (e.g., Binary
Search, Linear Search).
Graph Algorithms: Used to traverse and analyse graphs (e.g., Depth First Search
(DFS), Breadth First Search (BFS)).
5. Define Array
Is a Container used to Store Multiple Value in a single
6.